files
Start a file upload
Changed onStart an upload of up to 1 GiB. Send the file in parts with PUT {upload_url}/parts/{n}?token=..., then finish with POST {upload_url}/complete?token=.... An existing path gets a numbered name unless overwrite is true.
Required permission: files.manage.
post/v1/projects/{project_id}/files/{environment_id}/uploads
Request
- Base URLhttps://api.connic.co
- AuthHTTP 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
File Upload Request required
path, string required
File path such as invoices/2026/acme.pdf.
size, integer required
File size in bytes.
mime_type, string nullable
metadata, object nullable
overwrite, boolean
Replace an existing file at this path instead of renaming the new one.
Response
Successful Response
File Upload Response required
upload_id, string required
path, string required
size, integer required
part_bytes, integer required
Every part except the last has exactly this many bytes.
part_count, integer required
upload_url, string required
PUT {upload_url}/parts/{n}?token=..., then POST {upload_url}/complete?token=...
token, string required
expires_at, string required
Changes
- info
endpoint added
- info