Create export request
POST/exports
Create export request.
Authorization Action:
exporter:exports:create
Request
- application/json
Body
required
- Array [
- ]
- Array [
- MessageExportItemParamsDto
- ResourceExportItemParamsDto
- ]
- Array [
- ]
format objectrequired
Possible values: [csv
, xlsx
, pdf
]
columns object[]
Column id
.
When exporting resource items it must be formatted as: <type>.<attribute>
.
Column label
Default value: utc
Possible values: [tabular
, expanded
]
Default value: tabular
Possible values: [recurring
, oneTime
]
items object[]required
params objectrequired
target objectrequired
Identifier of the resource the be exported: typically a URN
Label that will replace the target
Subtopic from which to retrieve data for export
Unix timestamp: number of seconds since 1970 UTC
Unix timestamp: number of seconds since 1970 UTC
Possible values: Value must match regular expression durationRegExp
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
decimation object
Decimation granularity. Only supports positive integer.
Possible values: [avg
, max
, min
, sum
, stddev
, variance
]
page object
Possible values: Value must match regular expression durationRegExp
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
notification objectrequired
messages object[]required
Possible values: [onSuccess
, onFailure
]
Possible values: [email
, telegram
, slack
, discord
]
Responses
- 201
- 400
- 429
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- MessageExportItemParamsDto
- ResourceExportItemParamsDto
- ]
- Array [
- ]
format objectrequired
Possible values: [csv
, xlsx
, pdf
]
columns object[]
Column id
.
When exporting resource items it must be formatted as: <type>.<attribute>
.
Column label
Default value: utc
Possible values: [tabular
, expanded
]
Default value: tabular
Possible values: [recurring
, oneTime
]
items object[]required
params objectrequired
target objectrequired
Identifier of the resource the be exported: typically a URN
Label that will replace the target
Subtopic from which to retrieve data for export
Unix timestamp: number of seconds since 1970 UTC
Unix timestamp: number of seconds since 1970 UTC
Possible values: Value must match regular expression durationRegExp
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
decimation object
Decimation granularity. Only supports positive integer.
Possible values: [avg
, max
, min
, sum
, stddev
, variance
]
page object
Possible values: Value must match regular expression durationRegExp
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
notification objectrequired
messages object[]required
Possible values: [onSuccess
, onFailure
]
Possible values: [email
, telegram
, slack
, discord
]
{
"format": {
"extension": "csv",
"columns": [
{
"id": "string",
"label": "string"
}
],
"timezone": {},
"template": "tabular"
},
"type": "recurring",
"items": [
{
"params": {},
"filename": "string"
}
],
"periodicity": "P1Y6M4DT12H30M5S",
"notification": {
"messages": [
{
"policy": "onSuccess",
"medium": "email",
"title": "string",
"text": "string"
}
]
},
"id": "string",
"createdAt": "2024-07-18T14:21:17.736Z",
"updatedAt": "2024-07-18T14:21:17.736Z",
"deletedAt": "2024-07-18T14:21:17.736Z"
}
Missing user identity id
Maximum number of queued exports reached