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
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
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"
}
}
}
}
}