Update User Status
Set a user’s status to active or inactive. Inactive users cannot access the platform.
Endpoint
PATCH /api/v1/partner/users/:user_id/statusPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | UUID | Yes | The user’s unique identifier |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Must be active or inactive |
Response
Success 200 OK
{
"success": true,
"message": "User status updated successfully",
"data": {
"user_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "active",
"updated_at": "2026-02-15T10:45:22.123Z"
}
}Errors
| Status | Error | Description |
|---|---|---|
400 | Invalid user ID | user_id is not a valid UUID |
400 | Invalid status | Must be active or inactive |
401 | Unauthorized | Invalid or missing API key |
404 | User not found | User doesn’t exist under your account |
Try It
PATCH
/api/v1/partner/users/{user_id}/statusUpdate user status{user_id}