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
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
}
200

Successfully updated the image optimization setting for the resource.

{
  "status": true,
  "data": {}
}

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
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": "****-****-****-****"
}
200

Successfully updated WebP optimization settings for the resource.

{
  "status": true,
  "data": {}
}

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
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": {}
}

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
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": "****-****-****-****"
}
200

Successful update of Brotli compression setting

{
  "status": true,
  "data": {}
}

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
one ofOptional
or
Responses
200
Successful response
application/json
put
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": "****-****-****-****"
}
200

Successful response

{
  "status": true,
  "data": {}
}

Last updated

Was this helpful?