User

Assign a healthcare party ID to current user

PUT https://demo.icure.cloud/rest/v2/user/current/hcparty/{healthcarePartyId}

UserDto gets returned.

Path Parameters

NameTypeDescription

healthcarePartyId*

String

GET https://demo.icure.cloud/rest/v2/user/checkPassword

Headers

NameTypeDescription

password*

String

Check token validity

GET https://demo.icure.cloud/rest/v2/user/token/{userId}

Path Parameters

NameTypeDescription

userId*

String

Headers

NameTypeDescription

token*

String

Create a user

POST https://demo.icure.cloud/rest/v2/user

Create a user. HealthcareParty ID should be set. Email or Login have to be set. If login hasn't been set, Email will be used for Login instead.

Request Body

NameTypeDescription

body*

User

Create a user

POST https://demo.icure.cloud/rest/v2/user/inGroup/{groupId}

Create a user. HealthcareParty ID should be set. Email has to be set and the Login has to be null. On server-side, Email will be used for Login.

Path Parameters

NameTypeDescription

groupId*

String

Request Body

NameTypeDescription

body*

User

Delete a User based on his/her ID.

DELETE https://demo.icure.cloud/rest/v2/user/{userId}

Delete a User based on his/her ID. The return value is an array containing the ID of deleted user.

Path Parameters

NameTypeDescription

userId*

String

Delete a User based on his/her ID.

DELETE https://demo.icure.cloud/rest/v2/user/inGroup/{groupId}/{userId}

Delete a User based on his/her ID. The return value is an array containing the ID of deleted user.

Path Parameters

NameTypeDescription

groupId*

String

userId*

String

GET https://demo.icure.cloud/rest/v2/user/encodePassword

Headers

NameTypeDescription

password*

String

Get the list of users by healthcare party id

GET https://demo.icure.cloud/rest/v2/user/byHealthcarePartyId/{id}

Path Parameters

NameTypeDescription

id*

String

Send a forgotten email message to an user

POST https://demo.icure.cloud/rest/v2/user/forgottenPassword/{email}

Path Parameters

NameTypeDescription

email*

String

the email of the user

Request Body

NameTypeDescription

body*

EmailTemplate

Get Currently logged-in user session.

GET https://demo.icure.cloud/rest/v2/user/session

Get current user.

Get presently logged-in user.

GET https://demo.icure.cloud/rest/v2/user/current

Get current user.

Get presently logged-in user.

GET https://demo.icure.cloud/rest/v2/user/matches

Get current user.

Require a new temporary token for authentication

POST https://demo.icure.cloud/rest/v2/user/token/{userId}/{key}

Path Parameters

NameTypeDescription

userId*

String

key*

String

The token key. Only one instance of a token with a defined key can exist at the same time

Query Parameters

NameTypeDescription

tokenValidity

Long

The token validity in seconds

Get a user by his ID

GET https://demo.icure.cloud/rest/v2/user/{userId}

General information about the user

Path Parameters

NameTypeDescription

userId*

String

Get a user by his Email/Login

GET https://demo.icure.cloud/rest/v2/user/byEmail/{email}

General information about the user

Path Parameters

NameTypeDescription

email*

String

List users with(out) pagination

GET https://demo.icure.cloud/rest/v2/user

Returns a list of users.

Query Parameters

NameTypeDescription

startKey

String

An user email

startDocumentId

String

An user document ID

limit

Integer

Number of rows

List users with(out) pagination

GET https://demo.icure.cloud/rest/v2/user/inGroup/{groupId}

Returns a list of users.

Path Parameters

NameTypeDescription

groupId*

String

Query Parameters

NameTypeDescription

startKey

String

An user login

startDocumentId

String

An user document ID

limit

Integer

Number of rows

Modify a User property

PUT https://demo.icure.cloud/rest/v2/user/{userId}/properties

Modify a User properties based on his/her ID. The return value is the modified user.

Path Parameters

NameTypeDescription

userId*

String

Request Body

NameTypeDescription

body

List

Modify a user.

PUT https://demo.icure.cloud/rest/v2/user

No particular return value. It's just a message.

Request Body

NameTypeDescription

body*

User

Modify a user.

PUT https://demo.icure.cloud/rest/v2/user/inGroup/{groupId}

No particular return value. It's just a message.

Path Parameters

NameTypeDescription

groupId*

String

Request Body

NameTypeDescription

body*

User

Last updated