# HTTPS Rewrite
# Get
Get the detail of cloudflare HTTPS-Rewrite.
# HTTP Request:
GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-rewrite
# Curl request Example:
curl --request GET \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-rewrite" \
--header 'Content-Type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# HTTPS Rewrite
- 200 (Ok)
{
"response": {
"id": "automatic_https_rewrites",
"value": "on",
"modified_on": "2022-06-10T06:08:55.717413Z",
"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 Rewrite.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-rewrite/{value :on/off}
# Curl Request Example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/dns-manager/ssl/https-rewrite/on" \
--header 'Content-Type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Update HTTPS Rewrite
- 200 (Ok)
{
"response": true,
"message": "HTTPS rewrites 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!"
}