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.eyJzdWIiOjEyLCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzMxNTc4MjI1fQ.NDqgg6N-yclAUs6Np5_0d-dunUoswg2-RdCQk2n5VQI
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":"aa3432e2-a26e-11ef-a008-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/"14ec885ee5d6c62c5156afbdac0950fa"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5b09b88b-80d2-4f0e-9c0c-9fe78807d3fe
X-Runtime: 0.015800
Content-Length: 817

Status

201 Created

Body

{
  "data": {
    "id": "aa3834e6-a26e-11ef-a008-0242ac120003",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/cdr-exports/aa3834e6-a26e-11ef-a008-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-11-14T09:56:05.767Z",
      "updated-at": "2024-11-14T09:56:05.767Z"
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/cdr-exports/aa3834e6-a26e-11ef-a008-0242ac120003/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/cdr-exports/aa3834e6-a26e-11ef-a008-0242ac120003/account"
        }
      }
    }
  }
}