POST v2/api/users/{id}/enabled
Sets the activity of the specified Interactive User. Disabling a user also deactivates all associated API Credentials. Re-enabling a user sets them back to their exact previous active state - i.e. password and API Credentials are exactly as they were. This API call can only be made by the Administrator who created the target user.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | The identifier. |
Define this parameter in the request URI. |
newStateInput | The new activity state. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
{ "Enabled": "sample string 1" }
Response Information
The newly updated Interactive User with their API Credentials is returned. This endpoint can only be called by the Administrator who created the target user, otherwise a 403:Forbidden is returned. The user's state must be a valid state, otherwise a 400:BadRequest is returned.
Response body formats
application/json, text/json
{ "Id": "75374b00-dcf9-45a0-ae90-16d841c63a5e", "Name": "sample string 2", "Username": "sample string 3", "Role": "sample string 4", "Credentials": [ { "Id": "0117be8f-ad45-4720-8f9e-e2f0595dedd7", "Enabled": true, "Created": "2024-11-21T10:07:36.5696054+00:00" }, { "Id": "0117be8f-ad45-4720-8f9e-e2f0595dedd7", "Enabled": true, "Created": "2024-11-21T10:07:36.5696054+00:00" }, { "Id": "0117be8f-ad45-4720-8f9e-e2f0595dedd7", "Enabled": true, "Created": "2024-11-21T10:07:36.5696054+00:00" } ], "Enabled": true, "Created": "2024-11-21T10:07:36.5696054+00:00" }