WUAPI
  1. Groups
WUAPI
  • Messages
    • Send plain text
      POST
    • Send image
      POST
    • Send audio
      POST
    • Send video
      POST
    • Send document
      POST
    • Send location
      POST
    • Send link
      POST
    • Send contact
      POST
    • Delete message by id
      DELETE
    • Get message by id
      GET
  • Users
    • Create new user
      POST
    • Get all users
      GET
  • Instances
    • Create new instance
      POST
    • List All instance
      GET
    • Update instance
      PUT
    • List by instance id
      GET
    • Delete instance
      DELETE
    • Restart instance
      GET
    • Get QRCode
      GET
    • Get QRCode in base64 image.
      GET
    • Disconnect instance
      GET
    • Update profile picture
      PUT
    • Delete profile picture
      DELETE
    • Update profile name
      PUT
  • Webhook
    • Connection event for your instance
    • Disconnection event for your instance
    • Event when you receive a message
    • Event when you send a message
  • Queues
    • Get queue instance
    • Delete queue instance
    • Get queue failed instance
    • Retry queue
  • Groups
    • Create new group
      POST
    • Get all groups
      GET
    • Get group by id
      GET
    • Add contact to group
      PUT
    • Update picture of group
      PUT
    • Set admins only
      PUT
    • Add and remove admins in group
      PUT
  • Manage
    • Restart server
  1. Groups

Add contact to group

PUT
/{instanceId}/groups/{groupId}/add-contacts
Groups
Last modified:2024-06-12 01:04:44
OperationId:GroupsController_addParticipants

Request

Authorization
Add parameter in header
authorization
Example:
authorization: ********************
Path Params
instanceId
string 
required
groupId
string 
required
Body Params application/json
contacts
array[string]
required
Example:
[ "5515999999999", "5515111111111" ]
Example
{
    "contacts": "[\n    \"5515999999999\",\n    \"5515111111111\"\n  ]"
}

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 '//groups//add-contacts' \
--header 'Content-Type: application/json' \
--header 'authorization;' \
--data-raw '{
    "contacts": "[\n    \"5515999999999\",\n    \"5515111111111\"\n  ]"
}'

Responses

🟢200Success
application/json
Body
value
boolean 
required
Example
{
    "value": true
}
🟠400400
🔴500500
Modified at 2024-06-12 01:04:44
Previous
Get group by id
Next
Update picture of group
Built with