AssigneesAdd a document assigneepost

Add a document assignee

Adds a reviewer or assignee to a document. Provide either userId when known or an email address when assigning by email.

curl -X POST "https://api.textmine.com/v3/documents/123/assignees" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "userId": 42,
  "role": "reviewer"
}'
{
  "userId": 42,
  "email": "reviewer@example.com",
  "displayName": "Review User",
  "role": "reviewer"
}
POST
/v3/documents/{documentId}/assignees
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
documentIdinteger
Required

Document ID.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
userIdinteger
Format: int64
emailstring
Format: email
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Body

application/json
userIdinteger
Example:
42
emailstring
Example:
reviewer@example.com
rolestring
Example:
reviewer

Responses