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

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

A list of sub accountIDs along with

AccountAddressbookPermissionV2Request
NameDescriptionTypeAdditional information
accountsAddressbookAccess

Collection of AccountAddressBookPermissionDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "accountsAddressbookAccess": [
    {
      "ID": "8b092836-7e83-46bb-ac4c-d1735e20db6a",
      "PermissionLevel": 0
    },
    {
      "ID": "8b092836-7e83-46bb-ac4c-d1735e20db6a",
      "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>8b092836-7e83-46bb-ac4c-d1735e20db6a</ID>
      <PermissionLevel>NONE</PermissionLevel>
    </AccountAddressBookPermissionDetail>
    <AccountAddressBookPermissionDetail>
      <ID>8b092836-7e83-46bb-ac4c-d1735e20db6a</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[]
NameDescriptionTypeAdditional 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": "7408d543-b5bd-42cd-a44e-7f71348bb0a7",
        "Emailaddress": "sample string 2",
        "PermissionLevel": 0
      },
      {
        "ID": "7408d543-b5bd-42cd-a44e-7f71348bb0a7",
        "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>7408d543-b5bd-42cd-a44e-7f71348bb0a7</ID>
        <Emailaddress>sample string 2</Emailaddress>
        <PermissionLevel>NONE</PermissionLevel>
      </AccountAddressBookPermissionResponse>
      <AccountAddressBookPermissionResponse>
        <ID>7408d543-b5bd-42cd-a44e-7f71348bb0a7</ID>
        <Emailaddress>sample string 2</Emailaddress>
        <PermissionLevel>NONE</PermissionLevel>
      </AccountAddressBookPermissionResponse>
    </Detail>
  </ResponseData>
</ResponseOfArrayOfAccountAddressBookPermissionResponse>