Path Parameters
AppID in which the extension has to be enabled/disabled
Body
application/json
Response
200 - application/json
Create Chat Widget
curl --request PUT \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/virus-malware-scanner/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "scaniiApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
    "scaniiSecretKey": "f5c0102d"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 1.8547508716583252,
    "body": {
      "data": {
        "settings": {
          "scaniiApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
          "scaniiSecretKey": "f5c0102d"
        }
      }
    }
  }
}Virus Malware Scanner : Update the settings for Virus malware scanner extension.
curl --request PUT \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/virus-malware-scanner/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "scaniiApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
    "scaniiSecretKey": "f5c0102d"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 1.8547508716583252,
    "body": {
      "data": {
        "settings": {
          "scaniiApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
          "scaniiSecretKey": "f5c0102d"
        }
      }
    }
  }
}AppID in which the extension has to be enabled/disabled
Show child attributes
Create Chat Widget
Show child attributes
Was this page helpful?