POST api/Roles

Request Information

URI Parameters

None.

Body Parameters

UserRoleDTO
NameDescriptionTypeAdditional information
ID

integer

None.

AccountID

integer

None.

Name

string

None.

Master

boolean

None.

Admin

boolean

None.

RegionalManager

boolean

None.

Supervisor

boolean

None.

OpsManager

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AccountID": 2,
  "Name": "sample string 3",
  "Master": true,
  "Admin": true,
  "RegionalManager": true,
  "Supervisor": true,
  "OpsManager": true
}

application/xml, text/xml

Sample:
<UserRoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO">
  <AccountID>2</AccountID>
  <Admin>true</Admin>
  <ID>1</ID>
  <Master>true</Master>
  <Name>sample string 3</Name>
  <OpsManager>true</OpsManager>
  <RegionalManager>true</RegionalManager>
  <Supervisor>true</Supervisor>
</UserRoleDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserRoleDTO
NameDescriptionTypeAdditional information
ID

integer

None.

AccountID

integer

None.

Name

string

None.

Master

boolean

None.

Admin

boolean

None.

RegionalManager

boolean

None.

Supervisor

boolean

None.

OpsManager

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AccountID": 2,
  "Name": "sample string 3",
  "Master": true,
  "Admin": true,
  "RegionalManager": true,
  "Supervisor": true,
  "OpsManager": true
}

application/xml, text/xml

Sample:
<UserRoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO">
  <AccountID>2</AccountID>
  <Admin>true</Admin>
  <ID>1</ID>
  <Master>true</Master>
  <Name>sample string 3</Name>
  <OpsManager>true</OpsManager>
  <RegionalManager>true</RegionalManager>
  <Supervisor>true</Supervisor>
</UserRoleDTO>