> Markdown version of https://tuna.am/en/docs/api/tls-certificate-edit/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Update a TLS certificate

post`/v1/team/tls_certificates/{id}`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Path Parameters

* **id** integer\<int64>required

### Request body

application/json

* **description**string

  Description

  **Example:&#x20;**`Wildcard for *.tuna.am`

### Response

204application/json

* **certificate_pem**string

  Certificate

  **Example:&#x20;**`-----BEGIN CERTIFICATE-----`

  **created_at**string\<date-time>

  Date added

  **description**string

  Description

  **Example:&#x20;**`Wildcard for *.tuna.am`

  **id**integer\<int64>

  Certificate ID

  **Example:&#x20;**`42`

  **issuer_common_name**string

  Certificate issuer

  **Example:&#x20;**`R10`

  **linked_with_domain_zone**boolean

  Has linked domain zones

  **not_after**string\<date-time>

  Validity end date

  **not_before**string\<date-time>

  Validity start date

  **private_key_pem_type**string

  Key type

  **Possible values:** \[`rsa`, `ecdsa`, `ed25519`, `unknown`]

  **Example:&#x20;**`ecdsa`

  **provisioned_by**string

  What created or modified the object: terraform means the Terraform provider, empty means another client

  **serial_number**string

  Serial number

  **Example:&#x20;**`04:9F:3A:2B:1C:8E`

  **subject_alternative_names**string\[]

  Subject alternative names (SAN)

  **subject_common_name**string

  Subject common name (CN)

  **Example:&#x20;**`demo-app.tuna.am`

  **subject_country**string

  Subject country (C)

  **Example:&#x20;**`RU`

  **subject_locality**string

  Subject locality (L)

  **Example:&#x20;**`Moscow`

  **subject_organization**string

  Subject organization (O)

  **Example:&#x20;**`Yucca Stream`

  **subject_organizational_unit**string

  Organizational unit (OU)

  **Example:&#x20;**`IT`

  **subject_province**string

  Subject state or province (ST)

  **Example:&#x20;**`Moscow`
