Path Parameters
AppID in which the extension has to be enabled/disabled
Body
application/json
Response
200 - application/json
Store Report User 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"
        }
      }
    }
  }
}Report user : Store new settings for Report user extension
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"
        }
      }
    }
  }
}AppID in which the extension has to be enabled/disabled
Show child attributes
Store Report User Settings
Show child attributes
Was this page helpful?