Accounts-accountId-products-productId-services-serviceId:PUT
From Hostway API Documentation
(Difference between revisions)
(Created page with "= PUT /accounts/''{accountId}''/products/''{productId}''/services/''{serviceId}' = Updates the status of an existing service. __TOC__ == Request == <code>PUT /accounts/''{acco...") |
Mike.robski (Talk | contribs) m (1 revision: Release 110) |
Latest revision as of 11:50, 20 August 2015
[edit] PUT /accounts/{accountId}/products/{productId}/services/{serviceId}'
Updates the status of an existing service.
Contents |
[edit] Request
PUT /accounts/{accountId}/products/{productId}/services/{serviceId}
[edit] Parameters
- accountId - string
- The Id of the account.
- productId - string
- The Id of the product.
- serviceId- string
- The Id of the service.
[edit] URI Parameters
None.
[edit] Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
[edit] Request Body
{"status": "new_status"}
[edit] Parameters
- status - string
- Can be one of the following statuses: open, suspended, closed, purged.
[edit] Response
[edit] 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.
[edit] Response Body
None.
[edit] See also