dots.v2.cdn.endpoints.byCdn_id().put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.cdn.endpoints.byCdn_id(cdn_id).put(body: Update_endpoint, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithCdn_PutResponse>Description
To update the TTL, certificate ID, or the FQDN of the custom subdomain for
an existing CDN endpoint, send a PUT request to
/v2/cdn/endpoints/{cdn_id}.
Parameters
Path Parameters
cdn_idstring requiredExample:
19f06b6a-3ace-4315-b086-499a0e521b76A unique identifier for a CDN endpoint.
Request Body
ttlinteger optionalThe amount of time the content is cached by the CDN's edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.
certificateIdstring optionalExample:
892071a0-bb95-49bc-8021-3afd67a210bfThe ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.
customDomainstring optionalExample:
static.example.comThe fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.
Request Sample
Response Example
More Information
See /v2/cdn/endpoints/{cdn_id} in the API reference for additional detail on responses, headers, parameters, and more.