Image Optimization & WebP
Enable or disable image optimization for a resource. This setting is available in small and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
UUID of the resource
Enable or disable image optimization for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"resource_uuid": "text",
"image_optimization": true
}
Successfully updated the image optimization setting for the resource.
{
"status": true,
"data": {}
}
This setting is available in small and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
Enable or disable WebP optimization for the resource.
true
UUID of the resource.
****-****-****-****
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"webp": true,
"resource_uuid": "****-****-****-****"
}
Successfully updated WebP optimization settings for the resource.
{
"status": true,
"data": {}
}
This setting is available in small, large, dynamic(aksela) and streaming resource types.
****-****-****-****
****-****-****-****
true
****-****-****-****
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"gzip_image": true,
"resource_uuid": "****-****-****-****",
"gzip_image_types": [
"image/png",
"image/jpeg",
"gif"
]
}
{
"status": true,
"data": {}
}
This setting is available in small, large and dynamic(aksela) resource types.
****-****-****-****
****-****-****-****
true
****-****-****-****
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"brotli": true,
"resource_uuid": "****-****-****-****"
}
Successful update of Brotli compression setting
{
"status": true,
"data": {}
}
Enable or update Gzip compression settings for a specific resource in the CDN. This setting is available in small, large and dynamic(aksela) resource types.
The UUID of the organization.
The UUID of the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"gzip_text": true,
"resource_uuid": "****-****-****-****"
}
Successful response
{
"status": true,
"data": {}
}
Last updated
Was this helpful?