Deactivate User

Deactivate a platform user account.

POST
/api/v1/users/{id}/deactivate

Description

Sets is_blocked on a registered user. The default company user cannot be deactivated.

Request

Headers

HeaderValueRequired
AuthorizationBearer <access_token>Yes
Content-Typeapplication/jsonYes

Path Parameters

ParameterTypeRequiredDescription
idstringYesPass the full value from the API response in path parameters.

Response

FieldTypeDescription
successbooleanWhether the request succeeded.
messagestringHuman-readable confirmation.
statusnumber0 when deactivated.
is_blockednumber1 when the account is blocked.
account_statusstringInactive after deactivation.
userobjectUpdated user record.
user.idstring | nullUser ID when the invitee has a registered account; null for pending invites.
user.emailstringUser or invitee email address.
user.namestring | nullDisplay name when known.
user.countrystringCountry code.
user.rolenumberCorporate role: 1=Department head, 2=Manager, 3=Requester.
user.role_namestringHuman-readable role label.
user.account_statusstringActive, Inactive, or Pending.
user.is_blockednumber1 when the account is blocked/deactivated; 0 otherwise.
user.is_default_userbooleanTrue for the company's default Unduit admin user.
user.statusnumber0 when deactivated.

Related Endpoints

Did this page help you?