Skip to main content
PUT
/
1
/
query_annotations
/
{datasetSlug}
/
{queryAnnotationId}
Update a Query Annotation
curl --request PUT \
  --url https://api.honeycomb.io/1/query_annotations/{datasetSlug}/{queryAnnotationId} \
  --header 'Content-Type: application/json' \
  --header 'X-Honeycomb-Team: <api-key>' \
  --data '
{
  "name": "My Updated Annotation",
  "description": "A nice description of My Update Annotation",
  "query_id": "mabAMpSPDjH",
  "id": "sGUnkBHgRFN",
  "created_at": "2022-10-26T21:36:04Z",
  "updated_at": "2022-12-16T10:44:08Z"
}
'
{
  "name": "My Updated Annotation",
  "description": "A nice description of My Update Annotation",
  "query_id": "mabAMpSPDjH"
}

Documentation Index

Fetch the complete documentation index at: https://docs.honeycomb.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Honeycomb-Team
string
header
required

Authenticate using a Honeycomb Configuration Key.

Pass the Token in the X-Honeycomb-Team header:

X-Honeycomb-Team: 1234567890123456789012

If you created your key using the API, use data.attributes.secret; this is the same value as the Token in the UI.

To learn how to create a Configuration Key, visit Manage Environment API Keys. To learn more about authenticating requests, visit API Authentication.

Path Parameters

datasetSlug
string
required

The dataset slug or use __all__ for endpoints that support environment-wide operations.

queryAnnotationId
string
required

The unique identifier (ID) of the annotation.

Body

application/json

A Query Annotation consists of a name and description associated with a query to add context when collaborating.

name
string
required

A name for the Query.

Required string length: 1 - 320
Example:

"My Named Query"

query_id
string
required

The ID of the Query that the annotation describes. Note: Once created, it is NOT possible to change the query ID associated with an annotation. It is possible to have multiple annotations associated with a Query.

Example:

"mabAMpSPDjH"

description
string

A description of the Query.

Maximum string length: 1023
Example:

"A nice description of My Named Query"

Response

Success

A Query Annotation consists of a name and description associated with a query to add context when collaborating.

name
string
required

A name for the Query.

Required string length: 1 - 320
Example:

"My Named Query"

query_id
string
required

The ID of the Query that the annotation describes. Note: Once created, it is NOT possible to change the query ID associated with an annotation. It is possible to have multiple annotations associated with a Query.

Example:

"mabAMpSPDjH"

description
string

A description of the Query.

Maximum string length: 1023
Example:

"A nice description of My Named Query"

id
string
read-only

The unique identifier (ID) of a Query Annotation.

Example:

"sGUnkBHgRFN"

created_at
string<date-time>
read-only

ISO8601 formatted time when the Query Annotation was created.

Example:

"2022-10-26T21:36:04Z"

updated_at
string<date-time>
read-only

ISO8601 formatted time when the Query Annotation was updated.

Example:

"2022-12-04T08:14:26Z"

source
enum<string>
read-only

The source of the Query Annotation.

Available options:
query,
board
Example:

"query"