POST api/v1/account/users/partitionManager/enable

Need to be able to select multiple users from the user list page and apply Partition Manager role. The role will apply only to admin users. The role will apply to all multi-partitions locations to which the user has access. The role can be applied before partitions is activated for a location.

Request Information

URI Parameters

None.

Body Parameters

object of partitionManagerInfo

PartitionManagerInfo
NameDescriptionTypeAdditional information
UserIds

Collection of integer

None.

LoctionIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserIds": [
    1,
    2
  ],
  "LoctionIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<PartitionManagerInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Domain.UserConfiguration">
  <LoctionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </LoctionIds>
  <UserIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </UserIds>
</PartitionManagerInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResults

BaseResults
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "ResultData": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">
  <ResultCode>1</ResultCode>
  <ResultData>sample string 2</ResultData>
</BaseResults>