修改批量证书

请求URL

  • {{url}}/api/cert/batch_update

请求方式

  • post

Header

字段名
示例值
必选
类型
说明

x-api-key

{{x-api-key}}

string

x-api-secret

{{x-api-secret}}

string

请求参数示例

[
  {
    "id": "8",
    "name": "test2312",
    "des": "描述1",
    "type": "lets",
    "dnsapi": null,
    "domain": "test1dc.com",
    "key": "",
    "cert": ""
  }
]

请求json字段说明

字段名
必选
类型
说明

id

string

证书ID

name

string

名称

des

string

备注

type

string

证书类型,可选为custom、lets、zerossl

dnsapi

object

dnsapi ID

domain

string

域名

key

string

密钥内容,当证书类型为custom时,此项必填

cert

string

证书内容,当证书类型为custom时,此项必填

成功返回示例

复制{
    "code": 0,
    "data": null,
    "msg": "更新证书成功"
}

失败返回示例

{
  "code": -1,
  "data": null,
  "msg": "cert id不存在"
}

Last updated