changes.mady.by.user Ivan Pavlovcik
Saved on May 23, 2018
Saved on May 28, 2018
...
URL: https://api-stage.bimplus.net/v2/<team_slug>/roles
Example: https://api-stage.bimplus.net/v2/bimplus/roles
JSON Structure:
Name
Mandatory / Optional
Type
Description
id
optional
string (guid)
Id of the role
name
mandatory
string
The name of the role
parent
The Id of the parent role
customRole
boolean
When this flag is true the role is custom role otherwise will role is 'built in' role
resources
JSON Array
Array of the resource definition objects for which the role is valid
JSON Structure of the resource definition object:
resource
Describe kind of right e.g. "UserRightGlobal" or "UserRightLayer"
rights
Array of the strings of rights e.g.: "FreeAttributeView", "MEP: 2", "MEPEdit"
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088 Content-Type: application/json
{ "parent": "213becc0-ad48-4cd0-aef2-b922b21bbfd7", "name": "TestRole", "customRole": true, "resources": [ { "resource": "UserRightGlobal", "rights": [ "FreeAttributeView", "FreeAttributeGroupView", "AttributeTemplateView", "ProjectAttributeTemplateView" ] }, { "resource": "UserRightLayer", "rights": [ "MEP: 2" ] } ] }
Status: 201 Created
{ "id": "118898b6-0b86-4876-bb05-bf5294e392d6", "parent": "213becc0-ad48-4cd0-aef2-b922b21bbfd7", "name": "TestRole", "customRole": true, "resources": [ { "resource": "UserRightGlobal", "rights": [ "FreeAttributeView", "FreeAttributeGroupView", "AttributeTemplateView", "ProjectAttributeTemplateView" ] }, { "resource": "UserRightLayer", "rights": [ "MEPEdit" ] } ] }