Orders-orderId-account-attributes:DELETE
(Difference between revisions)
(→Status Code) |
Mike.robski (Talk | contribs) m (1 revision: Release 98) |
Revision as of 07:51, 15 September 2014
DELETE /orders/{orderId}/account/attributes
Remove all attributes for an account in a given order.
Contents |
Request
DELETE /orders/{orderId}/account/attributes
Request Parameters
- orderId - string
- The unique order Id. The URI of the order is returned by the POST /orders call.
URI Parameters
None.
Request Headers
- Cookie
- A cookie named OwnerId to identify the client (for most browser clients, the browser will do this automatically, depending on the browser configuration). The value of the cookie would come from the response to the create order request in the Set-Cookie response header.
Response
Status Code
Status Code | Error Message | Description |
---|---|---|
204 No Content | - | The account attributes were successfully deleted. |
401 Unauthorized | - | No owner Id specified or the specified owner is not authorized to delete attributes for this account. |
404 Not Found | Resource not found | The specified order does not exist. |
Example
Successfully delete all attributes
Request
DELETE /orders/{orderId}/account/attributes Cookie: OwnerId={owner_id}; Path=/
Response
204 No Content
See also