Skip to content

Support additional settings in payload when creating group #2175

Description

@MCFreddie777

Is your feature request related to a problem? Please describe.
It would be great if it would be possible to create group with all security settings at once.
Currently, when creating a group using POST /api/{session}/groups, the payload only takes name and participants.

Describe the solution you'd like

It would be great if the feature supported passing

  "name": "string",
  "participants": [
    {
      "id": "123456789@c.us"
    }
  ],
  "security": {
     "messages": {
        "adminsOnly": true
     },
    "info": {
      "adminsOnly":true
    }
   }

So we can save one extra http call every time creating the group.

One extra mile would be even promoting participant to admins, if it would be possible.

Describe alternatives you've considered
For each group(N) N + 2 requests are needed currently. This can also spam whatsapp api, risking an account to be blocked for spam.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions