Create dataset
Create dataset
POST
/v2/datasetsFeatures
Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.
Input7
Sent from your browser straight to the API — never to Docsbook, never stored.
(query) Referrer slug
Dataset description
Edge deployment of the dataset
The kind of the dataset One of:
otel:metrics:v1, otel:traces:v1, otel:logs:v1, axiom:events:v1.Dataset unique name
Number of days to retain data in the dataset
Whether to use the retention period
Output14
Whether this dataset has write access
The RFC3339-formatted time when the dataset was created.
Dataset description
Edge deployment of the dataset
URL of the edge deployment
Dataset ID
The kind of the dataset One of:
otel:metrics:v1, otel:traces:v1, otel:logs:v1, axiom:events:v1.Unique dataset name
Number of days to retain data in the dataset
ID of the org that shared this resource, if it's shared
The RFC3339-formatted time when the dataset was last updated.
Whether to use the retention period
Name of the dataset creator
Responses
200Created
403Forbidden
Example input
curl -X POST 'https://api.axiom.co/v2/datasets' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"string"}'Example output
{
"created": "2022-07-20T02:35:14.137Z",
"description": "string",
"id": "string",
"kind": "axiom:events:v1",
"name": "string",
"updatedAt": "2022-07-20T02:35:14.137Z",
"who": "string"
}