GET api/PBI_role/role/{roleId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
roleId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

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.

Response Formats

application/json, text/json

Sample:
{
  "active": true,
  "code": "sample string 2",
  "customer_ID": "f7ec4e80-d1d6-4187-9f01-7cdf2984e0cc",
  "customerName": "sample string 4",
  "id": "1c2d285c-ff8e-4176-bd61-9f64016af37d",
  "names": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "permissions": [
    {
      "id": "67a5a0df-e47d-43bc-a9ee-8bf6ff0178dd",
      "active": true,
      "foreign_ID": "a6327a63-5744-4b21-8e51-d6d6114a4da1",
      "foreign_Label": "sample string 3",
      "type": 1
    },
    {
      "id": "67a5a0df-e47d-43bc-a9ee-8bf6ff0178dd",
      "active": true,
      "foreign_ID": "a6327a63-5744-4b21-8e51-d6d6114a4da1",
      "foreign_Label": "sample string 3",
      "type": 1
    }
  ],
  "site_ID": "44790cdb-d274-4179-9c03-e11fba60a167",
  "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>f7ec4e80-d1d6-4187-9f01-7cdf2984e0cc</customer_ID>
  <id>1c2d285c-ff8e-4176-bd61-9f64016af37d</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>a6327a63-5744-4b21-8e51-d6d6114a4da1</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>67a5a0df-e47d-43bc-a9ee-8bf6ff0178dd</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
    <PBI_PermissionsViewModel>
      <Active>true</Active>
      <Foreign_ID>a6327a63-5744-4b21-8e51-d6d6114a4da1</Foreign_ID>
      <Foreign_Label>sample string 3</Foreign_Label>
      <ID>67a5a0df-e47d-43bc-a9ee-8bf6ff0178dd</ID>
      <type>SiteCustomer</type>
    </PBI_PermissionsViewModel>
  </permissions>
  <siteName>sample string 8</siteName>
  <site_ID>44790cdb-d274-4179-9c03-e11fba60a167</site_ID>
</PBI_RoleViewModel>