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

# POST /api/add-cert

`POST /api/add-cert`

add cert

## 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

---

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