Versions Compared

Key

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

...

Membership Management Service

...

Deck of Cards
idbimAddUserToTeam


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/members 

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

Examplehttps://api-stage.bimplus.net/v2/best-company/members

JSON Structure

Name

Mandatory / Optional

Type

Description

user

mandatory

object

Information of the user

user.id

mandatory

string

Id of the user

user.email

will be ignored

string

Email of the user

user.status

will be ignored

string

Status of the user (Active / Inactive)

rolesrole

will be ignoredoptional

objectstring

Roles Team role of the user (Member / Admin / Owner / Guest), default is Member

member_status

optional

string

Status of the membership (Active / Passive), default is Active



Card
labelHTTP Method
 POST


Card
labelDescription
 Add a specified user to a specified team.


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
    "user": {
        "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c6"
    },
      "rolesmember_status": [
        "Member"
    ],Active"
    "member_statusrole": "ActiveMember"

}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 Ok


Code Block
titleJSON
{
    "user": {
      "id": "3d676814-cf37-aa43-ed03-4b156c282fa1",
      "email": "testuser@allplan.com",
      "status": "Active",
      "firstname": "Test",
      "lastname": "User",
      "company": "Allplan",
      "fullname": "Test User",
      "displayname": "Test User [Allplan]",
      "info": null,
      "gender": "MR",
      "phoneWork": null,
      "phoneHome": null,
      "fax": null,
      "mobile": "123",
      "birthDate": null,
      "address": {
        "street": "",
        "streetNr": "",
        "zip": "",
        "city": "",
        "country": ""
      },
      "preferedLanguage": "en"
    },
    "rolesrole": [
      "Member"
    ],
    "member_status": "Active"
  }



Anchor
getMembersOfTeam
getMembersOfTeam

...

Deck of Cards
idbimGetMemberListInfo


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/members 

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

Examplehttps://api-stage.bimplus.net/v2/best-company/members


Card
labelHTTP Method
 GET


Card
labelDescription
 Gets the member list of a specified team.


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
[
    {
        "user": {
            "id": "b8615afc3d676814-99cccf37-4bcdaa43-b0caed03-ff0593ce15c64b156c282fa1",
            "email": "test@bimplustestuser@allplan.netcom",
            "status": "Active",
      "firstname": "Test",
      "lastname": "User"
        },
        "roles": [
            "Member"
        ],
      "company": "Allplan",
      "fullname": "Test User",
      "displayname": "Test User [Allplan]",
      "info": null,
      "gender": "MR",
      "phoneWork": null,
      "phoneHome": null,
      "fax": null,
      "mobile": "123",
      "birthDate": null,
      "address": {
        "street": "",
        "streetNr": "",
        "zip": "",
        "city": "",
        "country": ""
      },
      "preferedLanguage": "en"
    },
    "role": "Member",
    "member_status": "Active"
    },
    {
        "user": {
            "id": "b8615afc0d545b40-99cc9258-4bcd42f2-b0ca8e0e-ff0593ce15c7e2325a8eb446",
            "email": "customer@bimplustestuser2@allplan.netcom",
            "status": "Active",
      "firstname": "Test",
      "lastname": "User2",
      "company": "
        },
        "roles": [
            "Member"
        ],
        "status": "Passive"
   Allplan",
      "fullname": "Test User2",
      "displayname": "Test User2 [Allplan]",
      "info": null,
      "gender": "MR",
      "phoneWork": null,
      "phoneHome": null,
      "fax": null,
      "mobile": "123",
      "birthDate": null,
      "address": {
        "street": "",
        "streetNr": "",
        "zip": "",
        "city": "",
        "country": ""
      },
      "preferedLanguage": "de"
    },
    "role": "Member",
    "member_status": "Active"
  }
]



Anchor
updateUserInTeam
updateUserInTeam

Update

...

user's membership in the team
Deck of Cards
idbimUpdateUserInfoInTeam


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/members/<user_id> 

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

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

JSON Structure

Name

Mandatory / Optional

Type

Description

user

mandatory

object

Information of the user

user.id

mandatory

string

Id of the user

member_status

mandatory

string

Status of the membership(Active / Passive)

role

optional

string

Team role of the user (Guest /Member / Admin / Owner ), default is Member



Card
labelHTTP Method
 PUT


Card
labelDescription
 Update information about a specified user in a team.user's membership in the team by changing his status


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
        "user": {
            "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c7"
        },
    "role": "Admin"
    "member_status": "Active"
    }



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK



Anchor
deleteUserFromTeam
deleteUserFromTeam

...

Remove user from the team
Deck of Cards
idbimDeleteUserFromTeam


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/members/<user_id> 

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

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


Card
labelHTTP Method
 DELETE


Card
labelDescription
Deletes a specified user from a team. 


Card
labelRequest


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



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK



...