Deactivate a user (soft delete via is_active flag) (superadmin only).
The user will not be able to log in, but their data is preserved. You cannot deactivate yourself.
curl --request DELETE \
--url https://api.example.com/api/v1/users/{user_id}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Successful Response
curl --request DELETE \
--url https://api.example.com/api/v1/users/{user_id}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}