# Restart Schedule
Set the server restart schedule.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/restart-server
# Parameters:
parameters | Required | Type | Description |
---|---|---|---|
restart_schedule | No | String | Select any one daily , weekly or monthly . |
# Curl Request example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/restart-server" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <YOUR API TOKEN>' \
--data '{
"restart_schedule": "weekly"
}'
# Response:
# Restart Schedule
- 200 (Ok)
{
"message": "Server restart schedule updated successfully!"
}
# 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!"
}