1
2
3
4
UserEnabledEdit(
    string Username,
    bool Enabled
)

Enable or disable users by username

Available since RPM23

Request

Request Data:

  • (string) Username (required) – the user’s username
  • (bool) Enabled (required) – enable or disable the user
1
2
3
4
{
    "Username": <string>,
    "Enabled": <bool>
}

Response

On success, the same data that was sent is returned.

Notes

  • Enabling users will affect costs starting in the current billing cycle.
  • Disabling users will take effect on the next billing cycle.

Errors

  • “User not found” – the provided username does not belong to an user
  • “Permission denied” – if the API user sending the request does not have the correct permission to enable or disable the user (depends on the type of user).