11.4.4.6 Create Permissions


Function name createPermission(CreatePermission createPermission)
Description Resource owner creates the permissions of accessing to the resource in the Hub for third parties. Permissions WRITE means store resource, UPDATE means update resource, READ means read resource. An authorization can only be accessed once, and an authorization with the same uid and the same permission cannot be created again without access. However, the permissions of UPDATE and READ from the server side will return the same result for each call.
Request Parameters
No. Parameter Type Required Description
1 CreatePermission Y
CreatePermission
1 uid String Y ID in the Hub
2 url String N The path of the stored resource. Can be null if the permission is WRITE, required when the permission is READ/UPDATE
3 grant Operation Y Operation permissions: WRITE/UPDATE/READ
4 grantUid String Y Authorized ID in the Hub
5 grantPublicKey String Y Authorized public key
6 privateKey String Y Private key
Response Parameters
No. Parameter Type Required Description
1 CreatePermissionResp Y Creation result
CreatePermissionResp
No. Parameter Type Required Description
1 url String Y The path of the stored resource
2 key String Y Ciphertext key
© 2019-2023 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2023-02-16 12:22:03

results matching ""

    No results matching ""

    results matching ""

      No results matching ""