---
title: "Update certificate key"
method: POST
path: "/key"
tags: ["Administration"]
---

# Update certificate key

`POST /key`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/key`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/key/post.ts> (a function with typed inputs; its response is checked against the schema)

Update certificate key.

## Request body

- object
  - `crt` string, required: Content of this certificate file for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509.
  - `key` string, required: Content of this private certificate file for TLS or WSS transport protocol.

## Response `204`

No Content

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
