Usergroups
Usergroups Create
Create a User Group
Authorization
slackAuth usergroups:writeAuthorizationBearer <token>
In: header
Scope: usergroups:write
Header Parameters
token*string
Authentication token. Requires scope: usergroups:write
Content-Type*"application/x-www-form-urlencoded"
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
channels?string
A comma separated string of encoded channel IDs for which the User Group uses as a default.
description?string
A short description of the User Group.
handle?string
A mention handle. Must be unique among channels, users and User Groups.
include_count?boolean
Include the number of users in each User Group.
name*string
A name for the User Group. Must be unique among User Groups.
Response Body
application/json
application/json
curl -X POST "https://example.com/usergroups.create" \ -H "token: string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'name=string'{ "ok": "True", "usergroup": { "auto_provision": true, "auto_type": null, "channel_count": 0, "created_by": "string", "date_create": 0, "date_delete": 0, "date_update": 0, "deleted_by": null, "description": "string", "enterprise_subteam_id": "string", "handle": "string", "id": "string", "is_external": true, "is_subteam": true, "is_usergroup": true, "name": "string", "prefs": { "channels": [ "string" ], "groups": [ "string" ] }, "team_id": "string", "updated_by": "string", "user_count": 0, "users": [ "string" ] }}
