Update User Status
Updates the status of a specific user by their ID.
Request
PUT /v2/users/users/{id}/status
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id | string | path | Required. The ID of the user to update |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Content-Type | Required. Must be application/json |
User-Agent | Optional. Client application identifier |
Request Body
| Field | Type | Description |
|---|---|---|
status | integer | Required. User status (0 = Active, 1 = Inactive) |
User Status Values
| Value | Description |
|---|---|
| 0 | Active - User is active |
| 1 | Inactive - User is inactive |
Example
curl --request PUT \
--url '{{baseUrl}}/v2/users/users/680c02896d91ca0145cfeb81/status' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"status": 0
}'
Response
A successful response returns no content:
Status Code: 204 No Content
Response Body: No content
Status Codes
| Status Code | Description |
|---|---|
| 204 | Success - User status updated successfully |
| 400 | Bad Request - Invalid request parameters or body |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - User ID does not exist |
| 500 | Internal Server Error |