Skip to main content

Set user status

PATCH 

/v1/admin/user/:user_id

Set user status

The patch_user_status endpoint allows an admin to update the status of a user within the system. It accepts a JSON payload specifying the new status (active or inactive) and requires the target user's ID as a URL parameter. This operation checks if the requesting user has admin privileges, verifies the existence of the target user, and ensures the requested status change is valid. Upon successful execution, it logs the activity and returns a confirmation message.

Request

Path Parameters

    target_user_id stringrequired

    User id

    user_id uuidrequired

Body

required
    user_status stringrequired

Responses

User status changed

Schema

    string

Loading...