Update User Status
Suspend or activate a user.
Quick Navigation
Endpoint
PUT /api/v1/users/{user_id}/status
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Content-Type | Yes | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | integer | Yes | User 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.