get originated CPS chart for account during time period
POST /api/rest/customer/v1/chart-originated-cps
Parameters
Name |
Description |
data[type]
|
Resource type (chart-originated-cps)
|
data[attributes][from-time]
|
From time
|
data[attributes][to-time]
|
To time
|
data[relationships][account]
|
Account
|
Request
Headers
Route
POST /api/rest/customer/v1/chart-originated-cps
Body
{"data":{"type":"chart-originated-cps","attributes":{"from-time":"2019-01-01 00:00:00","to-time":"2019-01-02 00:00:00"},"relationships":{"account":{"data":{"type":"accounts","id":"4b674db2-445e-11ef-b3ec-0242ac120003"}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "928e0173-d53e-4320-8737-e3693e5c58af",
"type": "chart-originated-cps",
"links": {
"self": "http://example.org/api/rest/customer/v1/chart-originated-cps/928e0173-d53e-4320-8737-e3693e5c58af"
},
"attributes": {
"from-time": "2019-01-01T00:00:00.000Z",
"to-time": "2019-01-02T00:00:00.000Z",
"cps": [
{
"y": "0.2",
"x": "2019-01-01T23:59:00.000Z"
}
]
},
"relationships": {
"account": {
"links": {
"self": "http://example.org/api/rest/customer/v1/chart-originated-cps/928e0173-d53e-4320-8737-e3693e5c58af/relationships/account",
"related": "http://example.org/api/rest/customer/v1/chart-originated-cps/928e0173-d53e-4320-8737-e3693e5c58af/account"
}
}
}
}
}