Team management

team/autojoin

URL: https://fleep.io/api/team/autojoin

Autojoin team if not member yet. Autojoin url has following format https://fleep.io/team/KEY

Input:

team_url_key    text    - either teaminfo.team_id or last part of teaminfo.autojoin_url (KEY)

Output:

:ref:`TeamInfo <info/teaminfo>`

team/configure

URL: https://fleep.io/api/team/configure/TEAM_ID

Add or remove members and change team name

Input:

team_name               text = None

add_emails              text = None - list of emails to be added to team
remove_emails           text = None - list of emails to be removed from team

add_conversations       list = None - list of conversation id's to add
remove_conversations    list = None - list of conversation id's to remove

add_account_ids         list = None - list of account ids to be added to team
remove_account_ids      list = None - list of account ids to be removed from team
kick_account_ids        list = None - list of account ids to be kicked from team
                                    - together with confistacion of managed history

add_admin_ids           list = None - add team admins
remove_admin_ids        list = None - remove team admins

is_autojoin             boolean = None  -- Is autojoin enabled
is_managed              boolean = None  -- Set team managed or not

Output:

stream              list            - See api/account/poll for details

team/create

URL: https://fleep.io/api/team/create

Create team with given members and conversations.

Input:

team_name           text
emails              text = None     - list of emails to be added to the team from start
account_ids         text[] = None   - account ids to be added to the team from start
conversations       text[] = None   - list of conversation_id's where team members
                                      are to be added
is_autojoin         boolean = None  - Is autojoin enabled (default False)
is_managed          boolean = None  - Is this team managed

Output:

stream              list            - See api/account/poll for details

team/remove

URL: https://fleep.io/api/team/remove/TEAM_ID

Remove team.

Output:

stream              list            - see account/poll for details

team/sync

URL: https://fleep.io/api/team/sync/TEAM_ID

Sync team. For autojoin teams conversation id is optional. For non autojoin teams you must be member of the conversation that has this team

Input:

conversation_id     uuid = null         - conversation_id to prove team access

Output:

:ref:`TeamInfo <info/teaminfo>`

Table Of Contents

Previous topic

Conversation hooks management

Next topic

Stream API