Removing users from channels
Similar to adding users, you can remove users either by a REST API call, or via a FileMaker script in your helper file.
Removing users using a FileMaker script
The script is available in Helper file and is called API - Leave Channel. This script accepts an object with two keys users
and channels
.
users
: it accepts a string with an user ID or an array of users IDchannels
: it accepts an object with name and mode (optional) or an array of objects, with the same shape.
Examples
API: Remove User from Channel
POST
https://yourdomain.com/message/removeuser
You can use this method to remove one or more users from channels. You must pass the API key generated for your app to authenticate this reqeust.
Headers
Request Body
Leaving Anonymous Channels
Users can only be removed from anonymous channels directly from the browser. The current browser tab that executes the action will be the one removed from the channel.
A user can be joined to an anonymous channel via a BF action called channelLeaveAnon.
Example:
Learn more:
Last updated