PUT api/v2/admin/accounts/{id}/addressbookpermissions
This method modifies sub account access to the master account addressbook. The access either be given or taken away.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
A list of sub accountIDs along with
AccountAddressbookPermissionV2RequestName | Description | Type | Additional information |
---|---|---|---|
accountsAddressbookAccess | Collection of AccountAddressBookPermissionDetail |
None. |
Request Formats
application/json, text/json
Sample:
{ "accountsAddressbookAccess": [ { "ID": "46ee6694-07f2-4d5d-865e-0bc12c65f3c2", "PermissionLevel": 0 }, { "ID": "46ee6694-07f2-4d5d-865e-0bc12c65f3c2", "PermissionLevel": 0 } ] }
application/xml, text/xml
Sample:
<AccountAddressbookPermissionV2Request xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <accountsAddressbookAccess> <AccountAddressBookPermissionDetail> <ID>46ee6694-07f2-4d5d-865e-0bc12c65f3c2</ID> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookPermissionDetail> <AccountAddressBookPermissionDetail> <ID>46ee6694-07f2-4d5d-865e-0bc12c65f3c2</ID> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookPermissionDetail> </accountsAddressbookAccess> <UserPassword>sample string 1</UserPassword> </AccountAddressbookPermissionV2Request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfAccountAddressBookPermissionResponse[]Name | Description | Type | Additional information |
---|---|---|---|
Error | Error |
None. |
|
ResponseData | ResponseDataOfAccountAddressBookPermissionResponse[] |
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": [ { "ID": "c34c78c0-a598-4d5a-ad16-d2ec3eb5477b", "Emailaddress": "sample string 2", "PermissionLevel": 0 }, { "ID": "c34c78c0-a598-4d5a-ad16-d2ec3eb5477b", "Emailaddress": "sample string 2", "PermissionLevel": 0 } ] } }
application/xml, text/xml
Sample:
<ResponseOfArrayOfAccountAddressBookPermissionResponse 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> <AccountAddressBookPermissionResponse> <ID>c34c78c0-a598-4d5a-ad16-d2ec3eb5477b</ID> <Emailaddress>sample string 2</Emailaddress> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookPermissionResponse> <AccountAddressBookPermissionResponse> <ID>c34c78c0-a598-4d5a-ad16-d2ec3eb5477b</ID> <Emailaddress>sample string 2</Emailaddress> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookPermissionResponse> </Detail> </ResponseData> </ResponseOfArrayOfAccountAddressBookPermissionResponse>