Autonotify API (Beta)
  1. Groups
Autonotify API (Beta)
  • Introduction
  • Get started
  • API
    • Groups
      • Create
        POST
      • Join By Invite Code
        POST
      • Revoke Invite Code
        POST
      • Get Invite Code
        GET
      • Get Group by ID
        GET
      • Get All Groups
        GET
      • Get All Groups Admin
        GET
      • Update
        PUT
      • Update Profile Picture
        PUT
      • Group Member Add Mode
        PUT
      • Leave
        DELETE
      • Members
        PUT
    • Messages
      • Read Message
      • Send Plain Text
      • Send Media
      • Send Poll
      • Message Reaction
    • Sessions
      • Get Profile
      • Fetch Instance
      • Logout Instance
      • Create Instance
    • Chats
      • Update Status Profile
      • Update presence
      • Block Contact
      • Get Profile Picture
      • Update Privacy Settings
      • Update Profile Name
      • Get Business Profile
      • Put Chat
      • Check is WhatsApp
      • Remove Phone From Label
    • Newsletter (BETA)
      • Create
      • Update
      • Update Profile Description
      • Update Profile Picture
      • Get Newsletter By ID
    • Webhook
      • Register webhook
    • Community
      • Create
      • Update
      • GET
      • Invite Code
      • Participantes Com Pedidos
      • Settings
      • Approval Mode
      • Add Mode
      • Communities Linkeds
      • Comunidades Participantes Resquests
      • Todas comunidades
  1. Groups

Members

PUT
/api/v1/group/members
Adds new participants to an existing group.

Request

Query Params

Header Params

Body Params application/json

Example
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "promote"
}

/*
Exemplo 1: Adicionar participantes
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "add"
}

// Exemplo 2: Remover participantes
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "remove"
}

// Exemplo 3: Promover a admin
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    },
    {
      "phoneNumber": "5511988888888"
    }
  ],
  "action": "promote"
}

// Exemplo 4: Remover admin
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "demote"
}
*/

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://nexus.sourei.com.br/api/v1/group/members?groupId=' \
--header 'Authorization: Bearer {{token}}' \
--header 'x-session-id: {{session_id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "promote"
}

/*
Exemplo 1: Adicionar participantes
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "add"
}

// Exemplo 2: Remover participantes
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "remove"
}

// Exemplo 3: Promover a admin
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    },
    {
      "phoneNumber": "5511988888888"
    }
  ],
  "action": "promote"
}

// Exemplo 4: Remover admin
{
  "participants": [
    {
      "phoneNumber": "5511999999999"
    }
  ],
  "action": "demote"
}
*/'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-01-24 20:33:25
Previous
Leave
Next
Read Message
Built with