Accounts-accountId-products-productId:PUT
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) |
Mike.robski (Talk | contribs) m (1 revision) |
Latest revision as of 09:28, 20 February 2013
PUT /accounts/{accountId}/products/{productId}'
Updates the status of an existing product.
Contents |
Request
PUT /accounts/{accountId}/products/{productId}
Parameters
- accountId - string
- The Id of the account.
- productId - string
- The Id of the product.
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 Ids were not found.
- 409 Conflict
- The current status of the product does not allow for this change.
Response Body
None.
See also