Datasets
Create dataset
Changed onCreates a dataset. The name must be unique in your organization, and retentionDays can't exceed the retention window of your plan. labelIds replaces assignments when supplied; [] clears them. Omitted or null labelIds preserves assignments on updates and creates an unlabeled resource on creation. IDs must belong to existing labels in your organization and are validated before saving.
post/datasets
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesdatasets|create
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
referrerstring
Referrer slug
Request body
Example request
{
"description": "string",
"kind": "axiom:events:v1",
"name": "string",
"retentionDays": 30
}Response
Created dataset.
Example response
{
"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"
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
- info