POST
/
settings
/
set
/
{instance}
curl --request POST \
  --url https://{server-url}/settings/set/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "rejectCall": true,
  "msgCall": "<string>",
  "groupsIgnore": true,
  "alwaysOnline": true,
  "readMessages": true,
  "syncFullHistory": true,
  "readStatus": true
}'
{
  "settings": {
    "instanceName": "teste-docs",
    "settings": {
      "rejectCall": true,
      "msgCall": "This number doesn't accept calls",
      "groupsIgnore": true,
      "alwaysOnline": true,
      "readMessages": true,
      "syncFullHistory": false,
      "readStatus": true
    }
  }
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

ID of the instance to connect

Body

application/json

Response

201 - application/json
Created

The response is of type object.