Groups

    Manage participants

    POSThttps://api.batzap.com/v1/group-participants

    Adds, removes, promotes or demotes group participants. The sending number must be an admin of the group.

    For add, people whose privacy settings block being added show up in failures with status 403: use Invite people to a group to send them the link instead.

    Body parameters

    jidstringrequired

    Group JID, ending in @g.us.

    participantsstring[]required

    Phone numbers or JIDs.

    actionstringrequired

    What to do with them.

    addremovepromotedemote
    integration_iduuidoptional

    WhatsApp number to act from (see List integrations). Filled in automatically when the key is restricted to a single number.

    Errors

    400
    Invalid JID, empty participants, invalid action, or the number is not a group admin.

    Plus the errors every route can return: see Errors.