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
200

Origin Settings updated successfully.

application/json
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
200

Advanced Origin Settings updated successfully.

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

Advanced Origin Settings updated successfully.

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
200

Rewrite Origin URL rules updated successfully.

application/json
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
200

Origin SNI Request settings updated successfully.

application/json
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
200

Redirect Handle From Origin settings updated successfully.

application/json
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
200

Origin Response Timeout updated successfully.

application/json
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
200

Gzip compression setting updated successfully for the specified origin.

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

Last updated

Was this helpful?