Move file

http
POST /projects/{project_reference}/files/{file_path}/move

Move a file. Requires project.files.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
file_pathpathYes
refquery
branchquery
branch_idquery

Request body

FieldTypeRequiredDescription
destination_pathstringYesDestination file path. The source receives a deletion version and the destination receives a new file ID derived from its path; immutable history remains.
expected_version_idstringExpected source version observed by the caller; a stale version returns 409. The move also fences its captured source version and requires an absent destination.

Responses

StatusDescription
200The file at its new path.
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.