Skip to Content
Attachments

Upload attachment

Acces

Orice membru al organizației.

POST
/orgs/{organizationId}/attachments/upload

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).

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

Request Body

  1. body
file*string
purpose*string
Value in"comment""task""inbox""meterReading""customField"
taskId?string
meterReadingId?string
customFieldEntity?string
Value in"CUSTOMER""TERRAIN""OCCUPATION""METER""TASK""PRODUCT""DOCUMENT""RESERVATION""ACCESS_METHOD"
customFieldPath?string
Match^[a-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*)*$
Lengthlength <= 200

Response Body

OK

application/json
  1. response
Example Request
curl -X POST 'https://api.tillor.eu/orgs//attachments/upload' \  -H 'Content-Type: application/json' \  -d '{  "file": "string",  "purpose": "comment"}'
Example Response
null