Audit settings saving (setSettings)
AuditSite.setSettings — method saves settings in a suggested project.
Request parameters | |
Parameters | Description |
id | Request id |
domain | Project domain |
name | Project name |
subdomainsCheck | Subdomains check |
pagesLimit | Scan pages limit |
scanSpeed | Scan speed |
autoSpeed | Auto speed control |
autoUserAgent | User Agent auto switches at unsuccessful server response |
scanNoIndex | No-index pages scanning |
scanWrongCanonical | Incorrect canonical pages scanning |
scanDuration | Scan duration |
folderDepth | Scan folder depth |
urlDepth | URL depth |
userAgent | User Agent |
robotsTxt | Robots.txt regulations check |
dontScanKeywordsBlock | Don’t scan pages with keywords in URL |
onlyScanKeywordsBlock | Scan only pages with keywords in URL |
baseAuthBlock | Access to websites shut down with BaseAuth |
login | BaseAuth login |
password | BaseAuth password |
mailTriggerSettings | Trigger mail settings |
emails | Array of emails trigger mail to be sent |
interval | Interval of trigger mailing |
enabled | Trigger mail enabling |
scheduleSettings | Scan schedule settings |
scheduleRepeatOption | Scan interval id |
scanSetting | Scan type settings |
type | Scan type mode id |
list | Arrays of URL to be scanned |
importedFilename | File name of previously imported URL |
Response parameters | |
Parameters | Description |
id | Request id |
result | Contains the answer |
{
"id":1,
"method": "AuditSite.setSettings",
"params":{
"projectId":174917,
"mainSettings": {
"domain": "inweb.ua",
"name": "inweb.ua",
"subdomainsCheck": true,
"pagesLimit": 54321,
"scanSpeed": 200,
"autoSpeed" : true,
"autoUserAgent": true,
"scanNoIndex":false,
"scanWrongCanonical":true,
"scanDuration": 0,
"folderDepth": 0,
"urlDepth": 0,
"userAgent": 0,
"robotsTxt": true
},
"dontScanKeywordsBlock": {
"checked": true,
"keywords": "text1"
},
"onlyScanKeywordsBlock": {
"checked": true,
"keywords": "text2"
},
"baseAuthBlock": {
"login": "222",
"password": "444"
},
"mailTriggerSettings": {
"emails": [],
"interval": 1,
"enabled": false
},
"scheduleSettings": {
"scheduleRepeatOption": 3
},
"scanSetting": {
"type": 2,
"list": [],
"importedFilename":"xxx.xxx"
}
},
"jsonrpc": "2.0"
}
{
"id": "1",
"result": null,
"jsonrpc": "2.0"
}