Skip to main content
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>' \
  --header 'x-application-id: <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

x-application-id
string
header
required

Your unique Avido Application ID

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

title
string
required

Title of the annotation

Example:

"Updated system prompt"

description
string | null

A description of what was changed in the application configuration

Example:

"The system prompt was updated to include more examples"

createdAt
string<date-time>

Custom creation date for the annotation (ISO8601 format)

Example:

"2024-08-04T09:19:00Z"

Response

Successfully updated annotation

Successful response containing the annotation data

data
object
required

A single annotation indicating a change in the AI application configuration