Function name |
updateCpt(RegisterCpt registerCpt) |
Description |
The issuer updates the content of its own registered credential templates. The update of the credential template ID does not affect issued credentials. |
Request Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
RegisterCpt |
Y |
|
RegisterCpt |
1 |
did |
String |
Y |
DID |
2 |
privateKey |
String |
Y |
Private key |
3 |
cptJsonSchema |
Map<String, JsonSchema> |
Y |
JsonSchema for Credential template |
4 |
title |
String |
Y |
Credential template title |
5 |
description |
String |
Y |
Credential template description |
6 |
type |
String |
Y |
Credential Type, fill in proof |
7 |
cptId |
Long |
Y |
Credential template ID |
JsonSchema |
1 |
type |
String |
Y |
Type |
2 |
description |
String |
Y |
Description |
3 |
required |
Boolean |
Y |
true:required;false:optional |
Response Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
CptBaseInfo |
Y |
Update result, basic information of credential template |
CptBaseInfo |
No. |
Parameter |
Type |
Required |
Description |
1 |
cptId |
Long |
Y |
Credential template ID |
2 |
cptVersion |
Integer |
Y |
Credential template version, add 1 after each successful update |