修改单条证书
请求URL
{{url}}/api/cert/update
请求方式
post
Header
字段名
示例值
必选
类型
说明
x-api-key
{{x-api-key}}
是
string
无
x-api-secret
{{x-api-secret}}
是
string
无
请求参数示例
{
"id": "81",
"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