Versions Compared

Key

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

User Management Service


User Management Service


Anchor
createUser
createUser

Please remember that creating/updating/deleting an user is possible only for the clients who has the permission to do it.

Create a new user
Deck of Cards
idbimCreateUser


Card
defaulttrue
labelURL / Resource / JSON Structure
 Resource: users 

URLhttps://api-stage.bimplus.net/v2/users

Examplehttps://api-stage.bimplus.net/v2/users

JSON Structure:

Name

Mandatory / Optional

Type

Description

email

mandatory

string

Email of the user

status

optional

will be ignored

The status of the account (Active / Disabled)

password

mandatory

string

Password of the user

firstnameoptionalstringFirst name of the user
lastnameoptionalstringLast name of the user
companyoptionalstringCompany of the user
displaynameoptionalstringDisplay name of the user
infooptionalstringInformation of the user
genderoptionalstringGender of the user (values MR, MS)
phoneWorkoptionalstringOffice phone number of the user
phoneHomeoptionalstringHome phone number of the user
faxoptionalstringFax number of the user
mobileoptionalstringMobile number of the user
birthDateoptionalstringBirth date of the user
addressoptionalobjectAddress of the user
streetoptionalstringStreet name of the user
streetNroptionalstringStreet number of the user
zipoptionalstringZip code
cityoptionalstringCity name of the user
preferedLanguageoptionalstringPreferred language of the user (will be set in the portal

"en", "de", "fr", "ru", "it", "es", "cs", "tr", "us", "ro"

)
teamswill be ignoredarrayTeam list of the user
teamwill be ignoredobjectInformation about an user's team (See the team service)
photowill be ignoredstringDownload link for user's photo



Card
labelHTTP Method
 POST


Card
labelDescription
 Creates a new user account. Please remember that this service can be used only by the shop/portal (secured using the application_id of portal)


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
 "email" : "test@bimplus.net",
 "password" : "test"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
{
    "teams": [],
    "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c6",
    "email": "test@bimplus.net",
    "status": "Active",
    "firstname": "",
    "lastname": "",
    "company": "",
    "displayname": "",
    "info": "",
    "gender": "",
    "phoneWork": "",
    "phoneHome": "",
    "fax": "",
    "mobile": "",
    "birthDate": "",
    "address": {
        "street": "",
        "streetNr": "",
        "zip": "",
        "city": "",
        "country": ""
    },
    "preferedLanguage": ""
}



Anchor
getUserInfo
getUserInfo

Get information about the user
Deck of Cards
idbimGetUserInfo


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: users/<user_id> 

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

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


Card
labelHTTP Method
 GET


Card
labelDescription
 Get information about a specified user.


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
{
  "teams": [
    {
      "team": {
        "slug": "bimplus-demo",
        "name": "bimplus-demo",
        "displayname": "bimplus-demo",
        "owner": "e0837206-4bff-65d4-b79f-f3878c3567fd",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": false,
        "rights": null,
        "id": "ba790aa0-8631-410b-842f-1ee53349e0ae"
      }
    },
    {
      "team": {
        "slug": "test-company",
        "name": "Test Company",
        "displayname": "Test Company",
        "owner": "3d676814-cf37-aa43-ed03-4b156c282fa1",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": true,
        "rights": null,
        "id": "870ce403-9d5c-4e58-8684-9eb3e2fc8daf"
      }
    }    
  ],
  "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": "",
  "gender": "MR",
  "phoneWork": "",
  "phoneHome": "",
  "fax": "",
  "mobile": "",
  "birthDate": "",
  "address": {
    "street": "",
    "streetNr": "",
    "zip": "",
    "city": "",
    "country": ""
  },
  "preferedLanguage": "en"
}



Anchor
updateUser
updateUser

Update information about the user
Deck of Cards
idbimUpdateUserInfo


Card
defaulttrue
labelURL / Resource / JSON Structure
 Resource: users/<user_id> 

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

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

JSON Structure:

Name

Mandatory / Optional

Type

Description

email

optional

string

Email of the user

status

optional

string

The status of the account (Active / Disabled)

password

optional

string

Password of the user

