files

Move a file or update its metadata

Changed on

Move or rename a file or folder, or merge metadata into a file.

Required permission: files.manage.

post/v1/projects/{project_id}/files/{environment_id}/update

Request

  • Base URL: https://api.connic.co
  • URL: https://api.connic.co/v1/projects/{project_id}/files/{environment_id}/update
  • Auth: HTTP bearer

Path parameters

project_idstring uuid required

ID of the project the API key belongs to.

environment_idstring uuid required

Environment ID from GET /environments.

Request body

pathstring required

File path such as invoices/2026/acme.pdf.

new_pathstring nullable

Move or rename to this path.

metadataobject nullable

Fields to merge. A null value removes a field.

Response

Successful Response

movedinteger required
fileobject nullable
folderstring nullable

Changes