datasets
Trim dataset by duration
Changed onQueues a job that deletes data older than maxDuration from an events, logs, or metrics dataset, and returns the job ID. Deletion runs asynchronously.
post/datasets/{dataset_id}/trim
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopestrim|update
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
Request body
Example request
{
"maxDuration": "1h"
}Response
Job created
Changes
- breaking
removed the success response with the status
- info
added the success response with the status
- breaking