AccountUserCreate()

This API call is used to create both an Account and its first User.

API URL:

[BaseURL]/Account

Request Method:

POST

Request Format

XML type:

Required information:

Optional information:

Response Format

Status Code:

Headers:

Errors

Example

Create a new Account and the first full access User

The following example creates a new Account and the first full access User. Here we also set the Users Password (/Account/UserList/User/Credentials/Password) and Language preference (/Account/UserList/User/Languages/Language).

Sample Request:

POST /rest/2015/02/Account HTTP/1.1
Host: api.uvvu.com
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Account xmlns="http://www.decellc.org/schema/2015/03/coordinator">
  <DisplayName>John's Account</DisplayName>
  <Country>US</Country>
  <UserList>
    <User UserClass="urn:dece:role:user:class:full">
      <Name>
        <GivenName>John</GivenName>
        <SurName>Smith</SurName>
      </Name>
      <ContactInfo>  
        <PrimaryEmail>
          <Value>JohnK@anymail.com</Value>  
        </PrimaryEmail>
      </ContactInfo>
      <Languages>
        <Language>en-US</Language>
      </Languages>
      <Credentials>
        <Username>john_the_user</Username>    
        <Password>Secret.123</Password>
      </Credentials>
    </User>
  </UserList>
</Account>

Sample Response:

HTTP/1.1 200
Date: [Date]
Location: https://api.uvvu.com/rest/2015/02/Account/urn:dece:accountid:org:dece:98C61D79D9644410751EAF34C13BADA8/User/urn:dece:userid:org:dece:A8C61D79D9644410751EAF34C13BADA8
X-transaction-info: [TransactionInfo]

See Also