POST
/
apps
/
{appId}
/
extensions
/
report-user
/
v1
/
settings
Report user Store settings
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/report-user/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "maxReports": 3,
    "useWebhook": true,
    "webhookURL": "https://www.your-domain.com/take-action",
    "basicAuthUsername": "abcd",
    "basicAuthPassword": "1234"
  }
}'
{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "maxReports": 3,
          "useWebhook": true,
          "webhookURL": "https://example.com/take-action",
          "basicAuthUsername": "abcd",
          "basicAuthPassword": "1234"
        }
      }
    }
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

Body

application/json

Response

200 - application/json

Store Report User Settings

The response is of type object.