curl -X POST -H 'Authorization: Bearer $HB_API_KEY' \
https://8e9hs553xoluse47mck4rfxrp.hyperbeam.com/BUPA9uQeTQ2SLRRQZfe0Xg/addRoles -d \
'[["32670ca3-ffe6-4ff6-ae88-be0ef6709784"], ["control"]]'
Session API
Add Roles
curl -X POST -H 'Authorization: Bearer $HB_API_KEY' \
https://8e9hs553xoluse47mck4rfxrp.hyperbeam.com/BUPA9uQeTQ2SLRRQZfe0Xg/addRoles -d \
'[["32670ca3-ffe6-4ff6-ae88-be0ef6709784"], ["control"]]'
Parameters
Note that the parameters are provided as an array, as opposed to an object.string[]
required
List of user ids
string[]
required
List of roles to be assigned to the provided user ids
bool
default:false
“Exclusive” flag, where if set to true, the roles are assigned to all users except the provided list of user ids.
curl -X POST -H 'Authorization: Bearer $HB_API_KEY' \
https://8e9hs553xoluse47mck4rfxrp.hyperbeam.com/BUPA9uQeTQ2SLRRQZfe0Xg/addRoles -d \
'[["32670ca3-ffe6-4ff6-ae88-be0ef6709784"], ["control"]]'
addRoles([userIds], [roles], exclusive) from the JavaScript SDK.