14.4.2.6 更新凭证模板

方法名 updateCpt(RegisterCpt registerCpt)
方法描述 发证方对自己已注册过的凭证模板内容进行更新。凭证模板更新不影响已签发的凭证。
方法调用参数
序号 参数 类型 必传 参数含义
1 RegisterCpt 是
RegisterCpt
1 did String 是 DID标识符
2 privateKey String 是 私钥
3 cptJsonSchema Map<String, JsonSchema> 是 凭证模板的JsonSchema
4 title String 是 凭证模板标题
5 description String 是 凭证模板的详细描述
6 type String 是 凭证类型,填写Proof
7 cptId Long 是 凭证模板ID
JsonSchema
1 type String 是 字段类型
2 description String 是 字段描述
3 required Boolean 是 true:必传;false:选填
方法返回参数
序号 参数 类型 必传 参数含义
1 CptBaseInfo 是 更新结果,凭证模板基础信息
CptBaseInfo
1 cptId Long 是 凭证模板ID
2 cptVersion Integer 是 凭证模板版本号,每次更新成功,版本号+1。
Copyright 北京红枣科技有限公司

results matching ""

    No results matching ""

    results matching ""

      No results matching ""