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

Create new group

POST
/{instanceId}/groups
Groups
Last modified:2024-06-12 01:04:44
OperationId:GroupsController_create

Attention#

When sending a contact that does not allow joining a group that is not a contact, group creation will fail.

Request

Authorization
Add parameter in header
authorization
Example:
authorization: ********************
Path Params
instanceId
string 
required
Body Params application/json
name
string 
required
contacts
array[string]
optional
Example
{
    "name": "string",
    "contacts": [
        "string"
    ]
}

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

Responses

🟢201Success
application/json
Body
groupId
string 
required
groupIdClient
string 
required
name
string 
required
contacts
array[string]
optional
created_at
string <date-time>
required
updated_at
string <date-time>
required
id
number 
required
instanceId
string 
required
Example
{
    "groupId": "string",
    "groupIdClient": "string",
    "name": "string",
    "contacts": [
        "string"
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "id": 0,
    "instanceId": "string"
}
🟠400400
🔴500500
Modified at 2024-06-12 01:04:44
Previous
Retry queue
Next
Get all groups
Built with