Documents
Assign Label to Document
Attach one of the team's labels to a document, so you can filter for it later with the labelId parameter of the list documents endpoint.
POST
Attach one of the team's labels to a document, so you can filter for it later with the labelId parameter of the list documents endpoint. Assigning a label that is already on the document changes nothing and still succeeds. Both the document and the label have to belong to the calling team.
AuthorizationBasic <token>
Basic API key authentication. Create a new API key and secret in the Recommand dashboard.
In: header
Path Parameters
documentId*string
The ID of the document
labelId*string
The ID of the label to assign
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/documents/string/labels/string"{ "success": true}