get https://try.count.ly/i/groups/create?api_key=api_key&args=args
Create a new group
New group's data is provided in args parameter as stringified JSON. Key-value pairs in this JSON object is as follows:
name/key | required? | type | description |
---|---|---|---|
name | yes | String | Name of the group |
groupID | yes | String | ID of group. Typically name of group lowercased and special chars removed. Example: name: "Junior Developers (test)" groupID: "junior-developers-test" |
global_admin | yes | Boolean | If group users are given global admin privileges. |
admin_of | no | Array[String] | Array of app ids where group users are given admin privileges. |
user_of | no | Array[String] | Array of app ids where group users are given user privileges. |
Here is an example of args object:
{
"name": "developers",
"groupID": "developers",
"global_admin": false,
"user_of": [
"58650a47cc2ed563c5ad964c" // APP_ID
]
}