- Upload a completed document to a client card
Uploads one completed file as multipart form data under the field name file. Requires clients_access and client_files_upload_access. The Location client must match the path. Accepted filename extensions are jpeg, jpg, png, gif, doc, docx, pdf, xls, xlsx, and txt (also uppercase); the file must be smaller than 12 MiB. A successful upload also creates a type: file entry in the client comment history. The response returns the current complete file list, not only the newly uploaded file.
Save a form URL through the client comment endpoint if the form is still being filled out. Call this endpoint with the finished file bytes when the document is complete; posting a URL string here does not fetch its contents.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/clients/files/{client_id}
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/clients/files/{client_id}
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/clients/files/{client_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=stringFile uploaded; returns the current client file list
Array of objects with data
[ { "id": 123, "client_id": 123456, "name": "test.txt", "description": "", "date_create": "2026-01-01T12:00:00-0500", "extension": "txt", "mime": "text/plain", "link": "/client_files/download/456/123/", "user_name": "Victor Sitnikov", "user_avatar": "/images/no-master.png", "size": "9 B", "can_edit": false }, { "id": 789, "client_id": 123456, "name": "photo.jpg", "description": "", "date_create": "2026-01-30T12:30:00-0500", "extension": "jpg", "mime": "image/jpeg", "link": "/client_files/download/456/789/", "user_name": "Victor Sitnikov", "user_avatar": "/images/no-master.png", "size": "96.65 KB", "can_edit": true } ]
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }