Skip to main content
POST
Activate or deactivate a user

Authorizations

Authorization
string
header
required

Company API key. The header value must be Api-Key <token>, e.g. Authorization: Api-Key AbCd1234.xxxxxxxx.

Path Parameters

user_id
integer
required

hackU user id, as returned by POST /clients/users/ (user_pk) or GET /clients/users/ (id).

Body

application/json
active
boolean
required
avoid_send_welcome
boolean
default:false

When activating, do not send the WhatsApp welcome message.

Response

Action completed.

result
string
required
Allowed value: "Action completed successfully"