Image Optimization & WebP

Image Optimization

put

Enable or disable image optimization for a resource. This setting is available in small and dynamic(aksela) resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
resource_uuidstringRequired

UUID of the resource

image_optimizationbooleanRequired

Enable or disable image optimization for the resource.

Responses
200

Successfully updated the image optimization setting for the resource.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Successfully updated the image optimization setting for the resource.

WebP Optimization

put

This setting is available in small and dynamic(aksela) resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
webpbooleanRequired

Enable or disable WebP optimization for the resource.

Example: true
resource_uuidstringRequired

UUID of the resource.

Example: ****-****-****-****
Responses
200

Successfully updated WebP optimization settings for the resource.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Successfully updated WebP optimization settings for the resource.

Gzip Image Compression

put

This setting is available in small, large, dynamic(aksela) and streaming resource types.

Path parameters
organization_uuidstringRequiredExample: ****-****-****-****
resource_uuidstringRequiredExample: ****-****-****-****
Body
gzip_imagebooleanOptionalExample: true
resource_uuidstringOptionalExample: ****-****-****-****
Responses
200

Successful update of Gzip image compression setting

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Brotli compression

put

This setting is available in small, large and dynamic(aksela) resource types.

Path parameters
organization_uuidstringRequiredExample: ****-****-****-****
resource_uuidstringRequiredExample: ****-****-****-****
Body
brotlibooleanOptionalExample: true
resource_uuidstringOptionalExample: ****-****-****-****
Responses
200

Successful update of Brotli compression setting

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Successful update of Brotli compression setting

Gzip Text Compression

put

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.

Path parameters
organization_uuidstringRequired

The UUID of the organization.

resource_uuidstringRequired

The UUID of the resource.

Body
or
Responses
200

Successful response

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Successful response

Last updated

Was this helpful?