---
title: "POST /api/update-cert"
method: POST
path: "/api/update-cert"
tags: ["Cert API"]
---

# POST /api/update-cert

`POST /api/update-cert`

update cert

## Query parameters

- `id` string, required

## Request body

- ObjectCert
  - `authorityPublicKey` string
  - `authorityRootPublicKey` string
  - `bitSize` integer
  - `certificate` string
  - `createdTime` string
  - `cryptoAlgorithm` string
  - `displayName` string
  - `expireInYears` integer
  - `name` string
  - `owner` string
  - `privateKey` string
  - `scope` string
  - `type` string

## Response `200`

The Response object

## Changes

- **2022-02-18** `cb092f825446` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casdoor/apis/casdoor-restful-api/changes/api/update-cert/post.md)

---

[API](https://skmtc.dev/casdoor/apis/casdoor-restful-api.md) · [All operations](https://skmtc.dev/casdoor/apis/casdoor-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/casdoor/casdoor-restful-api/revisions/be9a5584b821/schema)
