User
Last updated
Last updated
#UserController
Path /v2/users
Handles all requests regarding users: creating, updating, deleting.
An example for a user json object.
username
salutationCode
firstname
lastname
isoCountryCode
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
Accepts: multipart-formdata
Generates: json
Registering user.
Response: 201 Created
Accepts: multipart-formdata
Generates: json
Deactivate user. (you can only deactivate yourself, not others).
Response: 204 No Content
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
@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
@PathParam("userId") String userId,
Response: 202 Accepted
Sets the termsChanged flag in the RoomleUser to false, meaning the user accepted the changed terms