Orders-orderId-account-attributes:DELETE

(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Status Code)
Line 18: Line 18:
  
 
=== Status Code ===
 
=== Status Code ===
;204 No Content
 
: The account attributes were successfully set.
 
  
;404 Not Found
+
{| class='wikitable'
: The specified order does not exist.
+
|-
 +
! Status Code
 +
! Error Message
 +
! Description
 +
|-
 +
| 204 No Content
 +
| align="center" | -
 +
| The account attributes were successfully deleted.
 +
|-
 +
| 401 Unauthorized
 +
| align="center" | -
 +
| No owner Id specified or the specified owner is not authorized to delete attributes for this account.
 +
|-
 +
| rowspan="1" | 404 Not Found
 +
| Resource not found
 +
| The specified order does not exist.
 +
|}
 +
 
 +
== Example ==
 +
=== Successfully delete all attributes ===
 +
'''Request'''
 +
<nowiki>
 +
DELETE /orders/{orderId}/account/attributes
 +
Cookie: OwnerId={owner_id}; Path=/</nowiki>
 +
 
 +
'''Response'''
 +
<nowiki>
 +
204 No Content</nowiki>
  
 
== See also ==
 
== See also ==

Revision as of 10:05, 8 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


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox