Set the stream access level
Sets the stream access levels for the stream of API key with keyid.
Requires a JSON object with these properties:
-
grant: Use "ro" to set the stream access level to Subscribe. Use "wo" to set the stream access level to Publish. Use "rw" to set the stream access level to Publish and Subscribe. Use "none" to set the stream access level to No access.
-
stream: Use "*" to set default access level for all streams.
If access level for stream is not set default("*") access level is used. If default("*") access level is also not set database access level is used.
Note: Requires administrator permissions.
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The id of the API key.
The name of the database.
The name of the stream.
Request body
Example request
{
"grant": "rw"
}Response
Successfully changed access level.
Example response
{
"code": 200,
"result": "rw"
}Changes
No recorded changes to this operation across all 1 revision of this API.