可信分布式身份服务 TDIS-发布可验证凭证的模板:响应参数

时间:2025-02-12 14:52:37

响应参数

状态码: 200

表5 响应Body参数

参数

参数类型

描述

schema_index

String

模板存储在链上的索引

最小长度:22

最大长度:151

credential_schema

CredentialSchema object

CredentialSchema

表6 CredentialSchema

参数

参数类型

描述

creator

String

创建者身份标识

最小长度:20

最大长度:100

title

String

名称

最小长度:1

最大长度:50

identifier

String

凭证模板标识

最小长度:1

最大长度:50

attributes

Array of Attribute objects

属性信息

version

Integer

版本

最小值:1

最大值:2147483647

表7 Attribute

参数

参数类型

描述

name

String

名称

最小长度:0

最大长度:100

type

String

类型

最小长度:0

最大长度:100

description

String

描述信息

最小长度:0

最大长度:200

状态码: 400

表8 响应Body参数

参数

参数类型

描述

error_code

String

错误码

最小长度:13

最大长度:13

error_msg

String

错误信息

最小长度:1

最大长度:65535

状态码: 500

表9 响应Body参数

参数

参数类型

描述

error_code

String

错误码

最小长度:13

最大长度:13

error_msg

String

错误信息

最小长度:1

最大长度:65535

support.huaweicloud.com/api-tdis/PublishVerifiableCredentialSchema.html