---
title: "Revoke Let's Encrypt certificate"
method: PATCH
path: "/cdn/resources/{res_id}"
tags: ["Let's Encrypt certificates"]
---

# Revoke Let's Encrypt certificate

`PATCH /cdn/resources/{res_id}`

Revoke Let's Encrypt certificate for the CDN resource.

A revoked certificate can be reused for a this or another CDN resource.

## Path parameters

- `res_id` integer, required

## Request body

- RevokeLECert
  - `sslData` integer, nullable, required — ID of Let's Encrypt certificate linked to the CDN resource. It must be **null** to revoke Let's Encrypt certificate.
  - `sslEnabled` boolean, required — Defines whether the HTTPS protocol is enabled for CDN resource. Possible values: - **true** — HTTPS is enabled for the CDN resource. SSL certificate can be linked. - **false** — HTTPS is disabled for the CDN resource. SSL certificate cannot be linked. It must be **false** to revoke the Let's Encrypt certificate.

## Response `200`

Successful.

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/versions/09e652815095/schema)
