Skip to main content
PUT
/
1
/
datasets
/
{datasetSlug}
Update a Dataset
curl --request PUT \
  --url https://api.honeycomb.io/1/datasets/{datasetSlug} \
  --header 'Content-Type: application/json' \
  --header 'X-Honeycomb-Team: <api-key>' \
  --data '
{
  "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
}

Authorizations

X-Honeycomb-Team
string
header
required

A Honeycomb Configuration Key is required to use this API. A Configuration Key can be found in the API Keys section of the environment configuration, which can be found under Environment Settings -> API Keys -> Configuration tab. Check out our documentation to find your API Keys.

More information can be found in Manage Environments.

Path Parameters

datasetSlug
string
required

The dataset slug.

Body

application/json

Update a Dataset's settings. All fields must be specified, as omitting one will have the effect of reverting the setting to the default.

an object to send to the Dataset API via PUT

description
string
default:""
required

A description for the dataset.

Maximum string length: 1024
Example:

"A nice description of my dataset"

expand_json_depth
integer
default:0
required

The maximum unpacking depth of nested JSON fields.

Required range: 0 <= x <= 10
Example:

3

settings
object

Response

Updated

Datasets are a collection of events from a specific source or related source.

name
string
required

The name of the dataset.

Required string length: 1 - 255
Example:

"My Dataset!"

description
string
default:""

A description for the dataset.

Maximum string length: 1024
Example:

"A nice description of my dataset"

settings
object
expand_json_depth
integer
default:0

The maximum unpacking depth of nested JSON fields.

Required range: 0 <= x <= 10
Example:

3

slug
string

The 'slug' of the dataset to be used in URLs.

Example:

"my-dataset-"

regular_columns_count
null | integer

The total number of unique fields for this Dataset. The value will be null if the dataset does not contain any fields yet.

Example:

100

last_written_at
null | string

The ISO8601-formatted time when the dataset last received event data. The value will be null if no data has been received yet.

Example:

"2022-07-21T18:39:23Z"

created_at
string

The ISO8601-formatted time when the dataset was created.

Example:

"2022-09-22T17:32:11Z"