Update additional service subscription
PUT /rest/v1/subjects/customers/:customer_id/subscriptions/:subscription_id/additional_services/:additional_service_subscription_id
Parameters
Name |
Description |
n_service_id
|
Service
|
n_quant
|
Quant
|
n_par_subscription_id
|
Parent subscription
|
d_begin
|
Start date
|
Request
Headers
Route
PUT /rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services/78175001
Body
{
"additional_service": {
"d_end": "2019-08-05T10:49:46+03:00"
}
}
Response
Headers
Status
200 OK
Body
{
"additional_service": {
"n_subscription_id": 78175001,
"n_service_id": 40216101,
"n_quant": "1",
"d_begin": "2015-08-06T22:26:24+03:00",
"d_end": "2019-08-05T10:49:46+03:00",
"n_par_subscription_id": 78174801,
"actions": {
"show": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78175001",
"edit": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78175001/edit"
}
},
"navigation": {
"self": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services/78175001",
"customer": "http://example.org/rest/v1/subjects/customers/78065201",
"additional_services": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services"
}
}