Updating an ABE Master Key
Function
Updating an ABE Master Key
URI
POST /v1/datashare/abe-update
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
orgID |
Yes |
String |
Organization ID. |
channelID |
Yes |
String |
Channel ID. |
cryptoMethod |
Yes |
String |
Encryption method, which is fixed at SW. |
cert |
Yes |
String |
Certificate. |
sk |
Yes |
String |
Private key. |
timestamp |
Yes |
String |
Timestamp. |
secretKeyJson |
No |
String |
ABE master private key in JSON format. |
publicKeyJson |
No |
String |
ABE master public key in JSON format. |
owner |
Yes |
String |
Key generator identifier. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
oldSecretJson |
String |
Old ABE master private key. |
oldPublicKeyJson |
String |
Old ABE master public key. |
newSecretJson |
String |
New ABE master private key. |
newPublicKeyJson |
String |
New ABE master public key. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
errorCode |
String |
Error code. |
errorMsg |
String |
Error description. |
Example Requests
{ "orgID" : "ce0ac69b0c8648cd25b44a551780409767c8890b", "channelID" : "mychannel", "cryptoMethod" : "SW", "cert" : "-----BEGIN CERTIFICATE-----\\n...\\n-----END CERTIFICATE-----", "sk" : "-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----", "timestamp" : "2020-10-27T17:28:16+08:00", "owner" : "did:example:8poVETnVCry9ecfHSDeQaR", "secretKeyJson" : "string", "publicKeyJson" : "string" }
Example Responses
Status code: 200
Original and updated ABE master key information.
{ "oldSecretJson" : "{}", "oldPublicKeyJson" : "{}", "newSecretJson" : "{}", "newPublicKeyJson" : "{}" }
Status code: 500
Error response.
{ "errorCode" : "BCS.5002046", "errorMsg" : "Incorrect number of arguments" }
Status Codes
Status Code |
Description |
---|---|
200 |
Original and updated ABE master key information. |
500 |
Error response. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot