Update File

Rename, archive/unarchive, and/or move a file. Moving isn't a separate operation — set `folderId` and/or `phaseInstanceId` in the same request. Notes: - All fields are optional; only fields present in the request body are applied. - `folderId` accepts `null` to un-file (remove from its current folder). - The target folder must belong to the same project as the file. - A file sits in either a folder or the root of a phase, never both. Setting `phaseInstanceId` clears `folderId` (and vice versa) unless you explicitly set both in the same request, which is rejected with `400`.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

file_idintegerRequired
File identifier

Request

This endpoint expects an object.
namestringOptional
New file name
isActivebooleanOptional
Set to false to archive the file, or true to unarchive it
folderIdinteger or nullOptional

Folder to move the file into. Pass null to un-file it.

phaseInstanceIdintegerOptional
Phase instance to move the file to the root of.

Response

Successful response
idinteger
File identifier
namestring
File name
downloadUrlstring
URL to download the file
typestring
File type
updatedAtstringformat: "date-time"
Last update timestamp
createdAtstringformat: "date-time"
Creation timestamp
isActiveboolean

Whether the file is active (false if archived)

companyIdintegerOptional
Owning company identifier
metaDataobjectOptional

File metadata (size, MIME type, etc.) — see the File schema for the full shape

sourcestringOptional

File source (e.g., INTERNAL)

folderIdinteger or nullOptional
Folder this file is filed in, if any
phaseInstanceIdinteger or nullOptional
Phase instance this file sits at the root of, if any
createdByUserobjectOptional

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error