API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

POST /v1/dms/documents/{id}/annotations

POST/v1/dms/documents/{id}/annotations

Create an annotation on a DMS document

Corps de la requête

NomTypeDescription
pageNumberobligatoireinteger
typeobligatoirestring
contentstring
positionobligatoireobject
colorstring
opacitynumber
stampTypestring

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

curl -X POST https://api.codemeta-os.de/v1/dms/documents/{id}/annotations \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "pageNumber": 0,
  "type": "HIGHLIGHT",
  "content": "string",
  "position": null,
  "color": "string",
  "opacity": 0,
  "stampType": "APPROVED"
}'
const result = await cm.dms.post({
  "pageNumber": 0,
  "type": "HIGHLIGHT",
  "content": "string",
  "position": null,
  "color": "string",
  "opacity": 0,
  "stampType": "APPROVED"
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche