Accounts-accountId-products-productId:PUT

From Hostway API Documentation
Revision as of 09:20, 20 February 2013 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox