CDR Exports API

create new entry

POST /api/rest/customer/v1/cdr-exports

Parameters

Name Description
data[type] Resource type (chart-active-calls)
data[attributes][filters] Filters
data[relationships][account] Account

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEyLCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzEwMjU0MjAwfQ.zSalEYZu0C_fu7uKVpGGgQRt6yiSFKVhJAUeycHFOyI
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/cdr-exports

Body

{"data":{"type":"cdr-exports","attributes":{"filters":{"time_start_gteq":"2019-01-01 00:00:00","time_start_lt":"2019-01-02 00:00:00","success_eq":true,"duration_eq":60,"duration_gteq":0,"duration_lteq":100,"src_prefix_routing_eq":"123","dst_prefix_routing_eq":"456"}},"relationships":{"account":{"data":{"type":"accounts","id":"cc836e7a-e07d-11ee-bf85-0242ac120003"}}}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"331caafe6c3c00a085e90a50f0b1db20"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 96b27d2a-4257-4bfb-b09d-421709f50502
X-Runtime: 0.016779
Content-Length: 817

Status

201 Created

Body

{
  "data": {
    "id": "cc87040e-e07d-11ee-bf85-0242ac120003",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/cdr-exports/cc87040e-e07d-11ee-bf85-0242ac120003"
    },
    "attributes": {
      "filters": {
        "time_start_gteq": "2019-01-01T00:00:00.000Z",
        "time_start_lt": "2019-01-02T00:00:00.000Z",
        "success_eq": true,
        "duration_eq": 60,
        "duration_gteq": 0,
        "duration_lteq": 100,
        "src_prefix_routing_eq": "123",
        "dst_prefix_routing_eq": "456"
      },
      "status": "Pending",
      "rows-count": null,
      "created-at": "2024-03-12T14:35:40.198Z",
      "updated-at": "2024-03-12T14:35:40.198Z"
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/cdr-exports/cc87040e-e07d-11ee-bf85-0242ac120003/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/cdr-exports/cc87040e-e07d-11ee-bf85-0242ac120003/account"
        }
      }
    }
  }
}