Accounts-accountId-products-productId-services-serviceId:PUT
From Hostway API Documentation
Revision as of 16:19, 17 August 2015 by Vlad.ulshin (Talk)
PUT /accounts/{accountId}/products/{productId}/services/{serviceId}'
Updates the status of an existing service.
Contents |
Request
PUT /accounts/{accountId}/products/{productId}/services/{serviceId}
Parameters
- accountId - string
- The Id of the account.
- productId - string
- The Id of the product.
- serviceId- string
- The Id of the service.
URI Parameters
None.
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
Request Body
{"status": "new_status"}
Parameters
- status - string
- Can be one of the following statuses: open, suspended, closed, purged.
Response
Status Code
- 204 No Content
- The status was successfully changed.
- 400 Bad Request
The request body was invalid.
- 401 Unauthorized
- The authorization credentials were not supplied or are invalid.
- 404 Not Found
- The account or product or service Ids were not found.
- 409 Conflict
- The current status of the product or service does not allow for this change.
Response Body
None.
See also