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
Store Report User Settings
The response is of type object
.