This function allows you to create a user group as defined by the user group data array.
Parameter | Type | Optional | Description | Details |
---|---|---|---|---|
usergroup data | array or object | Array of User group objects or a single object | usrgrpid shouldn't be specified |
Parameter | Description |
---|---|
result | Operation successful. Result will contain array of created User group IDs. usrgrpid are assigned to each User group object |
error | In case of any errors |
{
"jsonrpc":"2.0",
"method":"usergroup.create",
"params":[
{"name":"Debug Group"}
],
"auth":"038e1d7b1735c6a5436ee9eae095879e",
"id":3
}
User group created successfully:
User group already exists: