POST api/grp/Users/AdvancedPermissions?userId={userId}&isEmulation={isEmulation}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

isEmulation

boolean

Default value is False

Body Parameters

AdvancedPermissionsEditDTO
NameDescriptionTypeAdditional information
MACDConfig

Dictionary of string [key] and boolean [value]

None.

ProvisioningConfig

Dictionary of string [key] and boolean [value]

None.

TicketingConfig

byte

None.

BillingConfig

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MACDConfig": {
    "sample string 1": true,
    "sample string 3": true
  },
  "ProvisioningConfig": {
    "sample string 1": true,
    "sample string 3": true
  },
  "TicketingConfig": 64,
  "BillingConfig": true
}

application/xml, text/xml

Sample:
<AdvancedPermissionsEditDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSPApi.DTO.Group">
  <BillingConfig>true</BillingConfig>
  <MACDConfig xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>true</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>true</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </MACDConfig>
  <ProvisioningConfig xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>true</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>true</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </ProvisioningConfig>
  <TicketingConfig>64</TicketingConfig>
</AdvancedPermissionsEditDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AdvancedPermissionsEditDTO'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.