Datasets
Update dataset
Changed onUpdates the description and retentionDays of a dataset. Both values are replaced, so omitting description clears it, and omitting retentionDays or setting it to 0 applies your plan's default retention. 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.
put/datasets/{dataset_id}
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesdatasets|update
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
Request body
Example request
{
"description": "string",
"retentionDays": 30
}Response
Updated 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