Grant permissions
In this request, the auth-key is the client that has permissions to modify Access Manager permissions, not the auth-key you want to modify permissions on.
The one you are changing permissions for is within the parameters.
| Path Parameters |
|---|
sub_key string — REQUIREDYour app's subscribe key from Admin Portal. Example:
|
| Query Parameters |
|---|
signature string — REQUIREDUsed to verify the request was signed with the secret key associated with the subscribe key. For information on how to compute the signature, refer to Signature generation. Example:
|
auth string — REQUIREDThe Auth key that is being granted permissions. Example:
|
uuid stringA UTF-8 encoded string of up to 92 characters used to identify the client. Example:
|
timestamp integer — REQUIREDUnix epoch timestamp used as a nonce for signature computation. Must have no more than ± 60 second offset from NTP. This is not associated with the TTL at all. Example:
|
ttl integerTime to live for permission to be valid. Example:
|
channel stringThe channel ID to perform the operation on. Comma separated values are accepted. Example:
|
channel-group stringComma-separated list of channel group names to perform the operation on. Example:
|
target-uuid stringSpecifies the channel groups on which to grant permissions. Comma separated values are accepted. Example:
|
w integerPossible values: [ Write permission Example:
|
r integerPossible values: [ Read permission |
m integerPossible values: [ Manage permission |
d integerPossible values: [ Delete permission |
g integerPossible values: [ Get permission |
u integerPossible values: [ Update permission |
j integerPossible values: [ Join permission |
| Responses | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200OK
| |||||||||||||
400Error validating inputs. (E.g. missing required params or invalid input types.) | |||||||||||||
403Invalid signature. (E.g. wrong secret key or character set encoding for signature computation.) |
sub_key*signature*auth*uuidtimestamp*ttlchannelchannel-grouptarget-uuidwrmdgujstatus200message"Success"payloadservice"Access Manager"{
"message": "Success",
"payload": {
"level": "uuid",
"subscribe_key": "sub-key",
"ttl": 1,
"uuids": {
"uuid-1": {
"auths": {
"authkey1": {
"r": 0,
"w": 0,
"m": 0,
"d": 0,
"g": 0,
"u": 0,
"j": 0
},
"key2": {
"r": 0,
"w": 0,
"m": 0,
"d": 0,
"g": 0,
"u": 0,
"j": 0
}
}
},
"uuid-2": {
"auths": {
"key1": {
"r": 0,
"authkey2": 0,
"m": 0,
"d": 0,
"g": 0,
"u": 0,
"j": 0
},
"key2": {
"r": 0,
"w": 0,
"m": 0,
"d": 0,
"g": 0,
"u": 0,
"j": 0
}
}
}
}
},
"service": "Access Manager",
"status": 200
}