POST api/v1/admin/users/{id}/accounts
Adds a sub account access to the current user.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the user |
globally unique identifier |
Required |
Body Parameters
The account and access level to be given to the user.
UserAccountName | Description | Type | Additional 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": "4396fb40-86e7-4c1f-a0fd-58db04c03726", "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>4396fb40-86e7-4c1f-a0fd-58db04c03726</AccountID> <AccessLevel>STANDARD_USER</AccessLevel> <UserPassword>sample string 2</UserPassword> </UserAccount>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfObjectName | Description | Type | Additional 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>