Orders-orderId-account-attributes:DELETE

From Hostway API Documentation
Jump to: navigation, search

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.
403 Forbidden Unauthorized: Attributes failed permission check Access order account attributes as an authenticated user, not associated with the order.
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

Delete attributes with wrong OwnerId

Request

DELETE /orders/{orderId}/account/attributes
Cookie: OwnerId={wrong_order_id}; Path=/

Response

401 Unauthorized
Content-Type: text/plain; charset=UTF-8

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. 
Either you supplied the wrong credentials (e.g., bad password), 
or your browser does not understand how to supply the credentials required.

Unassociated user without cookie

Request

DELETE /orders/{orderId}/account/attributes
Authorization: {unassociated_user_authorization}

Response

403 Forbidden
Content-Type: application/json; charset=UTF-8

{
  "forbidden" : {
    "guid" : "66f63a81-52e9-4ec6-a50a-42acebc021e7",
    "message" : "Unauthorized: Attributes failed permission check",
    "code" : 403,
    "details" : ""
  }
}

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox