Skip to main content
PUT
Update the status of a user
The first time KODE activates a user, it sends an account email to the user’s address, with a link to set a password. Check that the user is the right one before you send the request.
Send the status the user does not have yet. A request for the status the user already has fails with 400 and the message “Invalid status update”. Read the user with Get a user to check active first.
The response is the updated user. A deactivated user stays in your organization. To delete the user, use Delete a user.

Authorizations

Authorization
string
header
required

Paste an access token from Create an access token. Tokens expire, so request a new one if you receive 401.

Path Parameters

userId
string
required

Identifier of the user to update.

Body

application/json
active
boolean
required

true to activate the user, false to deactivate the user.

Response

The updated user.

_id
string
organizationId
string
createdAt
string
read-only

Date and time in UTC, with a numeric offset and no colon, for example 2026-10-28T13:51:31+0000.

Example:

"2026-10-28T13:51:31+0000"

updatedAt
string
read-only

Date and time in UTC, with a numeric offset and no colon, for example 2026-10-28T13:51:31+0000.

Example:

"2026-10-28T13:51:31+0000"

firstName
string
lastName
string
email
string
phone
string
position
string
role
string
memberType
string
active
boolean
invitationStatus
string
assignedInApps
object[]