Appearance
attachments
5 endpoints at a glance
| Method | Path | Summary |
|---|---|---|
POST | /attachments | Upload |
DELETE | /attachments/{attachment_id} | Delete Attachment |
GET | /attachments/{attachment_id}/download | Download |
PATCH | /attachments/{attachment_id}/meta | Patch Meta |
GET | /attachments/for-entity | List For Entity |
attachments
List For Entity
GET
/attachments/for-entity
Parameters
Header Parameters
authorization
Query Parameters
entity_type*
Type
Requiredstring
Valid values
"task""project""contact""event""company""deal""note""invoice""expense""personal_expense"entity_id*
Type
Requiredstring
page
Type
integer
Default
1limit
Type
integer
Default
50Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}
Upload
Download
GET
/attachments/{attachment_id}/download
Stream the bytes.
disposition=inline lets the browser render the file in place (the
document viewer frames this URL) instead of offering a save dialog. The
default stays attachment so every existing download link behaves
exactly as before. Only previewable types may go inline — otherwise a
.docx would render as a wall of binary in an iframe.
Parameters
Header Parameters
authorization
Path Parameters
attachment_id*
Type
Requiredstring
Query Parameters
disposition
Type
string
Valid values
"attachment""inline"Default
"attachment"Responses
Successful Response
application/json
JSON
[
]
Patch Meta
PATCH
/attachments/{attachment_id}/meta
Update the document metadata block.
Same permission rule as delete: the uploader always may, otherwise you
need edit rights on the owning entity.
Parameters
Header Parameters
authorization
Path Parameters
attachment_id*
Type
Requiredstring
Request Body
application/json
JSON "title": "string", "description": "string", "doc_type": "string", "doc_date": "string", "tag_ids": [ "string" ], "party_ref": { "additionalProperties": "string" }, "keep_until": "string"
{
}
Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}