Manage
The Group API allows for integration with Falkor's Groups feature. The Manage endpoint allows for bulk adding and removal of users for a single group. When new users are added, Falkor app invites are sent automatically within 1 - 5 minutes.
Parameters
Key | Type |
REQUIRED | |
group | String |
OPTIONAL | |
add | Array of users (see below) |
remove | Array of strings (valid emails) |
app | String (e.g io.falkor.app) |
invite | Integer (defaults to 1) |
Invite Parameter
By default any new users added to groups will be sent an invite to the app. If you would like to disable this you can set the invite parameter to "0". Disabling invites will require invites to be manually sent from Falkor's Groups feature.
App Parameter
If you account is assigned multiple Falkor apps you can use the app parameter to assign the group to a specific app. The app parameter takes the app's reverse domain identity as an argument. If you only have 1 app on your account you would not need to provide this parameter as this is automatically assigned.
User
When using the add parameter it must be an array of users. firstname, lastname and email are required. If the email parameter is not valid, the response will contain warnings with applicable messages.
Key | Type |
REQUIRED | |
firstname | String |
lastname | String |
String (Valid Email) | |
OPTIONAL | |
dialCode | String (e.g +44) |
phoneNumber | String (e.g 0840001234) |
The telephone parameter in the user object is deprecated. If you would like to add a telephone number use dialCode
+ phoneNumber
Example
The example below adds the user "test@example.com" and removes the user "test2@example.com" from the "Group API" group. When adding users to groups it will only insert new users and ignore existing users in the group.
Hint. If the group does not exist, it will automatically be created.
Success Response
Inserts & Deletes The response will contain information about how many users where inserted & deleted. An insert will only occur if the email was not currently part of the group. A deletion will only occur if the email was current part of the group.
Success Response With Warning
If there are any issues detected with the add or remove parameter a warning will occur. If the response has a warning an array of messages will detail what went wrong.
Last updated