Skip to content

User

User Management.

Create

Create a new user and optionally send an email invitation to join the service. When the user follows the invitation and registers, their email address wil be confirmed before they are logged into the service.

Endpoint

HTTP
POST /user/create

Authorized User Role

admin

Request Body

FieldTypeRequiredNotes
emailstringyesUser email address.
rolestringyesAuthorized role. Select from "user", "admin" or "owner".
sendInvitebooleanSend an email invitation.

Response

A user record.

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

Get

Endpoint

HTTP
POST /user/get

Authorized User Role

user

Request Body

FieldTypeRole
emailstringadmin
idstringadmin

Response

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

Find

Endpoint

HTTP
POST /user/find

Authorized User Role

user

Request Body

FieldTypeRole
emailstringadmin
idstringadmin

Response

Paged response.

FieldTypeNotes
dataarrayAn array of merics.
nextstringPaged cursor to use for the next page of items.
prevstringPages cursor to use for the previous page of items.

User

An array of User items.

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

Login

Login the authenticated user

Endpoint

HTTP
POST /user/login

Authorized User Role

public

Request Body

FieldType
invitestring
registerboolean

Response

Account and user records with useful cached data.

FieldTypeNotes
accountobject
userobject

Account

FieldTypeNotes
activitydate
closedbooleanSet to true when account closed.
cloudIdstringOwning device cloud ID.
createddateDate account created.
emailstringAccount email.
idstringUnique account ID.
namestringAccount or company name.

User

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

Remove

Endpoint

HTTP
POST /user/remove

Authorized User Role

admin

Request Body

FieldType
emailstring
idstring

Update

Update a user identity

Endpoint

HTTP
POST /user/update

Authorized User Role

user

Request Body

FieldType
emailstring
firststring
idstring
laststring
preferencesobject

Response

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

UpdateRole

Endpoint

HTTP
POST /user/updateRole

Authorized User Role

admin

Request Body

FieldTypeRole
idstring
rolestringadmin
sendInviteboolean

Response

FieldTypeNotes
accountIdstringOwning account ID.
activitydate
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.