Skip to main content
POST
Add user to group

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
mode
enum<string>
required

Mode of user identification

Available options:
login,
token,
email,
phone,
custom
identity
string
required

User identifier corresponding to the mode

groupid
integer

ID of the group

groupname
string

Name of the group

roleid
integer

ID of the role to assign

rolename
string

Name of the role to assign

request_metadata
object

Additional metadata for the request

Response

User added to group successfully

status
string
Example:

"ok"