Create export request
POST/exports
Create export request.
Authorization Action:
exporter:exports:create
Request
- application/json
Bodyrequired
format objectrequired
typestringrequired
Possible values: [recurring, oneTime]
items object[]required
periodicitystring
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
Possible values: Value must match regular expression durationRegExp
Example:
P1Y6M4DT12H30M5SperiodStartnumber
Period start expressed in Unix timestamp. If not specified, the creation date of the request will be used.
notification objectrequired
Responses
- 201
- 400
- 429
- application/json
- Schema
- Example (auto)
Schema
format objectrequired
typestringrequired
Possible values: [recurring, oneTime]
items object[]required
periodicitystring
ISO8601 Duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
Possible values: Value must match regular expression durationRegExp
Example:
P1Y6M4DT12H30M5SperiodStartnumber
Period start expressed in Unix timestamp. If not specified, the creation date of the request will be used.
notification objectrequired
idstringrequired
createdAtstring<date-time>required
updatedAtstring<date-time>required
deletedAtstring<date-time>required
{
"format": {
"filename": "string",
"extension": "csv",
"columns": [
{
"id": "string",
"label": "string"
}
],
"timezone": "utc",
"template": "tabular",
"csvDelimiter": "string"
},
"type": "recurring",
"items": [
{
"params": {
"target": {
"value": "string",
"label": "string"
},
"channelId": "0115c85d-ef3e-4de9-9732-d0c5c4f2c482",
"subtopic": "events.data",
"from": 0,
"to": 0,
"period": "P1Y6M4DT12H30M5S",
"decimation": {
"ds": "15m",
"dsf": "avg"
},
"transform": "delta",
"outputFormat": "long"
},
"filename": "string"
}
],
"periodicity": "P1Y6M4DT12H30M5S",
"periodStart": 0,
"notification": {
"messages": [
{
"target": "string",
"policy": "onSuccess",
"medium": "email",
"title": "string",
"text": "string"
}
]
},
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"deletedAt": "2024-07-29T15:51:28.071Z"
}
Missing user identity id
Maximum number of queued exports reached
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://connhex.com/exports");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"format\": {\n \"filename\": \"string\",\n \"extension\": \"csv\",\n \"columns\": [\n {\n \"id\": \"string\",\n \"label\": \"string\"\n }\n ],\n \"timezone\": \"utc\",\n \"template\": \"tabular\",\n \"csvDelimiter\": \"string\"\n },\n \"type\": \"recurring\",\n \"items\": [\n {\n \"params\": {\n \"target\": {\n \"value\": \"string\",\n \"label\": \"string\"\n },\n \"channelId\": \"0115c85d-ef3e-4de9-9732-d0c5c4f2c482\",\n \"subtopic\": \"events.data\",\n \"from\": 0,\n \"to\": 0,\n \"period\": \"P1Y6M4DT12H30M5S\",\n \"decimation\": {\n \"ds\": \"15m\",\n \"dsf\": \"avg\"\n },\n \"transform\": \"delta\",\n \"outputFormat\": \"long\"\n },\n \"filename\": \"string\"\n }\n ],\n \"periodicity\": \"P1Y6M4DT12H30M5S\",\n \"periodStart\": 0,\n \"notification\": {\n \"messages\": [\n {\n \"target\": \"string\",\n \"policy\": \"onSuccess\",\n \"medium\": \"email\",\n \"title\": \"string\",\n \"text\": \"string\"\n }\n ]\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());