Orders-orderId-account-user:PUT

(Difference between revisions)
Jump to: navigation, search
m (1 revision: Release 85)

Revision as of 16:31, 27 September 2013

PUT /orders/{orderId}/account/user

Sets or updates the account user credentials in a given order.

Contents


Request

PUT /orders/{orderId}/account/user

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

Content-Type
Required. Set this header to application/json; charset=UTF-8
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.

Request Body

{
  "userName": "mytestuser1",
  "password": "Mytestpass1"
}
 

Parameters

userName - string
Required string max 50 characters. Only letters, digits and dot (.), dash (-), underscore (_) and at sign (@) are allowed.
password - string
Required string min 8, max 50 characters. Must include at least one letter and one digit. The following characters are not allowed: &`'"\/<>$.

Response

Status Code

204 No Content
The operation was successfully completed.
400 Bad Request
The request body contains invalid JSON or the values do not adhere to the restrictions set for them.
404 Not Found
An account has not been added to the given order or the order does not exist.

Response Body

None.

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox