Skip to main content

Update User Status

Suspend or activate a user.

Quick Navigation

Endpoint

PUT /api/v1/users/{user_id}/status

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>
Content-TypeYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
user_idintegerYesUser ID

Request Body

{
"status": "suspended",
"reason": "Violation of terms of service"
}

Response

Success (200)

{
"success": true,
"data": {
"user": {
"id": 123,
"status": "suspended",
"status_updated_at": "2024-01-01T14:00:00Z"
},
"message": "User status updated successfully"
},
"message": "User status updated successfully"
}

Features

  • User status management
  • Session revocation
  • Audit logging

Status

[WARNING] TODO: Not Implemented

This endpoint is defined in the router but the implementation logic is not yet complete.