User
#UserController
Overview
Description
Path /v2/users
Handles all requests regarding users: creating, updating, deleting.
User JSON object
An example for a user json object.
fields
username
salutationCode
firstname
lastname
isoCountryCode
email
street
zipcode
city
birthdate :
phone
local
providedConsentInTenant
registerDate
active
rolesInTenants (users role in tenants)
moduleRightInTenants (users module rights, encapsulating the view rights and modification rights)
newsletter
termsChanged
tenants
roles (deprecated)
catalogs
plans
favorites
priceLists
allowedModulesInTenant (deprecated)
flags
catalogs
API Reference
POST /
Accepts: multipart-formdata
Generates: json
Registering user.
Response: 201 Created
DELETE /{id}
Accepts: multipart-formdata
Generates: json
Deactivate user. (you can only deactivate yourself, not others).
Response: 204 No Content
GET /removeConsent/
removes consent for the user with the given email at the given tenant. throws no error if there is no user with this email, tenant or the user didn't provide consent before
query-param:
email: emailaddress of the user to remove consent
tenant: id of the tenant to remove the consent
Response: 204 No Content
POST /{userId}/validateMail/
@PathParam("userId") String userId, @QueryParam("mailHash") String mailHash, @QueryParam("consentOn") Long consentForTenant, @QueryParam("f") String forward, @QueryParam("fid") String forwardId, @QueryParam("ft") String forwardType
QueryParam "f"
Possible values:
"c": configuration
"a": asset
QueryParam "fid"
it contains the id of the configuration
QueryParam "ft"
it additionally specifies the type of forward. Possible values:
default - configuration share
"ar" - AR share The configurator id is extracted from the context
POST /{id}/termsAccepted
@PathParam("userId") String userId,
Response: 202 Accepted
Sets the termsChanged flag in the RoomleUser to false, meaning the user accepted the changed terms
Last updated