PUT /v2/cdn/endpoints/{cdn_id}
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/$ENDPOINT_ID
.
Servers
- https://api.digitalocean.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
cdn_id |
String | Yes |
A unique identifier for a CDN endpoint. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
ttl |
Integer | No |
The 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. Possible values:
Default value: 3600 |
custom_domain |
String | No |
The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint. |
certificate_id |
String | No |
The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.