PUT api/v2/admin/accounts/{id}/addressbookgrouppermissions
This method modifies addressbook group permissions for chosen sub accounts. You can only modify permissions for sub accounts that are one level below. Changing group permissions for sub that is one level below will automatically take care of all the subs that are below in the hierarchy.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The account ID |
globally unique identifier |
Required |
Body Parameters
AccountAddressbookGroupPermissionV2RequestName | Description | Type | Additional information |
---|---|---|---|
AccountsAddressBookGroupAccess | Collection of AccountAddressBookGroupPermissionDetails |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountsAddressBookGroupAccess": [ { "ID": "d5a42dfa-b991-4034-980b-7d9b6c8365a5", "GroupID": "3b1b8f57-ab2e-476e-b23b-e2e4cfc156c9", "PermissionLevel": 0 }, { "ID": "d5a42dfa-b991-4034-980b-7d9b6c8365a5", "GroupID": "3b1b8f57-ab2e-476e-b23b-e2e4cfc156c9", "PermissionLevel": 0 } ] }
application/xml, text/xml
Sample:
<AccountAddressbookGroupPermissionV2Request xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AccountsAddressBookGroupAccess> <AccountAddressBookGroupPermissionDetails> <ID>d5a42dfa-b991-4034-980b-7d9b6c8365a5</ID> <GroupID>3b1b8f57-ab2e-476e-b23b-e2e4cfc156c9</GroupID> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookGroupPermissionDetails> <AccountAddressBookGroupPermissionDetails> <ID>d5a42dfa-b991-4034-980b-7d9b6c8365a5</ID> <GroupID>3b1b8f57-ab2e-476e-b23b-e2e4cfc156c9</GroupID> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookGroupPermissionDetails> </AccountsAddressBookGroupAccess> <UserPassword>sample string 1</UserPassword> </AccountAddressbookGroupPermissionV2Request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfAccountAddressbookGroupPermissionResponse[]Name | Description | Type | Additional information |
---|---|---|---|
Error | Error |
None. |
|
ResponseData | ResponseDataOfAccountAddressbookGroupPermissionResponse[] |
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": "e90f02c6-3c9b-459f-91c3-ddbfe81e83d7", "Name": "sample string 2", "GroupID": "75c48b27-c55a-4160-8b31-9f2f7b9dc735", "GroupName": "sample string 4", "PermissionLevel": 0 }, { "ID": "e90f02c6-3c9b-459f-91c3-ddbfe81e83d7", "Name": "sample string 2", "GroupID": "75c48b27-c55a-4160-8b31-9f2f7b9dc735", "GroupName": "sample string 4", "PermissionLevel": 0 } ] } }
application/xml, text/xml
Sample:
<ResponseOfArrayOfAccountAddressbookGroupPermissionResponse 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> <AccountAddressbookGroupPermissionResponse> <ID>e90f02c6-3c9b-459f-91c3-ddbfe81e83d7</ID> <Name>sample string 2</Name> <GroupID>75c48b27-c55a-4160-8b31-9f2f7b9dc735</GroupID> <GroupName>sample string 4</GroupName> <PermissionLevel>NONE</PermissionLevel> </AccountAddressbookGroupPermissionResponse> <AccountAddressbookGroupPermissionResponse> <ID>e90f02c6-3c9b-459f-91c3-ddbfe81e83d7</ID> <Name>sample string 2</Name> <GroupID>75c48b27-c55a-4160-8b31-9f2f7b9dc735</GroupID> <GroupName>sample string 4</GroupName> <PermissionLevel>NONE</PermissionLevel> </AccountAddressbookGroupPermissionResponse> </Detail> </ResponseData> </ResponseOfArrayOfAccountAddressbookGroupPermissionResponse>