Flowdock - REST API: How to use API for Custom Groups?

Document ID : KB000117616
Last Modified Date : 16/10/2018
Show Technical Document Details
Question:
How can we use Flowdock's REST API to create, update, delete, add and remove members from Custom Group?
Answer:
Get all flow groups:
GET /flows/{{org_name}}/{{flow_name}}/flow_groups

Create a group:
POST /flows/{{org_name}}/{{flow_name}}/flow_groups
{"handle":"{{group_name}}"}

To add members to the group - comma separated user ids as payload:
POST /flows/{{org_name}}/{{flow_name}}/flow_groups/{{group_id}}/add_members
{"members":"10"}

To remove members from the group - comma separated user ids as payload:
POST /flows/{{org_name}}/{{flow_name}}/flow_groups/{{group_id}}/remove_members
{"members":"10"}

Delete a group:
DELETE /flows/{{org_name}}/{{flow_name}}/flow_groups/{{group_id}}
Additional Information:
Check out Flowdock's API for additional options.