POST api/PBI_role/role

Request Information

URI Parameters

None.

Body Parameters

PBI_RoleViewModel
NameDescriptionTypeAdditional 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": "4f38f7cc-2c74-476d-87ab-6370cc5d64a3",
  "customerName": "sample string 4",
  "id": "37eb48b4-5830-494b-9b78-853ea2df3846",
  "names": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "permissions": [
    {
      "id": "a24c05f4-8aa0-46af-85d4-3fc6148dd22d",
      "active": true,
      "foreign_ID": "412dc21a-c717-4209-86c4-52eacd221f95",
      "foreign_Label": "sample string 3",
      "type": 1
    },
    {
      "id": "a24c05f4-8aa0-46af-85d4-3fc6148dd22d",
      "active": true,
      "foreign_ID": "412dc21a-c717-4209-86c4-52eacd221f95",
      "foreign_Label": "sample string 3",
      "type": 1
    }
  ],
  "site_ID": "45a13c65-0b63-4366-9f9e-d851e35ea9e2",
  "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>4f38f7cc-2c74-476d-87ab-6370cc5d64a3</customer_ID>
  <id>37eb48b4-5830-494b-9b78-853ea2df3846</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>412dc21a-c717-4209-86c4-52eacd221f95</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>a24c05f4-8aa0-46af-85d4-3fc6148dd22d</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
    <PBI_PermissionsViewModel>
      <Active>true</Active>
      <Foreign_ID>412dc21a-c717-4209-86c4-52eacd221f95</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>a24c05f4-8aa0-46af-85d4-3fc6148dd22d</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
  </permissions>
  <siteName>sample string 8</siteName>
  <site_ID>45a13c65-0b63-4366-9f9e-d851e35ea9e2</site_ID>
</PBI_RoleViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"5eedb01f-962d-423b-ab0d-db30a6a88b48"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5eedb01f-962d-423b-ab0d-db30a6a88b48</guid>