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": "f31b8f9f-040a-4a15-831d-c900e6cdaf64", "GroupID": "53297706-5d36-4550-8378-8101559e479d", "PermissionLevel": 0 }, { "ID": "f31b8f9f-040a-4a15-831d-c900e6cdaf64", "GroupID": "53297706-5d36-4550-8378-8101559e479d", "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>f31b8f9f-040a-4a15-831d-c900e6cdaf64</ID> <GroupID>53297706-5d36-4550-8378-8101559e479d</GroupID> <PermissionLevel>NONE</PermissionLevel> </AccountAddressBookGroupPermissionDetails> <AccountAddressBookGroupPermissionDetails> <ID>f31b8f9f-040a-4a15-831d-c900e6cdaf64</ID> <GroupID>53297706-5d36-4550-8378-8101559e479d</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": "db5f707c-2ee5-4329-8832-64913d0ef1ec", "Name": "sample string 2", "GroupID": "4ec5363e-6402-48f4-8a26-8332ddb7c7ea", "GroupName": "sample string 4", "PermissionLevel": 0 }, { "ID": "db5f707c-2ee5-4329-8832-64913d0ef1ec", "Name": "sample string 2", "GroupID": "4ec5363e-6402-48f4-8a26-8332ddb7c7ea", "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>db5f707c-2ee5-4329-8832-64913d0ef1ec</ID> <Name>sample string 2</Name> <GroupID>4ec5363e-6402-48f4-8a26-8332ddb7c7ea</GroupID> <GroupName>sample string 4</GroupName> <PermissionLevel>NONE</PermissionLevel> </AccountAddressbookGroupPermissionResponse> <AccountAddressbookGroupPermissionResponse> <ID>db5f707c-2ee5-4329-8832-64913d0ef1ec</ID> <Name>sample string 2</Name> <GroupID>4ec5363e-6402-48f4-8a26-8332ddb7c7ea</GroupID> <GroupName>sample string 4</GroupName> <PermissionLevel>NONE</PermissionLevel> </AccountAddressbookGroupPermissionResponse> </Detail> </ResponseData> </ResponseOfArrayOfAccountAddressbookGroupPermissionResponse>