Upload attachment
Acces
Orice membru al organizației.
Uploads a file as an orphan attachment. Pass purpose so inbox uploads require inbox:write, task uploads tasks:write and a visible task, meter reading pictures meters:write. Types a browser could render as markup or script are stored as application/octet-stream. With purpose customField (plus customFieldEntity and customFieldPath) the file is for a FILE custom field: the field's write access, type and size limits apply; save the returned id as the field's value, an upload no record holds is deleted after a day. Blobs are always encrypted at rest (AES-256-GCM).
ApiKeyAuthx-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
- body
file*stringpurpose*string"comment""task""inbox""meterReading""customField"taskId?stringmeterReadingId?stringcustomFieldEntity?string"CUSTOMER""TERRAIN""OCCUPATION""METER""TASK""PRODUCT""DOCUMENT""RESERVATION""ACCESS_METHOD"customFieldPath?string^[a-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*)*$length <= 200OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//attachments/upload' \ -H 'Content-Type: application/json' \ -d '{ "file": "string", "purpose": "comment"}'nullUpdate attachment PATCH
Renames an attachment that is not linked to a sent inbox message or event log. A task's attachment needs `tasks:write` and a visible task; any other one its uploader or a super admin.
Download attachment GET
Downloads an attachment. PDFs, raster images and mp4/webm videos keep their type; every other file is sent as `application/octet-stream`.