Columns are fields in the events you send to Honeycomb.
This API allows you to list, create, update, and delete columns in a dataset.
The API key must have the Manage Queries and Columns permission. Learn more about API keys here.
Create a column by providing corresponding details for that type.
Success
Bad Request
Unauthorized
Not Found
{- "key_name": "my_column",
- "type": "integer",
- "description": "An integer column",
- "hidden": false
}
{- "id": "yUheCUmgZ8p",
- "key_name": "my_column",
- "hidden": false,
- "description": "An integer column",
- "type": "integer",
- "last_written": "2022-07-26T22:38:05Z",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-07-26T22:38:04Z"
}
Get all the Columns in a dataset
When listing all columns, an array of Column objects will be returned. When using key_name
, will return a single Column object if found.
Unauthorized
Not Found
Lists all columns.
[- {
- "id": "yUheCUmgZ8p",
- "key_name": "my_column",
- "hidden": false,
- "description": "",
- "type": "integer",
- "last_written": "2022-07-26T22:38:05Z",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-07-26T22:38:04Z"
}, - {
- "id": "yUheCUmgZ8q",
- "key_name": "other_column",
- "hidden": false,
- "description": "",
- "type": "string",
- "last_written": "2022-07-26T22:38:05Z",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-07-26T22:38:04Z"
}
]
Success
Bad Request
Unauthorized
Not Found
{- "id": "yUheCUmgZ8p",
- "key_name": "my_column",
- "hidden": false,
- "description": "",
- "type": "integer",
- "last_written": "2022-07-26T22:38:05Z",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-07-26T22:38:04Z"
}
Update a column
Success
Bad Request
Unauthorized
Not Found
{- "key_name": "my_column",
- "type": "integer",
- "description": "An integer column",
- "hidden": false
}
{- "id": "yUheCUmgZ8p",
- "key_name": "my_column",
- "hidden": false,
- "description": "",
- "type": "string",
- "last_written": "2022-07-26T22:38:05Z",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-07-26T22:38:04Z"
}
Delete a column. Note: Deleted columns are no longer queryable, but data in existing permalinks (query results and trace views) will remain stored and available at those links.
Success - no content
Unauthorized
Not Found
{- "error": "unknown API key - check your credentials"
}