POST /v1/dms/documents/{id}/link
POST/v1/dms/documents/{id}/link
Link a DMS document to an entity
Corps de la requête
| Nom | Type | Description |
|---|
entityTypeobligatoire | string | |
entityIdobligatoire | string<uuid> | |
role | string | |
Paramètres de chemin
| Nom | Type | Description |
|---|
idobligatoire | string<uuid> | |
Exemple
curl -X POST https://api.codemeta-os.de/v1/dms/documents/{id}/link \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"entityType": "string",
"entityId": "0193f4a2-…",
"role": "string"
}'
const result = await cm.dms.post({
"entityType": "string",
"entityId": "0193f4a2-…",
"role": "string"
});
Codes de réponse
| HTTP |
Signification |
200 |
Default Response |