Docs

Update File

PUT /drives/{eventId}/files/{fileId}

PUT/drives/{eventId}/files/{fileId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Updates the metadata of an existing file. For Deliverable type files, the assignedTo and dueDate fields can also be updated. Requires File.* or File.Edit permission on the file.

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.
fileIdGuidRequiredThe file ID.

Request Body

FieldTypeRequiredDescription
namestringRequiredUpdated display name. Must not be empty.
descriptionstringOptionalUpdated description.
pathstringRequiredUpdated parent path. Use this to move the file to a different folder.
assignedToGuidOptionalUpdated collaborator ID. Only applied when the file type is `Deliverable`.
dueDateDateTimeOptionalUpdated due date. Only applied when the file type is `Deliverable`.

Response

200 OK — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token, or insufficient permissions (File.* or File.Edit required).
NOT_FOUND404File not found, or assignedTo collaborator does not exist.
BAD_REQUEST400Empty name or other invalid arguments.