Attachments
Upload attachment
Accesso
Qualsiasi membro dell’organizzazione.
POST
Uploads a file as an orphan attachment. Pass purpose so inbox uploads require inbox write permission. 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).
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
- body
file*stringpurpose*stringValue in
"comment""task""inbox""meterReading""customField"taskId?stringmeterReadingId?stringcustomFieldEntity?stringValue in
"CUSTOMER""TERRAIN""OCCUPATION""METER""TASK""PRODUCT""DOCUMENT""RESERVATION""ACCESS_METHOD"customFieldPath?stringMatch
^[a-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*)*$Length
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"}'Example Response
null