Prerequisite: Only contract administrators, owners, and users with accessAndManageCdn privilege can create and manage CDN distributions via the API. You can also set user privileges in the DCD. For more information, see Set User Privileges.
To update an existing CDN distribution, perform a PUT request with the distributionID of the CDN. The CDN distribution for a given distributionID is updated with the provided distribution details.
Note: If a CDN distribution for a given distributionID does not exist, a distribution is created instead.
Endpoint
Use the following endpoint to create or update a CDN distribution: https://cdn.de-fra.ionos.com/distributions/{distributionId}.
Request
Note: The following request contains a sample distributionId. Replace them with the distributionId value whose information you want to update.