Realtime Cloud Storage


Creates a role.


curl '' -H 'Content-Type: application/json; charset=UTF-8' -d '{"applicationKey": "[YOUR_APP_KEY]","privateKey": "[YOUR_APP_KEY]", "role": "DeveloperRole", "policies": {"database": {"listTables": ["SampleUser"], "deleteTable": ["SampleUser"], "createTable": true, "updateTable": ["SampleUser"] }, "tables": { "SampleUser": { "allow":"CRUD" } } } }'


String applicationKey

Public key of the application's license.

String privateKey

Private key of the application's license. For administration use only.

String role

The name of the role.

Policy policies

A set of rules that control access to the Storage database.

SetRoleResponse callback

Function called when the operation completes.


SetRoleResponse(data, error)

Response of the setRole operation.

Boolean data

True if the role was set.

Error error

The attribute that holds the results of the operation if an error occurred.