forked from slack-ruby/slack-api-ref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubteam_updated.json
40 lines (38 loc) · 1.68 KB
/
subteam_updated.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "subteam_updated",
"desc": "An existing User Group has been updated or its members changed.",
"long_desc": "My Slack API Start here App features Messagingnew Reference Slack App Directory Authentication Keep in touch Resources Community An existing User Group has been updated or its members changed Compatibility: RTM Events API The subteam_updated event is sent to all connections for a workspace when an existing User Group is updated. This event is triggered for changes to the User Group information (name, description, or handle) as well as the members of the group. Clients can use this to update their local list of groups and group members. The users field is truncated at 500, however the user_count field will still show the actual count. If you are only interested in User Group membership changes, consider using the subteam_members_changed event instead. This event type may also arise when a subteam has been disabled.",
"required_scope": "RTM",
"example": {
"type": "subteam_updated",
"subteam": {
"id": "S0614TZR7",
"team_id": "T060RNRCH",
"is_usergroup": true,
"name": "Team Admins",
"description": "A group of all Administrators on your team.",
"handle": "admins",
"is_external": false,
"date_create": 1446598059,
"date_update": 1446670362,
"date_delete": 0,
"auto_type": "admin",
"created_by": "USLACKBOT",
"updated_by": "U060RNRCZ",
"deleted_by": null,
"prefs": {
"channels": [
],
"groups": [
]
},
"users": [
"U060RNRCZ",
"U060ULRC0",
"U06129G2V",
"U061309JM"
],
"user_count": "4"
}
}
}