Skip to main content
PUT
/
groups
/
{id}
/
settings
/
join-approval
Set group join approval mode
curl --request PUT \
  --url https://wsapi.chat/groups/{id}/settings/join-approval \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Instance-Id: <x-instance-id>' \
  --data '
{
  "enabled": true
}
'
{
  "status": 400,
  "detail": "invalid request body"
}

Authorizations

X-Api-Key
string
header
required

Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.

Headers

X-Instance-Id
string
default:{{instanceId}}
required

The ID of the WhatsApp instance to use

Path Parameters

id
string
required

Group JID

Body

application/json
enabled
boolean

Response

Setting updated