---
title: "Update a TLS certificate"
method: PATCH
path: "/certificates/{id}"
tags: ["Certificates"]
---

# Update a TLS certificate

`PATCH /certificates/{id}`

Update the settings or material of an existing TLS certificate

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalServicesCertificatesCertificateInput
  - `certificate` string
  - `domain` string
  - `dynamicDnsEntryId` integer
  - `name` string
  - `privateKey` string
  - `staging` boolean
  - `type` 'imported' | 'self-signed' | 'lets-encrypt' | 'sylve-managed' | 'system-default'
  - `validateDomain` boolean

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalServicesCertificatesCertificateView
  - `data` GithubComAlchemillahqSylveInternalServicesCertificatesCertificateView
    - `active` boolean
    - `domain` string
    - `dynamicDnsEntryId` integer
    - `fingerprint` string
    - `id` integer
    - `issuanceError` string
    - `issuanceOperation` 'initial' | 'renewal'
    - `issuanceRetryAt` string
    - `issuanceStatus` string
    - `name` string
    - `notAfter` string
    - `notBefore` string
    - `pending` boolean
    - `ready` boolean
    - `renewable` boolean
    - `staging` boolean
    - `type` 'imported' | 'self-signed' | 'lets-encrypt' | 'sylve-managed' | 'system-default'
    - `updatedAt` string
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `500` — Internal Server Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/9822c41c8ac0/schema)
