POST api/roleapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
RoleViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| descriptions | Dictionary of string [key] and string [value] |
Required |
|
| active | boolean |
Required |
|
| ID | globally unique identifier |
None. |
|
| rights | Collection of ShortRightViewModel |
None. |
|
| technical_description | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"id": "6876e01d-2bc2-47ef-8b38-54bc5ee67079",
"rights": [
{
"code": "sample string 1",
"id": "6716c1cd-ad42-4876-8cc3-71b4ed88e314"
},
{
"code": "sample string 1",
"id": "6716c1cd-ad42-4876-8cc3-71b4ed88e314"
}
],
"technical_description": "sample string 3"
}
application/xml, text/xml
Sample:
<role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<ID>6876e01d-2bc2-47ef-8b38-54bc5ee67079</ID>
<active>true</active>
<rights>
<right>
<ID>6716c1cd-ad42-4876-8cc3-71b4ed88e314</ID>
<code>sample string 1</code>
</right>
<right>
<ID>6716c1cd-ad42-4876-8cc3-71b4ed88e314</ID>
<code>sample string 1</code>
</right>
</rights>
<technical_description>sample string 3</technical_description>
<descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</descriptions>
</role>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"b67e662b-2ef0-478e-aecc-848b270b3d00"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">b67e662b-2ef0-478e-aecc-848b270b3d00</guid>