Versions Compared

Key

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

...

Deck of Cards
idbimUpdateProject


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

JSON Structure

Name

Mandatory / Optional

Type

Description

member

mandatory

object

The member who will be assigned a role to the project.

id

mandatory

Object must have set "id" as string(guid) - Id of the user.

role

mandatory

object

The project role which will be assigned to the team member.

id

mandatory

Object must have set "id" as string(guid) - Id of the role



Card
labelHTTP Method
 PUT


Card
labelDescription
 Update the project role of a team member. Only the user with "Account Owner" or "Project Owner" role can use this API call.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
  "member": {
    "id": "bf5b2382efeb4da2-1d141c7c-b8df4aa8-8454ab13-947f83b45c2528638f9669a8"
  },
  "role": {
    "id": "f11d32e2a298b28d-30b79711-4f814a76-8a749a7d-2165ecc00cf6910cbf144ee5"
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
titleJSON
{
},
  "memberroles": [{
      "id": "bf5b23825d4eaafa-1d14aed0-b8df4c53-8454803d-2fb7fa6a208b"
    },
    {
      "id":"72fd3336-7df5-410d-a883-98318e6337b6"
    }
  ]
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
titleJSON
{
  "member": {
    "id": "bf5b2382-1d14-b8df-8454-947f83b45c25",
    "email": "testuser@bimplus.net",
    "firstname" : "Test",
    "lastname" : "User",
    ...
  },
  "role": {
    "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
    "name": "Project_Editor"
  }
  "roles":[
    {
  947f83b45c25",
    "emailid": "customer@bimplus.netf11d32e2-30b7-4f81-8a74-2165ecc00cf6",
      "firstnamename" : "Some"Project_Editor"
    },
    "lastname" : "Customer{
      "id":"391fb0fc-43ec-464c-bd18-b5223b32bd14",
     ...
 "name":"Architekt"
    },
  "role":  {
      "id": "f11d32e233078aed-30b70473-4f814714-8a74beb9-2165ecc00cf6ab989959afdd",
      "name": "Project_Viewer"BuildingEditor"
    }
  ]
}



Anchor
deleteProjectRole
deleteProjectRole

...