POST api/v1/admin/users/{id}/accounts

Adds a sub account access to the current user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the user

globally unique identifier

Required

Body Parameters

The account and access level to be given to the user.

UserAccount
NameDescriptionTypeAdditional information
AccountID

The account the user has access to.

globally unique identifier

None.

AccessLevel

The access level for the user.

UserPermissions

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": "1b86c375-386a-4783-a368-314afefe7375",
  "AccessLevel": 0
}

application/xml, text/xml

Sample:
<UserAccount xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AccountID>1b86c375-386a-4783-a368-314afefe7375</AccountID>
  <AccessLevel>STANDARD_USER</AccessLevel>
  <UserPassword>sample string 2</UserPassword>
</UserAccount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfObject
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfObject

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail />
  </ResponseData>
</ResponseOfObject>