10.4.4.3 Save Resource


Function name saveResource(SaveResource saveResource)
Description Store the resource to the Hub. If the user stores it himself, the uid and the ownerUid should be the same. At this time, there is no create permission need and can call directly; if the issuer stores it for the user after issuing the credentials, the uid should be the issuer, and the ownerUid should be the user. At this time, the user must have created WRITE permission for it, otherwise the storage will fail.
Request Parameters
No. Parameter Type Required Description
1 SaveResource Y
SaveResource
1 did String Y ID in the Hub
2 content String Y Resource content
3 url String N The path of the stored resource. Null when stored by the user; required when stored by the issuer.
4 ownerUid String Y Resource owner’s ID in the Hub
5 grant Operation Y Operation permissions: WRITE/UPDATE
6 privateKey String Y Private key
Response Parameters
No. Parameter Type Required Description
1 SaveResourceResult Y Save result
SaveResourceResult
No. Parameter Type Required Description
1 url String Y The path of the stored resource
2 encryptKey String Y Ciphertext key
© 2019-2024 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2024-10-18 15:02:46

results matching ""

    No results matching ""

    results matching ""

      No results matching ""