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.
activitydateLast activity date.
cloudIdstringDevice cloud ID.
emailstringUser email address.
firststringFirst name.
idstringUser ID.
laststringSurname.
rolestringAuthorized role.

Find

Find users by ID or email.

Endpoint

HTTP
POST /user/find

Authorized User Role

user

Request Body

FieldTypeRoleNotes
emailstringadminEmail address.
idstringadminUser ID.

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

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

Get

Get a user by ID or email.

Endpoint

HTTP
POST /user/get

Authorized User Role

user

Request Body

FieldTypeRoleNotes
emailstringadminEmail address.
idstringadminUser ID.

Response

User Record.

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

Login

Login the authenticated user.

Login the authenticated user. It is expected that the user has already been authenticated by logging into the Cognito service using the details provided by the Builder Cloud/Edit panel under the "API access" section.

Endpoint

HTTP
POST /user/login

Authorized User Role

public

Request Body

FieldTypeNotes
invitestringInvitation ID.
registerbooleanRegister the user.

Response

Account and user records with useful cached data.

FieldTypeNotes
accountobjectThe account record for the authenticated user.
managerobjectThe manager (app) record for the authenticated user.
schemaobjectDevice Schema.
userobjectThe user record for the authenticated user.

Account

The account record for the authenticated user.

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

Manager

The manager (app) record for the authenticated user.

FieldTypeNotes
accountIdstringOwning account ID.
certArnstringCertificate ARN.
cloudFrontstringCloudFront distribution ID.
cloudIdstringDevice cloud ID.
custombooleanCustom domain.
distributionIdstringCloudFront distribution ID.
domainstringManager domain.
errorstringError message.
idstringManager ID.
namestringManager name.
ownerstringOwner account ID.
priorDomainstringPrior domain.
provisioneddateWhen the manager was provisioned.
regionstringRegion.
titlestringManager title.
typestringManager type.
versionstringApp version.

User

The user record for the authenticated user.

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

Remove

Remove a user.

Endpoint

HTTP
POST /user/remove

Authorized User Role

admin

Request Body

FieldTypeNotes
emailstringEmail address.
idstringUser ID.

Update

Update a user identity.

Endpoint

HTTP
POST /user/update

Authorized User Role

user

Request Body

FieldTypeNotes
emailstringUser email address.
firststringUser first name.
idstringUser ID.
laststringUser last name.
preferencesobjectUser preferences.

Response

User Record.

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

UpdateRole

Update a user role.

Endpoint

HTTP
POST /user/updateRole

Authorized User Role

admin

Request Body

FieldTypeRoleNotes
idstringUser ID.
rolestringadminUser role.
sendInvitebooleanSend an email invitation.

Response

User Record.

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