Creates a new Data Extract.

Create a new Data Extract.

Request
Security:
query Parameters
o
required
integer

Organization ID

Request Body schema: application/json

Create Data Extract

type
required
string non-empty
Default: "patch-history"

The type of Data Extract that should be created.

Value: "patch-history"
required
object
start_time
required
string <date-time> non-empty

The start date and time for the report. Validation: Previous 90 days, starting yesterday.

end_time
required
string <date-time> non-empty

The end date and time for the report. Validation: Previous 90 days, starting yesterday and must be after start_time.

Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

post/data-extracts
Request samples
application/json
{
  • "type": "patch-history",
  • "parameters": {
    • "start_time": "2021-05-28T13:31:57.510Z",
    • "end_time": "2021-05-30T06:42:12.117Z"
    }
}
Response samples
application/json
[
  • {
    • "id": 0,
    • "organization_id": 0,
    • "user_id": 0,
    • "status": "queued",
    • "is_completed": true,
    • "created_at": "2019-08-24T14:15:22Z",
    • "download_expires_at": "2019-08-24T14:15:22Z",
    • "download_url": "string",
    • "parameters": {
      • "start_time": "2019-08-24T14:15:22Z",
      • "end_time": "2019-08-24T14:15:22Z"
      }
    }
]