Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/users/set-user-statusUsersPermission: users.update

Set User Status

Activates (`isActive: true`) or suspends (`isActive: false`) a user account within the active tenant. Suspended users are rejected on subsequent authenticated requests.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
idstring (uuid)required

id parameter.

isActivebooleanrequired

is Active parameter.

Responses

Select a status code to inspect schema.

OK — User active status updated.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/users/set-user-status
curl -X POST "https://api.invoger.com/api/users/set-user-status" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "c7d8e9f0-1234-5678-9abc-def012345678", "isActive": false }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "id": "c7d8e9f0-1234-5678-9abc-def012345678",
    "isActive": false
  }
}