Origin Settings

Update Origin Settings

put

Add, update, or delete Origin Settings for the specified resource. This setting is supported for Small, Large, and Dynamic (Aksela) resource types.

To delete an origin setting, set is_delete to true and provide the id of the origin setting.

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.

origin_typestring · enumRequired

Origin type for the resource.

Possible values:
Responses
chevron-right
200

Origin Settings updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Origin Settings updated successfully.

Update Advanced Origin Settings

put

Add, update, or delete Advanced Origin Settings for the specified resource. This setting is supported for Small, Large, and Dynamic (Aksela) resource types.

To delete an advanced origin setting, set is_delete to true and provide the id of the advanced origin setting.

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.

Responses
chevron-right
200

Advanced Origin Settings updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Advanced Origin Settings updated successfully.

Update Advanced Origin Settings (Streaming Content Caching)

put

Add, update, or delete Advanced Origin Settings for Streaming Content Caching resources.

Each advanced origin setting must reference an origin group via origin_group_id.

This endpoint is only applicable to Streaming Content Caching resources.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
Responses
chevron-right
200

Advanced Origin Settings updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Create Origin Group

put

Create one or more new origin groups for a Streaming Content Caching resource.

This endpoint is only applicable to Streaming Content Caching resources.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
Responses
chevron-right
200

Origin group created successfully.

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

Delete Origin Group or Origin

put

Delete an entire origin group or remove individual origins from a group.

Groups actively used by advanced origin settings cannot be deleted.

This endpoint is only applicable to Streaming Content Caching resources.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
Responses
chevron-right
200

Origin group or origin deleted successfully.

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

Update Origin Group

put

Update one or more existing origin groups.

Within the origins array, include id to update an existing origin or omit id to add a new one.

This endpoint is only applicable to Streaming Content Caching resources.

Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
Responses
chevron-right
200

Origin group updated successfully.

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

Update Rewrite Origin URL

put

Update Rewrite Origin URL rules for the specified resource.

Rewrite rules allow you to map incoming request paths to different origin paths (for example, redirect a directory or a file to another directory or file on the origin).

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.

Responses
chevron-right
200

Rewrite Origin URL rules updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Update Origin SNI Request

put

Enable or disable Origin SNI Request for the specified resource and set the SNI domain.

When enabled, Medianova sends the specified SNI domain during the TLS handshake to the origin.

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.

origin_sni_request_statusbooleanRequired

Set to true to enable Origin SNI Request, or false to disable it.

origin_sni_request_domainstringRequired

SNI domain name to send to the origin when Origin SNI Request is enabled.

Responses
chevron-right
200

Origin SNI Request settings updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Update Redirect Handle From Origin

put

Enable or disable Redirect Handle From Origin for the specified resource and configure which redirect status codes are handled.

Optionally, you can add custom request headers to forward to the origin during the redirect process and add custom response headers on redirect responses.

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

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
resource_uuidstringRequired

Resource UUID.

status_redirect_handlebooleanRequired

Set to true to enable Redirect Handle From Origin, or false to disable it.

Responses
chevron-right
200

Redirect Handle From Origin settings updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Update Origin Response Timeout

put

Sets the maximum time (in seconds) that the CDN will wait for a response from the origin.

Valid range: 5–300 seconds.

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

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

Organization UUID.

resource_uuidstringRequired

Resource UUID.

Body
resource_uuidstringRequired

Resource UUID.

origin_response_timeoutinteger · min: 5 · max: 300Required

Maximum time in seconds to wait for the origin response.

Responses
chevron-right
200

Origin Response Timeout updated successfully.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Enable Gzip From Origin

put

Updates the gzip compression configuration for content served directly from the origin server. When enabled, resources are compressed before transmission to reduce bandwidth and improve performance.

Path parameters
organization_uuidstringRequired

The UUID of the organization.

resource_uuidstringRequired

The UUID of the resource to update.

Body
origin_gzip_enabledbooleanRequired

Specifies whether gzip compression from the origin is enabled.

Responses
chevron-right
200

Gzip compression setting updated successfully for the specified origin.

application/json
statusbooleanOptional

Indicates whether the operation was successful.

Example: true
dataobjectOptional

Details of the updated resource configuration.

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

Last updated

Was this helpful?