update values
PUT /api/rest/admin/routing/destination-next-rates/:id
Parameters
Name |
Description |
data[type]
|
Resource type (destinations-next-rates)
|
data[id]
|
Destination next rate ID
|
data[attributes][next-rate]
|
Next rate
|
data[attributes][initial-rate]
|
Initial rate
|
data[attributes][initial-interval]
|
Initial interval
|
data[attributes][next-interval]
|
Next interval
|
data[attributes][connect-fee]
|
Connect fee
|
data[attributes][apply-time]
|
Apply time
|
data[attributes][applied]
|
Applied
|
data[attributes][external-id]
|
External id
|
Request
Headers
Route
PUT /api/rest/admin/routing/destination-next-rates/5
Body
{"data":{"type":"destination-next-rates","id":5,"attributes":{"initial-rate":22}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "5",
"type": "destination-next-rates",
"links": {
"self": "http://example.org/api/rest/admin/routing/destination-next-rates/5"
},
"attributes": {
"next-rate": "0.0",
"initial-rate": "22.0",
"initial-interval": 5,
"next-interval": 10,
"connect-fee": "0.0",
"apply-time": "2024-11-14T10:55:59.519Z",
"applied": false,
"external-id": null
},
"relationships": {
"destination": {
"links": {
"self": "http://example.org/api/rest/admin/routing/destination-next-rates/5/relationships/destination",
"related": "http://example.org/api/rest/admin/routing/destination-next-rates/5/destination"
}
}
}
}
}