Attachments
11 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List centralized attachments for an entity#
Parameter
| Name | Ort | Typ | Beschreibung |
|---|
entityTypePflicht | Query | string | Werte: taskprocesswiki_pageasset_itemspace_gdpr_recordsupport_requestasset_objectchat_message |
entityIdPflicht | Query | string | – |
spaceId | Query | string | Accepted for legacy frontend compatibility only. The backend resolves the trusted space from the parent entity. |
Antworten
curl -X GET "https://xapi.ambertech.cloud/api/v1/attachments" \
-H "Authorization: Bearer $XISUITE_TOKEN"
Upload or version a centralized attachment#
Request-Bodymultipart/form-dataUploadAttachmentDto
| Name | Typ | Beschreibung |
|---|
entity_typePflicht | string | Werte: taskprocesswiki_pageasset_itemspace_gdpr_recordsupport_requestasset_objectchat_message |
entity_idPflicht | string | – |
space_id | string | Accepted for legacy frontend compatibility only. The backend resolves the trusted space from the parent entity. |
comment | string | – |
Antworten
curl -X POST "https://xapi.ambertech.cloud/api/v1/attachments" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-F "file=@./datei.pdf"
Get an attachment with version history#
GET/attachments/{id}Token Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Antworten
curl -X GET "https://xapi.ambertech.cloud/api/v1/attachments/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"
Delete an attachment and all versions#
DELETE/attachments/{id}Token Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Antworten
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/attachments/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"
Check in an attachment#
POST/attachments/{id}/checkinToken Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Antworten
curl -X POST "https://xapi.ambertech.cloud/api/v1/attachments/{id}/checkin" \
-H "Authorization: Bearer $XISUITE_TOKEN"
Check out an attachment#
POST/attachments/{id}/checkoutToken Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Request-Bodyapplication/jsonCheckoutAttachmentDto
| Name | Typ | Beschreibung |
|---|
note | object | – |
Antworten
curl -X POST "https://xapi.ambertech.cloud/api/v1/attachments/{id}/checkout" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"note":{}}'
Message the current checkout owner#
POST/attachments/{id}/checkout-messageToken Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Request-Bodyapplication/jsonCheckoutMessageDto
| Name | Typ | Beschreibung |
|---|
messagePflicht | string | – |
Antworten
curl -X POST "https://xapi.ambertech.cloud/api/v1/attachments/{id}/checkout-message" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message":"…"}'
Redirect to a short-lived signed download URL#
GET/attachments/{id}/downloadToken Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
inline | Query | string | Werte: 1 |
v | Query | number | – |
Antworten
curl -X GET "https://xapi.ambertech.cloud/api/v1/attachments/{id}/download" \
-H "Authorization: Bearer $XISUITE_TOKEN"
List File Explorer links for an entity#
GET/attachments/file-linksToken Parameter
| Name | Ort | Typ | Beschreibung |
|---|
entityTypePflicht | Query | string | Werte: taskprocesswiki_pageasset_itemspace_gdpr_recordsupport_requestasset_objectchat_message |
entityIdPflicht | Query | string | – |
spaceId | Query | string | Accepted for legacy frontend compatibility only. The backend resolves the trusted space from the parent entity. |
Antworten
curl -X GET "https://xapi.ambertech.cloud/api/v1/attachments/file-links" \
-H "Authorization: Bearer $XISUITE_TOKEN"
Link a File Explorer item to an entity#
POST/attachments/file-linksToken Request-Bodyapplication/jsonCreateEntityFileLinkDto
| Name | Typ | Beschreibung |
|---|
entity_typePflicht | string | Werte: taskprocesswiki_pageasset_itemspace_gdpr_recordsupport_requestasset_objectchat_message |
entity_idPflicht | string | – |
node_idPflicht | string | – |
Antworten
curl -X POST "https://xapi.ambertech.cloud/api/v1/attachments/file-links" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entity_type":"task","entity_id":"…","node_id":"…"}'
Remove a File Explorer link from an entity#
DELETE/attachments/file-links/{id}Token Parameter
| Name | Ort | Typ | Beschreibung |
|---|
idPflicht | Pfad | string | – |
Antworten
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/attachments/file-links/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"