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": "f8240373-da72-4cea-80a4-db410f077265",
  "customerName": "sample string 4",
  "id": "f7caa431-1507-4081-8369-212e26250a93",
  "names": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "permissions": [
    {
      "id": "c6baa737-90ce-4333-b0e7-9d353ccd367f",
      "active": true,
      "foreign_ID": "7947c6d5-b686-4af2-bbf9-0998b6169cf8",
      "foreign_Label": "sample string 3",
      "type": 1
    },
    {
      "id": "c6baa737-90ce-4333-b0e7-9d353ccd367f",
      "active": true,
      "foreign_ID": "7947c6d5-b686-4af2-bbf9-0998b6169cf8",
      "foreign_Label": "sample string 3",
      "type": 1
    }
  ],
  "site_ID": "ad9b73f8-1b72-4455-b653-ca420132bee8",
  "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>f8240373-da72-4cea-80a4-db410f077265</customer_ID>
  <id>f7caa431-1507-4081-8369-212e26250a93</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>7947c6d5-b686-4af2-bbf9-0998b6169cf8</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>c6baa737-90ce-4333-b0e7-9d353ccd367f</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
    <PBI_PermissionsViewModel>
      <Active>true</Active>
      <Foreign_ID>7947c6d5-b686-4af2-bbf9-0998b6169cf8</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>c6baa737-90ce-4333-b0e7-9d353ccd367f</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
  </permissions>
  <siteName>sample string 8</siteName>
  <site_ID>ad9b73f8-1b72-4455-b653-ca420132bee8</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:
"3f4bbe89-837d-4d35-83ab-186857c155ac"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3f4bbe89-837d-4d35-83ab-186857c155ac</guid>