firstnameoptionalstringFirst name of the user
lastnameoptionalstringLast name of the user
companyoptionalstringCompany of the user
displaynameoptionalstringDisplay name of the user
infooptionalstringInformation of the user
genderoptionalstringGender of the user
phoneWorkoptionalstringOffice phone number of the user
phoneHomeoptionalstringHome phone number of the user
faxoptionalstringFax number of the user
mobileoptionalstringMobile number of the user
birthDateoptionalstringBirth date of the user
addressoptionalobjectAddress of the user
streetoptionalstringStreet name of the user
streetNroptionalstringStreet number of the user
zipoptionalstringZip code
cityoptionalstringCity name of the user
countryoptionalstringCountry name of the user
preferredLanguageoptionalstringPreferred language of the user (will be set in the portal)
teamswill be ignoredarrayTeam list of the user
teamwill be ignoredobjectInformation about an user's team (See the team service)



Card
labelHTTP Method
 PUT


Card
labelDescription
 Update information about a specified user. Please remember that this service can be used only by the shop/portal (secured using the application_id of portal)


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
    "email": "updated_test@bimplus.net",
    "status": "Active",
    "password": "test"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
titleJSON
{
  "teams": [
    {
      "team": {
        "slug": "bimplus-demo",
        "name": "bimplus-demo",
        "displayname": "bimplus-demo",
        "owner": "e0837206-4bff-65d4-b79f-f3878c3567fd",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": false,
        "rights": null,
        "id": "ba790aa0-8631-410b-842f-1ee53349e0ae"
      }
    },
    {
      "team": {
        "slug": "test-company",
        "name": "Test Company",
        "displayname": "Test Company",
        "owner": "3d676814-cf37-aa43-ed03-4b156c282fa1",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": true,
        "rights": null,
        "id": "870ce403-9d5c-4e58-8684-9eb3e2fc8daf"
      }
    }    
  ],
  "id": "3d676814-cf37-aa43-ed03-4b156c282fa1",
  "email": "updated_test@bimplus.net",
  "status": "Active",
  "firstname": "Test",
  "lastname": "User",
  "company": "Allplan",
  "fullname": "Test User",
  "displayname": "Test User [Allplan]",
  "info": "",
  "gender": "MR",
  "phoneWork": "",
  "phoneHome": "",
  "fax": "",
  "mobile": "123",
  "birthDate": "0000-00-00",
  "address": {
    "street": "jarosova ",
    "streetNr": "1",
    "zip": "83102",
    "city": "Bratislava",
    "country": "8f241f1109647a265.29938154"
  },
  "preferedLanguage": "en"
}



Anchor
deleteUser
deleteUser
Delete the user
Deck of Cards
idbimDeleteUser


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: users

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

Examplehttps://api-stage.bimplus.net/v2/users/08b8195a-a2ad-11e2-9993-002215ea7d6b


Card
labelHTTP Method
 DELETE


Card
labelDescription
 Delete a specified user. Please remember that this service can be used only by the shop/portal (secured using the application_id of portal)


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
getCurrentUserInfo
getCurrentUserInfo

Get information about the currently logged in user
Deck of Cards
idbimGetCurrentUserInfo


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: user 

URLhttps://api-stage.bimplus.net/v2/user


Card
labelHTTP Method
 GET


Card
labelDescription
 Get information about the currently logged in user.


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
{
  "teams": [
    {
      "team": {
        "slug": "bimplus-demo",
        "name": "bimplus-demo",
        "displayname": "bimplus-demo",
        "owner": "e0837206-4bff-65d4-b79f-f3878c3567fd",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": false,
        "rights": null,
        "id": "ba790aa0-8631-410b-842f-1ee53349e0ae"
      }
    },
    {
      "team": {
        "slug": "test-company",
        "name": "Test Company",
        "displayname": "Test Company",
        "owner": "3d676814-cf37-aa43-ed03-4b156c282fa1",
        "status": "Active",
        "teamWorksConnection": null,
        "dataStorageStatus": null,
        "ismyteam": true,
        "rights": null,
        "id": "870ce403-9d5c-4e58-8684-9eb3e2fc8daf"
      }
    }    
  ],
  "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": "",
  "gender": "MR",
  "phoneWork": "",
  "phoneHome": "",
  "fax": "",
  "mobile": "123",
  "birthDate": "0000-00-00",
  "address": {
    "street": "jarosova ",
    "streetNr": "1",
    "zip": "83102",
    "city": "Bratislava",
    "country": "8f241f1109647a265.29938154"
  },
  "preferedLanguage": "en"
}



Anchor
updateCurrentUser
updateCurrentUser

Deck of Cards
idbimUpdateCurrentUser


Card
labelURL / Resource / JSON Structure

