POST api/PBI_role/role
Request Information
URI Parameters
None.
Body Parameters
PBI_RoleViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
None. |
|
| code | string |
Required |
|
| customer_ID | globally unique identifier |
None. |
|
| customerName | string |
None. |
|
| id | globally unique identifier |
None. |
|
| names | Dictionary of string [key] and string [value] |
Required |
|
| permissions | Collection of PBI_PermissionsViewModel |
Required |
|
| site_ID | globally unique identifier |
Required |
|
| siteName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"active": true,
"code": "sample string 2",
"customer_ID": "f2810bb3-8c62-45e3-b737-de74a2f289b7",
"customerName": "sample string 4",
"id": "d6d96333-7f06-4ac4-a937-9f6135bd961c",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "5948f0d2-b57a-4d66-8833-41e73cfbbcee",
"active": true,
"foreign_ID": "125458b6-9b74-4ca1-ad73-6f9f7df7c4e8",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "5948f0d2-b57a-4d66-8833-41e73cfbbcee",
"active": true,
"foreign_ID": "125458b6-9b74-4ca1-ad73-6f9f7df7c4e8",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "ad7e234e-c5a8-4db0-bc71-5d846c7f5c6a",
"siteName": "sample string 8"
}
application/xml, text/xml
Sample:
<PBI_RoleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f2810bb3-8c62-45e3-b737-de74a2f289b7</customer_ID>
<id>d6d96333-7f06-4ac4-a937-9f6135bd961c</id>
<names 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>
</names>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>125458b6-9b74-4ca1-ad73-6f9f7df7c4e8</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>5948f0d2-b57a-4d66-8833-41e73cfbbcee</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>125458b6-9b74-4ca1-ad73-6f9f7df7c4e8</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>5948f0d2-b57a-4d66-8833-41e73cfbbcee</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>ad7e234e-c5a8-4db0-bc71-5d846c7f5c6a</site_ID>
</PBI_RoleViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"c403ee02-ed4f-4175-99d0-d461dffc38dc"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c403ee02-ed4f-4175-99d0-d461dffc38dc</guid>