Upload a file
Upload a file via multipart form data. The file is streamed through the Cula backend to storage.
Files may be up to 30 MiB. The API accepts any submitted MIME type;
common evidence file types include PDFs (application/pdf), images
(image/*), CSV files (text/csv), and Excel spreadsheets. The
submitted MIME type is returned as mime_type.
To attach uploaded files to runtime resources, include their IDs in
the resource’s file_ids array on create/update requests. On PATCH,
providing file_ids replaces the linked file array; omitting it leaves
existing file links unchanged.
Authorizations
OAuth2 client credentials flow. Exchange your client_id and
client_secret for a short-lived access token, then pass it as
a Bearer token in the Authorization header.
Headers
Organisation ID that scopes this request. The authenticated consumer must be authorized for this organisation. Omitting this header returns 400; passing an unauthorised org returns 403.
Body
Response
File uploaded.
"fil_01kqzcjrpyf27tgeaqk8twgw91"
"puro_LCA_RCCS_Q4.xlsm"
2451230
"application/vnd.ms-excel.sheet.macroEnabled.12"
The site this file belongs to.