Skip to main content

PUT

User (Update)

/api/v1/users/update/<int:user_id>/

Endpoint

/api/v1/users/update/<int:user_id>/

Headers

{
    "Content-Type": "application/json",
    "Authorization": "Bearer <str:token>"
}

Body

{
    "username": "<str:username>",
    "email": "<str:email>",
    "is_active": "<bool:is_active>",
    "is_staff": "<bool:is_staff>"
}

Response

{
    "status": "success",
    "message": "User updated successfully"
}