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
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

environment_id, string uuid required

Environment ID from GET /environments.

Request body

FileUpdateRequest required
path, string required

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

new_path, string nullable

Move or rename to this path.

metadata, object nullable

Fields to merge. A null value removes a field.

Response

Successful Response

FileUpdateResponse required
moved, integer required
file, object nullable
folder, string nullable

Changes