This endpoint updates the status of an annotation. It supports:
- Updating annotation status
- Verifying annotation ownership before updating
- Returning updated annotation with related data
Authentication is required. You must provide a valid session with an organization ID, and the annotation must belong to your organization.
Path
The ID of the annotation to update (CUID format).
Body
Required
The new status for the annotation. Valid status values depend on your organization’s configuration.
Response
Unique identifier of the annotation (CUID format).
ID of the message this annotation refers to.
ID of the organization the annotation belongs to.
Comment or feedback text for the annotation.
Sentiment of the annotation (e.g., positive, negative, neutral).
Updated status of the annotation.
ID of the user who created the annotation.
ISO 8601 timestamp of when the annotation was created.
ISO 8601 timestamp of when the annotation was last updated.
Information about the user who created the annotation.
Email address of the user who created the annotation.
Tags associated with the annotation.
Error Responses
| Status Code | Type | Description |
|---|
| 400 | Bad Request | Status field is required but was not provided. |
| 401 | UNAUTHORIZED | Missing or invalid authentication session, or annotation does not belong to your organization. |
| 404 | NOT_FOUND | Annotation with the specified ID does not exist. |
curl --location --request PATCH 'https://dashboard.laburen.com/api/annotations/clxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data-raw '{
"status": "completed"
}'
{
"id": "clxxxxxxxxxxxxxxxxx",
"messageId": "clxxxxxxxxxxxxxxxxx",
"organizationId": "clxxxxxxxxxxxxxxxxx",
"comment": "The agent provided incorrect information about pricing",
"sentiment": "negative",
"status": "completed",
"createdById": "clxxxxxxxxxxxxxxxxx",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T11:45:00.000Z",
"createdBy": {
"email": "user@example.com"
},
"tags": [
{
"tag": {
"id": "clxxxxxxxxxxxxxxxxx",
"name": "bug"
}
}
]
}