A Dataset represents a collection of related events that come from the same source, or are related to the same source.
This API allows you to list, create, and update datasets.
The API key must have the Create Datasets permission. Learn more about API keys here.
Create a Dataset in the environment associated with your API key.
If a Dataset already exists by that name (or slug), then the existing dataset will be returned.
The dataset will be created within the environment associated with your API key.
OK - Dataset already exists
Created
Unauthorized
Forbidden
Conflict
Validation Failed
Error
{- "name": "string",
- "description": "A nice description of my dataset",
- "expand_json_depth": 3
}
{- "name": "My Dataset!",
- "description": "A nice description of my dataset",
- "settings": {
- "delete_protected": true
}, - "expand_json_depth": 3,
- "slug": "my-dataset-",
- "regular_columns_count": 100,
- "last_written_at": "2022-07-21T18:39:23Z",
- "created_at": "2022-09-22T17:32:11Z"
}
Lists all Datasets for an environment.
Note: For Honeycomb Classic users, all datasets in Classic are returned.
Success
Unauthorized
Error
[- {
- "name": "my dataset!",
- "description": "my dataset described!",
- "slug": "my-dataset-",
- "expand_json_depth": 2,
- "created_at": "2022-07-21T18:39:23Z",
- "last_written_at": "2022-07-22T19:52:00Z",
- "regular_columns_count": 12
}, - {
- "name": "another dataset",
- "description": "",
- "slug": "another-dataset",
- "expand_json_depth": 0,
- "created_at": "2022-07-21T18:39:23Z",
- "last_written_at": "2022-07-22T19:52:00Z",
- "regular_columns_count": 98
}
]
Get a single Dataset by slug.
Success
Unauthorized
Not Found
Error
{- "name": "My Dataset!",
- "description": "A nice description of my dataset",
- "settings": {
- "delete_protected": true
}, - "expand_json_depth": 3,
- "slug": "my-dataset-",
- "regular_columns_count": 100,
- "last_written_at": "2022-07-21T18:39:23Z",
- "created_at": "2022-09-22T17:32:11Z"
}
Deletes the Dataset. This is an irreversible operation. It may take several minutes for the deletion process to complete.
WARNING: This endpoint will allow anyone with an API key that has the manage dataset permission to delete any dataset in the environment (or any dataset in the whole team for Classic customers).
Datasets with Deletion Protection enabled cannot be deleted.
To delete a Dataset with Deletion Protection enabled, first disable Deletion Protection by updating the Dataset with settings.delete_protected = false
.
Deleted
Unauthorized
Forbidden
Not Found
Conflict
Error
{- "error": "unknown API key - check your credentials"
}
Update a Dataset's settings.
Update a Dataset's settings.
All fields must be specified, as omitting one will have the effect of reverting the setting to the default.
Updated
Unauthorized
Not Found
{- "expand_json_depth": 3,
- "description": "my updated description",
- "settings": {
- "delete_protected": false
}
}
{- "name": "My Dataset!",
- "slug": "my-dataset-",
- "description": "my updated description",
- "settings": {
- "delete_protected": false
}, - "expand_json_depth": 3,
- "created_at": "2022-07-21T18:39:23Z",
- "last_written_at": "2022-09-22T17:32:03Z",
- "regular_columns_count": 100
}