PUT/v2/users/{user-Id}Update user

Update a specific user based on Id
parametergroupAdminMake the user a group admin: Boolean
parameteruserGroupIdUsed together with the group admin parameter: Number
headerAuthorizationAuthentication token (bearer token or API key).
{
"firstName" : String,
"lastName" : String,
"phoneNumber" : Phone number (E.164, e.g. "+31850607337"),
"phoneNumberVerify" : Boolean,
"emailAddress" : String,
"emailAddressVerify" : Boolean,
"superUser" : Boolean,
"clientId" : Number,
"externalId" : String,
"description" : String,
"remarks" : String,
"autoRemoveAfter" : "WEEK" / "MONTH" / "YEAR",
"autoEmailMatch" : Boolean,
"requireEmailMatch" : Boolean,
"authOrganizationId" : String,
"emailMatchCredentialFilter" : Boolean
}

Response

status200All ok, returned ID of updated user
status400Invalid roles
status401Invalid authentication token
status403Insufficient rights
status404User not found
Number

Example: Update a user for specified Id

PUT/v2/users/4

headerAuthorizationBearer fdcd8cc5-d18e-4a65-80a4-291ee55ef77a
{
"firstName": "Caroline"
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
4

Example: Update a user for a personal organization

PUT/v2/users/1

headerAuthorizationBearer 93c8b2ae-301b-47fe-842f-afe9b98b427a
{
"firstName": "Andrew"
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
1

Example: Make a user an group administrator in the specified user group

PUT/v2/users/7

parameteruserGroupId1
parametergroupAdmintrue
headerAuthorizationBearer 318218ff-0308-407b-b847-4a126fa23da7
{}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
7