Image Optimization & WebP

Update Image Optimization

put

Enable or disable Image Optimization for the specified resource. This setting is supported for Small and Dynamic (Aksela) resource types.

Note: The resource_uuid value in the request body must match the {resource_uuid} path parameter.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
resource_uuidstringRequired

Resource UUID.

image_optimizationbooleanRequired

Set to true to enable Image Optimization, or false to disable it.

Responses
200

Image Optimization setting updated successfully.

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

Image Optimization setting updated successfully.

Update WebP Optimization

put

Enable or disable WebP Optimization for the specified resource. This setting is supported for Small and Dynamic (Aksela) resource types.

Note: The resource_uuid value in the request body must match the {resource_uuid} path parameter.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
webpbooleanRequired

Set to true to enable WebP Optimization, or false to disable it.

Example: true
resource_uuidstringRequired

Resource UUID.

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

WebP Optimization setting updated successfully.

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

WebP Optimization setting updated successfully.

Update Gzip Image Compression

put

Enable or disable Gzip Image Compression for the specified resource. This setting is supported for Small, Large, Dynamic (Aksela), and Streaming resource types.

Note: The resource_uuid value in the request body must match the {resource_uuid} path parameter.

Path parameters
organization_uuidstringRequired

Organization UUID.

Example: ****-****-****-****
resource_uuidstringRequired

Resource UUID.

Example: ****-****-****-****
Body
gzip_imagebooleanOptional

Set to true to enable Gzip Image Compression, or false to disable it.

Example: true
resource_uuidstringOptional

Resource UUID.

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

Gzip Image Compression setting updated successfully.

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

Update Brotli Compression

put

Enable or disable Brotli Compression for the specified resource. This setting is supported for Small, Large, and Dynamic (Aksela) resource types.

Note: The resource_uuid value in the request body must match the {resource_uuid} path parameter.

Path parameters
organization_uuidstringRequired

Organization UUID.

Example: ****-****-****-****
resource_uuidstringRequired

Resource UUID.

Example: ****-****-****-****
Body
brotlibooleanRequired

Set to true to enable Brotli Compression, or false to disable it.

Example: true
resource_uuidstringRequired

Resource UUID.

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

Brotli Compression setting updated successfully.

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

Brotli Compression setting updated successfully.

Update Gzip Text Compression

put

Enable or disable Gzip Text Compression for the specified resource. This setting is supported for Small, Large, and Dynamic (Aksela) resource types.

Note: The resource_uuid value in the request body must match the {resource_uuid} path parameter.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
or
Responses
200

Gzip Text Compression setting updated successfully.

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

Gzip Text Compression setting updated successfully.

Last updated

Was this helpful?