Resource: user

URLhttps://api-stage.bimplus.net/v2/user

Examplehttps://api-stage.bimplus.net/v2/user


Card
labelHTTP Method

PUT


Card
labelDescription

Update information about the currently logged in user.


Card
labelRequest / Response

Identical with Update User call


Anchor
uploadUserPhoto
uploadUserPhoto

Upload a photo of the user
Deck of Cards
idbimUploadUserPhoto


Card
defaulttrue
labelURL / Resource / JSON Structure
 Resource: user/photo 

URLhttps://api-stage.bimplus.net/v2/user/photo

Examplehttps://api-stage.bimplus.net/v2/user/photo


Card
labelHTTP Method
 POST


Card
labelDescription
 Upload a photo of the user. The token can also be passed as the query string if the client cannot use the token in the header request.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: multipart/form-data



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
borderColorRed
langxml
titleJSON
{
    "photo": "/attachments/dfd38a17-4d55-4f1b-a2af-f2304b79e9e8/download",
    "id": "71e0ac3b-fa49-e540-ac2f-8caff3dd72ed",
    "email": "jayaraj.purushothaman@gmail.com"
}



Anchor
downloadUserPhoto
downloadUserPhoto

Download the photo of the user
Deck of Cards
idbimDownloadUserPhoto


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: user/photo

URLhttps://api-stage.bimplus.net/v2/user/photo OR https://api-stage.bimplus.net/v2/user/photo?api-token=token (If the client cannot use the token in the header request)

Examplehttps://api-stage.bimplus.net/v2/user/photo OR https://api-stage.bimplus.net/v2/user/photo?api-token=9c1874a62c974dcfa75e0132c423a088

The photo could also be downloaded by using the the property of "photo"(which is a url) in the v2/user json response.


Card
labelHTTP Method
 GET


Card
labelDescription
 Download the photo of the user. The token can be also provided as the query string for downloading the attachment( If the client cannot use the token in the header request)


Card
labelRequest


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



Card
labelResponse

Response content type is application/octet-stream

Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK



Anchor
forgotPassword
forgotPassword

Forgot Password or Resend Invitation
Deck of Cards
idbimForgotPassword


Card
defaulttrue
labelURL / Resource / JSON Structure
 Resource: auth-forgot 

URLhttps://api-stage.bimplus.net/v2/auth-forgot

Examplehttps://api-stage.bimplus.net/v2/auth-forgot

JSON Structure:

Name

Mandatory / Optional

Type

Description

user_id

mandatory

string(guid)

Recipient user_id (i.e the user who has triggered the forgot password action or the user who will be re-invited to join the team)

creator_user_id

optional

string(guid)

This will be used only for the re-send invitation case to identify the user who has sent the invitation.



Card
labelHTTP Method
 POST


Card
labelDescription
This API is used for two purposes. It can be used if the user has forgot the password(in this case, the creator_user_id parameter will be ignored) This API is also used for re-inviting an user to join his team/project where "creator_user_id" is the id of the user who sent the invitation. In both the cases, the recipient will get an email with the link(eg: <url>#/forgot_password?email=<email>&cross_token=xxx) which will take the user to "Forgot Password" page or to the "User Activation/Registration"(eg: <url>#/accept_invitation?email=<email>&cross_token=xxx) page. The validity of the cross-token is different on each case. For forgot password, the token is 1 day valid & for the invitation it is 1 week valid.


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
    "user_id": "user@bimplus.net",
    "creator_user_id": "31cb1181-2cbc-49dc-883a-0620e20140a4"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
{
    "user_id": "user@bimplus.net",
    "creator_user_id": "31cb1181-2cbc-49dc-883a-0620e20140a4"
}



Anchor
changePassword
changePassword

Change Password
Deck of Cards
idbimChangePassword


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: change_password 

URLhttps://api-stage.bimplus.net/v2/change_password

Examplehttps://api-stage.bimplus.net/v2/change_password

JSON Structure:

Name

Mandatory / Optional

Type

Description

old

mandatory

string

Old password

new

mandatory

string

New password



Card
labelHTTP Method
 PUT


Card
labelDescription
This API is used for changing the password.


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
"old": "old_pwd",
"new": "new_pwd"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
borderColorRed
langxml
titleJSON
{
    "user_id": "user@bimplus.net",
    "creator_user_id": "31cb1181-2cbc-49dc-883a-0620e20140a4"
}