Accept an invitation
Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See this page to learn more about channel types.
Note: This action is only available when the
auto_accept
property of an application is set to false. You can change the value of the property using the update default channel invitation preference action, or the update channel invitation preference action.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
channel_url | string | Specifies the URL of the group channel. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of the user. |
Optional | Type | Description |
---|---|---|
access_code | string | This property should be specified if the group channel to join requires an access code from the invited users because the |
Response
If successful, this action returns a group channel resource in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.