Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Deck of Cards
idbimGetRoleDetails
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7


Card
defaulttrue
labelURL / Resource / JSON Structure

Optional query parameters

NameTypeDefault valueDescription
groupsbooleanfalse

When query parameter "groups=true" is defined, the API function returns all only group names to which is cross section definition assigned.


Card
labelHTTP Method
 GET
Card
labelDescription
 Get details of a specified role.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
borderColorRed
langxml
titleJSON
 {
    "id": "118898b6-0b86-4876-bb05-bf5294e392d6",
    "parent": "213becc0-ad48-4cd0-aef2-b922b21bbfd7",
    "name": "Skuska2child",
    "customRole": true,
    "resources": [
        {
            "resource": "UserRightGlobalFreeAttributes",
            "rights": [
                "FreeAttributeView",
                "FreeAttributeGroupView",
                "AttributeTemplateView",
                "ProjectAttributeTemplateView"
            ]
        },
        {
            "resource": "UserRightLayer",
            "rights": [
                "MEPEdit"
            ]
        }
    ]
}


Anchor
updateTheRole
updateTheRole

Update the role
Deck of Cards
idbimUpdateTheRole
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7

Json structure : See above in Create a new role section.


Card
labelHTTP Method
 PUT
Card
labelDescription
Update the role.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
    "name": "Skuska2update",
    "customRole": true,

    "resources": 
	[ 
        {
            "resource": "UserRightLayer",
            "rights": 
			[
                 "MEP: 3"
                 
            ]
        }
    ]
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
titleJSON
{
	"id": "213becc0-ad48-4cd0-aef2-b922b21bbfd7",
	"name": "Skuska2update",
	"customRole": true,
	"resources": [
		{
			"resource": "UserRightLayer",
			"rights": [
				"MEPAdmin"
			]
		}
	]
}

Anchor
deleteTheRole
deleteTheRole

Delete the role
Deck of Cards
idbimDeleteTheRole
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7

Card
labelHTTP Method
 DELETE
Card
labelDescription
 Deletes a specified role.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Anchor
assignProjectRole
assignProjectRole

...