# Disable

To disable a control panel access user.

# HTTP Request:

DELETE https://api.serveravatar.com/organizations/{organization}/servers/{server}/hosting-user/{hosting_user}

# Curl Request Example:

curl --request DELETE \
  --url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/hosting-user/{hosting_user}" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Disable:

  • 200 (Ok)
{
  "message": "Control panel user removed from the server."
}

# Organization Not Found

  • 404 (Not Found)
{
  "message": "Organization not found!"
}

# Server Not Found

  • 404 (Not Found)
{
  "message": "Server not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
  "message": "Something went really wrong!"
}
Last Updated: 6/11/2024, 1:26:55 PM