Query Annotations in Honeycomb allow you to associate names and descriptions to queries to add additional information in collaboration features.
This API allows you to list, create, update, and delete Query Annotations.
The API key must have the Manage Queries and Columns permission. Learn more about API keys here.
Create a Query Annotation for the specified query ID.
Created
Bad Request
Forbidden
Not Found
Error
{- "name": "My Named Query",
- "description": "A nice description of My Named Query",
- "query_id": "mabAMpSPDjH"
}
{- "name": "My Named Query",
- "description": "A nice description of My Named Query",
- "query_id": "mabAMpSPDjH",
- "id": "sGUnkBHgRFN",
- "created_at": "2022-10-26T21:36:04Z",
- "updated_at": "2022-12-04T08:14:26Z"
}
List all Query Annotations in the specified dataset.
Success
Not Found
Error
[- {
- "name": "My Named Query",
- "description": "A nice description of My Named Query",
- "query_id": "mabAMpSPDjH",
- "id": "sGUnkBHgRFN",
- "created_at": "2022-10-26T21:36:04Z",
- "updated_at": "2022-12-04T08:14:26Z"
}
]
Get a Query Annotation by its ID.
Success
Not Found
Error
{- "name": "My Named Query",
- "description": "A nice description of My Named Query",
- "query_id": "mabAMpSPDjH",
- "id": "sGUnkBHgRFN",
- "created_at": "2022-10-26T21:36:04Z",
- "updated_at": "2022-12-04T08:14:26Z"
}
Update a Query Annotation by specifying its ID. The Query ID associated with the Query Annotation cannot be updated. Partial updates are not supported.
Success
Bad Request
Not Found
Error
{- "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"
}
Delete a Query Annotation by specifying its ID.
Success - no content
Not Found
Error
{- "error": "dataset not found"
}