Presets

Apply the preset to an object (CDN resource or rule, according to the preset object_type).

The preset settings are applied to the object, and the options included in the preset can no longer be edited on the object until the preset is unapplied.

post/cdn/presets/{preset_id}/applied

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/presets/{preset_id}/applied
  • Auth
    HTTP apikey

Path parameters

preset_idinteger required

Preset ID.

Request body

object_idinteger required

ID of the object (CDN resource or rule, according to the preset object_type) to apply the preset to.

Example request

{
  "object_id": 7531
}

Response

Successful.

preset_idinteger required

ID of the preset that is applied to the object. Matches the preset_id path parameter.

object_idinteger required

ID of the object (CDN resource or rule, according to the preset object_type) the preset is applied to.

messagestring

Deprecated. Use preset_id and object_id instead. This field is kept for backward compatibility and will be removed in a future version.

Example response

{
  "preset_id": 42,
  "object_id": 7531,
  "message": "Preset successfully applied"
}

Changes