datasets

Trim dataset by duration

Changed on

Queues 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

Path parameters

dataset_idstring required

Request body

maxDurationstring required

Example request

{
  "maxDuration": "1h"
}

Response

Job created

jobIDstring required

Changes

    • breaking

      removed the success response with the status

    • info

      added the success response with the status