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": "a0622f2f-8df9-431f-b838-f42fa8022d81",
  "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>a0622f2f-8df9-431f-b838-f42fa8022d81</AccountID>
  <AccessLevel>STANDARD_USER</AccessLevel>
</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>