PUT
/
v0
/
annotations
/
{id}
Update an annotation
curl --request PUT \
  --url https://api.avidoai.com/v0/annotations/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "title": "Updated system prompt",
  "description": "The system prompt was updated to include more examples",
  "createdAt": "2024-08-04T09:19:00Z"
}'
{
  "data": {
    "id": "789e4567-e89b-12d3-a456-426614174000",
    "orgId": "org_123456",
    "title": "Retrieval topK",
    "description": "Change the topK on retrieval",
    "createdAt": "2024-01-05T12:34:56.789Z",
    "modifiedAt": "2024-01-05T12:34:56.789Z"
  }
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

Path Parameters

id
string<uuid>
required

The unique identifier of the annotation

Example:

"789e4567-e89b-12d3-a456-426614174000"

Body

application/json

Request body for updating an existing annotation

Response

Successfully updated annotation

Successful response containing the annotation data