# HTTPS Redirect
# Get
Get the detail of cloudflare HTTPS Redirect.
# HTTP Request:
GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-redirect
# Curl request Example:
curl --request GET \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-redirect" \
--header 'Content-Type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# HTTPS Redirect
- 200 (Ok)
{
"response": {
"id": "always_use_https",
"value": "on",
"modified_on": "2022-06-10T06:08:00.692315Z",
"editable": true
}
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Application Not found
- 404 (Not Found)
{
"message": "Application not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message": "Server not found!"
}
# Update
Update the detail of cloudflare HTTPS Redirect.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-redirect/{value :on/off}
# Curl Request Example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-redirect/on" \
--header 'Content-Type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Update HTTPS-Redirect
- 200 (Ok)
{
"response": true,
"message": "HTTPS redirect updated successfully."
}
# Invalid Parameter(value)
- 500 (Internal Server Error)
{
"message": "Invalid request!"
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Application Not found
- 404 (Not Found)
{
"message": "Application not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message": "Server not found!"
}