POST /v1/dms/documents/{id}/shares
POST/v1/dms/documents/{id}/shares
Create a share for a DMS document
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|
shareTypeobligatorio | string | |
sharedWithUserId | string | |
sharedWithRoleId | string | |
permission | string | |
expiresAt | string<date-time> | |
maxDownloads | integer | |
allowDownload | boolean | |
password | string | |
message | string | |
Parámetros de ruta
| Nombre | Tipo | Descripción |
|---|
idobligatorio | string | |
Ejemplo
curl -X POST https://api.codemeta-os.de/v1/dms/documents/{id}/shares \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"shareType": "INTERNAL",
"sharedWithUserId": "string",
"sharedWithRoleId": "string",
"permission": "VIEW",
"expiresAt": "string",
"maxDownloads": 0,
"allowDownload": true,
"password": "string",
"message": "string"
}'
const result = await cm.dms.post({
"shareType": "INTERNAL",
"sharedWithUserId": "string",
"sharedWithRoleId": "string",
"permission": "VIEW",
"expiresAt": "string",
"maxDownloads": 0,
"allowDownload": true,
"password": "string",
"message": "string"
});
Códigos de respuesta
| HTTP |
Significado |
200 |
Default Response |