diff --git a/docs/api/includes/apis b/docs/api/includes/apis index 85615cef8e..301bf2ad6f 100644 --- a/docs/api/includes/apis +++ b/docs/api/includes/apis @@ -19,33 +19,21 @@

Email: ZAP User Group Web: ZAP User Group License: Apache 2.0

-

Authentication

- - -

alert

-

alertViewAlert

-

+

accessControl

+

accessControlActionScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/alert/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/accessControl/action/scan/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/alert/");
+
URL obj = new URL("http://zap/JSON/accessControl/action/scan/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -61,36 +49,21 @@ curl -X GET http://zap/JSON/alert/view/alert/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/alert/', params={
-
+r = requests.get('http://zap/JSON/accessControl/action/scan/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/alert/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/alert/

+

GET /JSON/accessControl/action/scan/

-

Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method

+

Starts an Access Control scan with the given context ID and user ID. (Optional parameters: user ID for Unauthenticated user, boolean identifying whether or not Alerts are raised, and the Risk level for the Alerts.) [This assumes the Access Control rules were previously established via ZAP gui and the necessary Context exported/imported.]

-

Parameters

+

Parameters

@@ -102,9 +75,37 @@ curl -X GET http://zap/JSON/alert/view/alert/ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -116,11 +117,12 @@ curl -X GET http://zap/JSON/alert/view/alert/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idcontextId queryintegerstringtruenone
userIdquerystringtruenone
scanAsUnAuthUserquerystringfalsenone
raiseAlertquerystringfalsenone
alertRiskLevelquerystring false none
@@ -133,27 +135,26 @@ curl -X GET http://zap/JSON/alert/view/alert/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertViewAlerts

-

+

accessControlActionWriteHTMLreport

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/alerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/accessControl/action/writeHTMLreport/?contextId=string&fileName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/alerts/");
+
URL obj = new URL("http://zap/JSON/accessControl/action/writeHTMLreport/?contextId=string&fileName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -169,36 +170,21 @@ curl -X GET http://zap/JSON/alert/view/alerts/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/alerts/', params={
-
+r = requests.get('http://zap/JSON/accessControl/action/writeHTMLreport/', params={
+  'contextId': 'string',  'fileName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/alerts/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/alerts/

+

GET /JSON/accessControl/action/writeHTMLreport/

-

Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts

+

Generates an Access Control report for the given context ID and saves it based on the provided filename (path).

-

Parameters

+

Parameters

@@ -210,31 +196,17 @@ curl -X GET http://zap/JSON/alert/view/alerts/ - + - - - - - - - - - - - - - - - + - + - +
baseurlcontextId query stringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsetrue none
riskIdfileName query stringfalsetrue none
@@ -245,11 +217,12 @@ curl -X GET http://zap/JSON/alert/view/alerts/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -262,27 +235,26 @@ curl -X GET http://zap/JSON/alert/view/alerts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertViewAlertsSummary

-

+

accessControlViewGetScanProgress

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/alertsSummary/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/accessControl/view/getScanProgress/?contextId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/alertsSummary/");
+
URL obj = new URL("http://zap/JSON/accessControl/view/getScanProgress/?contextId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -298,36 +270,21 @@ curl -X GET http://zap/JSON/alert/view/alertsSummary/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/alertsSummary/', params={
-
+r = requests.get('http://zap/JSON/accessControl/view/getScanProgress/', params={
+  'contextId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/alertsSummary/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/alertsSummary/

+

GET /JSON/accessControl/view/getScanProgress/

-

Gets number of alerts grouped by each risk level, optionally filtering by URL

+

Gets the Access Control scan progress (percentage integer) for the given context ID.

-

Parameters

+

Parameters

@@ -339,10 +296,10 @@ curl -X GET http://zap/JSON/alert/view/alertsSummary/ - + - +
baseurlcontextId query stringfalsetrue none
@@ -353,11 +310,12 @@ curl -X GET http://zap/JSON/alert/view/alertsSummary/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -370,27 +328,26 @@ curl -X GET http://zap/JSON/alert/view/alertsSummary/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertViewNumberOfAlerts

-

+

accessControlViewGetScanStatus

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/accessControl/view/getScanStatus/?contextId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/numberOfAlerts/");
+
URL obj = new URL("http://zap/JSON/accessControl/view/getScanStatus/?contextId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -406,36 +363,21 @@ curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/numberOfAlerts/', params={
-
+r = requests.get('http://zap/JSON/accessControl/view/getScanStatus/', params={
+  'contextId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/numberOfAlerts/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/numberOfAlerts/

+

GET /JSON/accessControl/view/getScanStatus/

-

Gets the number of alerts, optionally filtering by URL or riskId

+

Gets the Access Control scan status (description string) for the given context ID.

-

Parameters

+

Parameters

@@ -447,17 +389,10 @@ curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ < - - - - - - - - + - +
baseurlquerystringfalsenone
riskIdcontextId query stringfalsetrue none
@@ -468,11 +403,12 @@ curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -485,27 +421,28 @@ curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertViewAlertsByRisk

-

+ +

acsrf

+

acsrfActionAddOptionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/alertsByRisk/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/acsrf/action/addOptionToken/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/alertsByRisk/");
+
URL obj = new URL("http://zap/JSON/acsrf/action/addOptionToken/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -521,36 +458,21 @@ curl -X GET http://zap/JSON/alert/view/alertsByRisk/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/alertsByRisk/', params={
-
+r = requests.get('http://zap/JSON/acsrf/action/addOptionToken/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/alertsByRisk/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/alertsByRisk/

+

GET /JSON/acsrf/action/addOptionToken/

-

Gets a summary of the alerts, optionally filtered by a 'url'. If 'recurse' is true then all alerts that apply to urls that start with the specified 'url' will be returned, otherwise only those on exactly the same 'url' (ignoring url parameters)

+

Adds an anti-CSRF token with the given name, enabled by default

-

Parameters

+

Parameters

@@ -562,17 +484,10 @@ curl -X GET http://zap/JSON/alert/view/alertsByRisk/ - + - - - - - - - - +
urlString query stringfalsenone
recursequerybooleanfalsetrue none
@@ -583,11 +498,12 @@ curl -X GET http://zap/JSON/alert/view/alertsByRisk/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -600,27 +516,26 @@ curl -X GET http://zap/JSON/alert/view/alertsByRisk/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertViewAlertCountsByRisk

-

+

acsrfActionRemoveOptionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/view/alertCountsByRisk/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/acsrf/action/removeOptionToken/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/view/alertCountsByRisk/");
+
URL obj = new URL("http://zap/JSON/acsrf/action/removeOptionToken/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -636,36 +551,21 @@ curl -X GET http://zap/JSON/alert/view/alertCountsByRisk
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/view/alertCountsByRisk/', params={
-
+r = requests.get('http://zap/JSON/acsrf/action/removeOptionToken/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/view/alertCountsByRisk/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/alert/view/alertCountsByRisk/

+

GET /JSON/acsrf/action/removeOptionToken/

-

Gets a count of the alerts, optionally filtered as per alertsPerRisk

+

Removes the anti-CSRF token with the given name

-

Parameters

+

Parameters

@@ -677,17 +577,10 @@ curl -X GET http://zap/JSON/alert/view/alertCountsByRisk - + - - - - - - - - +
urlString query stringfalsenone
recursequerybooleanfalsetrue none
@@ -698,11 +591,12 @@ curl -X GET http://zap/JSON/alert/view/alertCountsByRisk

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -715,27 +609,26 @@ curl -X GET http://zap/JSON/alert/view/alertCountsByRisk - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertActionDeleteAllAlerts

-

+

acsrfActionSetOptionPartialMatchingEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/action/deleteAllAlerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/acsrf/action/setOptionPartialMatchingEnabled/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/alert/action/deleteAllAlerts/");
+
URL obj = new URL("http://zap/JSON/acsrf/action/setOptionPartialMatchingEnabled/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -751,34 +644,39 @@ curl -X GET http://zap/JSON/alert/action/deleteAllAlerts
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/alert/action/deleteAllAlerts/', params={
-
+r = requests.get('http://zap/JSON/acsrf/action/setOptionPartialMatchingEnabled/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/alert/action/deleteAllAlerts/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/acsrf/action/setOptionPartialMatchingEnabled/

-p JSON.parse(result) +

Define if ZAP should detect CSRF tokens by searching for partial matches.

-
-

GET /JSON/alert/action/deleteAllAlerts/

+

Parameters

-

Deletes all alerts of the current session.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone

Example responses

@@ -786,11 +684,12 @@ curl -X GET http://zap/JSON/alert/action/deleteAllAlerts

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -803,27 +702,26 @@ curl -X GET http://zap/JSON/alert/action/deleteAllAlerts - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

alertActionDeleteAlert

-

+

acsrfOtherGenForm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/alert/action/deleteAlert/?id=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/alert/action/deleteAlert/?id=0");
+
URL obj = new URL("http://zap/OTHER/acsrf/other/genForm/?hrefId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -839,37 +737,21 @@ curl -X GET http://zap/JSON/alert/action/deleteAlert/?id
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/alert/action/deleteAlert/', params={
-  'id': '0'
+r = requests.get('http://zap/OTHER/acsrf/other/genForm/', params={
+  'hrefId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/alert/action/deleteAlert/',
-  params: {
-  'id' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/alert/action/deleteAlert/

+

GET /OTHER/acsrf/other/genForm/

-

Deletes the alert with the given ID.

+

Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP

-

Parameters

+

Parameters

@@ -881,25 +763,99 @@ curl -X GET http://zap/JSON/alert/action/deleteAlert/?id - + - + - + + + + + + + + + +
idhrefId queryintegerstring truenoneDefine which request will be used
actionUrlquerystringfalseDefine the action URL to be used in the generated form
+ +
+

Example responses

+
+ +

Responses

+ + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of OTHER endpoints.None
+

Response Schema

+ + +

acsrfViewOptionPartialMatchingEnabled

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/acsrf/view/optionPartialMatchingEnabled/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/acsrf/view/optionPartialMatchingEnabled/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/acsrf/view/optionPartialMatchingEnabled/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/acsrf/view/optionPartialMatchingEnabled/

+ +

Define if ZAP should detect CSRF tokens by searching for partial matches

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -912,17 +868,15 @@ curl -X GET http://zap/JSON/alert/action/deleteAlert/?id - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

acsrf

acsrfViewOptionTokensNames

@@ -931,8 +885,7 @@ apiKeyHeader, apiKeyQuery
# You can also use wget
 curl -X GET http://zap/JSON/acsrf/view/optionTokensNames/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+  -H 'Accept: application/json'
 
 
URL obj = new URL("http://zap/JSON/acsrf/view/optionTokensNames/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
@@ -950,29 +903,12 @@ curl -X GET http://zap/JSON/acsrf/view/optionTokensNames
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/acsrf/view/optionTokensNames/', params={
+r = requests.get('http://zap/JSON/acsrf/view/optionTokensNames/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/acsrf/view/optionTokensNames/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 

GET /JSON/acsrf/view/optionTokensNames/

@@ -985,8 +921,9 @@ curl -X GET http://zap/JSON/acsrf/view/optionTokensNames

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 

Responses

@@ -1002,27 +939,28 @@ curl -X GET http://zap/JSON/acsrf/view/optionTokensNames default Default -unexpected error -Error +Error of JSON endpoints. +ErrorJson -

acsrfActionAddOptionToken

-

+ +

ajaxSpider

+

ajaxSpiderActionAddAllowedResource

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/acsrf/action/addOptionToken/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/addAllowedResource/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/acsrf/action/addOptionToken/?String=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/addAllowedResource/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1038,37 +976,21 @@ curl -X GET http://zap/JSON/acsrf/action/addOptionToken/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/acsrf/action/addOptionToken/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/action/addAllowedResource/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/acsrf/action/addOptionToken/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/acsrf/action/addOptionToken/

+

GET /JSON/ajaxSpider/action/addAllowedResource/

-

Adds an anti-CSRF token with the given name, enabled by default

+

Adds an allowed resource.

-

Parameters

+

Parameters

@@ -1080,11 +1002,18 @@ curl -X GET http://zap/JSON/acsrf/action/addOptionToken/ - + - + + + + + + + +
Stringregex query string truenoneThe regular expression of the allowed resource.
enabledquerystringfalseIf the allowed resource should be enabled or not.
@@ -1094,11 +1023,12 @@ curl -X GET http://zap/JSON/acsrf/action/addOptionToken/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1111,27 +1041,26 @@ curl -X GET http://zap/JSON/acsrf/action/addOptionToken/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

acsrfActionRemoveOptionToken

-

+

ajaxSpiderActionAddExcludedElement

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/acsrf/action/removeOptionToken/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/addExcludedElement/?contextName=string&description=string&element=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/acsrf/action/removeOptionToken/?String=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/addExcludedElement/?contextName=string&description=string&element=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1147,37 +1076,21 @@ curl -X GET http://zap/JSON/acsrf/action/removeOptionTok
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/acsrf/action/removeOptionToken/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/action/addExcludedElement/', params={
+  'contextName': 'string',  'description': 'string',  'element': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/acsrf/action/removeOptionToken/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/acsrf/action/removeOptionToken/

+

GET /JSON/ajaxSpider/action/addExcludedElement/

-

Removes the anti-CSRF token with the given name

+

Adds an excluded element to a context.

-

Parameters

+

Parameters

@@ -1189,11 +1102,60 @@ curl -X GET http://zap/JSON/acsrf/action/removeOptionTok - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
StringcontextName query string truenoneThe name of the context.
descriptionquerystringtrueThe description of the excluded element.
elementquerystringtrueThe element to exclude.
xpathquerystringfalseThe XPath of the element.
textquerystringfalseThe text of the element.
attributeNamequerystringfalseThe attribute name of the element.
attributeValuequerystringfalseThe attribute value of the element.
enabledquerystringfalseThe enabled state, true or false.
@@ -1203,11 +1165,12 @@ curl -X GET http://zap/JSON/acsrf/action/removeOptionTok

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1220,27 +1183,26 @@ curl -X GET http://zap/JSON/acsrf/action/removeOptionTok - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

acsrfOtherGenForm

-

+

ajaxSpiderActionModifyExcludedElement

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/modifyExcludedElement/?contextName=string&description=string&element=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/acsrf/other/genForm/?hrefId=0");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/modifyExcludedElement/?contextName=string&description=string&element=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1256,37 +1218,21 @@ curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/acsrf/other/genForm/', params={
-  'hrefId': '0'
+r = requests.get('http://zap/JSON/ajaxSpider/action/modifyExcludedElement/', params={
+  'contextName': 'string',  'description': 'string',  'element': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/acsrf/other/genForm/',
-  params: {
-  'hrefId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/acsrf/other/genForm/

+

GET /JSON/ajaxSpider/action/modifyExcludedElement/

-

Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP

+

Modifies an excluded element of a context.

-

Parameters

+

Parameters

@@ -1298,11 +1244,67 @@ curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hrefIdcontextName queryintegerstring truenoneThe name of the context.
descriptionquerystringtrueThe description of the excluded element.
elementquerystringtrueThe element to exclude.
descriptionNewquerystringfalseThe new description.
xpathquerystringfalseThe XPath of the element.
textquerystringfalseThe text of the element.
attributeNamequerystringfalseThe attribute name of the element.
attributeValuequerystringfalseThe attribute value of the element.
enabledquerystringfalseThe enabled state, true or false.
@@ -1312,11 +1314,12 @@ curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1329,29 +1332,26 @@ curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

pscan

-

pscanViewScanOnlyInScope

-

+

ajaxSpiderActionRemoveAllowedResource

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/removeAllowedResource/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/view/scanOnlyInScope/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/removeAllowedResource/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1367,34 +1367,39 @@ curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/view/scanOnlyInScope/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/removeAllowedResource/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/pscan/view/scanOnlyInScope/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/removeAllowedResource/

-p JSON.parse(result) +

Removes an allowed resource.

-
-

GET /JSON/pscan/view/scanOnlyInScope/

+

Parameters

-

Tells whether or not the passive scan should be performed only on messages that are in scope.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
regexquerystringtrueThe regular expression of the allowed resource.

Example responses

@@ -1402,11 +1407,12 @@ curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1419,27 +1425,26 @@ curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanViewRecordsToScan

-

+

ajaxSpiderActionRemoveExcludedElement

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/view/recordsToScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/removeExcludedElement/?contextName=string&description=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/view/recordsToScan/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/removeExcludedElement/?contextName=string&description=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1455,34 +1460,46 @@ curl -X GET http://zap/JSON/pscan/view/recordsToScan/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/view/recordsToScan/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/removeExcludedElement/', params={
+  'contextName': 'string',  'description': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/pscan/view/recordsToScan/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/removeExcludedElement/

-p JSON.parse(result) +

Removes an excluded element from a context.

-
-

GET /JSON/pscan/view/recordsToScan/

+

Parameters

-

The number of records the passive scanner still has to scan

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context.
descriptionquerystringtrueThe description of the excluded element.

Example responses

@@ -1490,11 +1507,12 @@ curl -X GET http://zap/JSON/pscan/view/recordsToScan/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1507,27 +1525,26 @@ curl -X GET http://zap/JSON/pscan/view/recordsToScan/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanViewScanners

-

+

ajaxSpiderActionScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/view/scanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/scan/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/view/scanners/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/scan/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1543,34 +1560,58 @@ curl -X GET http://zap/JSON/pscan/view/scanners/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/view/scanners/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/ajaxSpider/action/scan/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/view/scanners/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/scan/

-p JSON.parse(result) +

Runs the AJAX Spider against a given target.

-
-

GET /JSON/pscan/view/scanners/

+

Parameters

-

Lists all passive scanners with its ID, name, enabled state and alert threshold.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalseThe starting URL (needs to include the 'scheme').
inScopequerystringfalseA boolean (true/false) indicating whether or not the scan should be restricted to 'inScope' only resources (default value is false).
contextNamequerystringfalseThe name for any defined context. If the value does not match a defined context then an error will occur.
subtreeOnlyquerystringfalseA boolean (true/false) indicating whether or not the crawl should be constrained to a specific path (default value is false).

Example responses

@@ -1578,11 +1619,12 @@ curl -X GET http://zap/JSON/pscan/view/scanners/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1595,27 +1637,26 @@ curl -X GET http://zap/JSON/pscan/view/scanners/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanViewCurrentRule

-

+

ajaxSpiderActionScanAsUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/view/currentRule/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/scanAsUser/?contextName=string&userName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/view/currentRule/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/scanAsUser/?contextName=string&userName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1631,34 +1672,60 @@ curl -X GET http://zap/JSON/pscan/view/currentRule/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/view/currentRule/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/scanAsUser/', params={
+  'contextName': 'string',  'userName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/view/currentRule/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/scanAsUser/

-p JSON.parse(result) +

Runs the AJAX Spider from the perspective of a User of the web application.

-
-

GET /JSON/pscan/view/currentRule/

+

Parameters

-

Show information about the passive scan rule currently being run (if any).

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name for any defined context. If the value does not match a defined context then an error will occur.
userNamequerystringtrueThe name of the user to be used when crawling. The "userName" should be previously defined on the context configuration.
urlquerystringfalseThe starting URL (needs to include the 'scheme').
subtreeOnlyquerystringfalseA boolean (true/false) indicating whether or not the crawl should be constrained to a specific path (default value is false).

Example responses

@@ -1666,11 +1733,12 @@ curl -X GET http://zap/JSON/pscan/view/currentRule/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1683,27 +1751,26 @@ curl -X GET http://zap/JSON/pscan/view/currentRule/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanViewMaxAlertsPerRule

-

+

ajaxSpiderActionSetEnabledAllowedResource

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setEnabledAllowedResource/?regex=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/view/maxAlertsPerRule/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setEnabledAllowedResource/?regex=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1719,34 +1786,46 @@ curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/view/maxAlertsPerRule/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/setEnabledAllowedResource/', params={
+  'regex': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/view/maxAlertsPerRule/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/setEnabledAllowedResource/

-p JSON.parse(result) +

Sets whether or not an allowed resource is enabled.

- -

GET /JSON/pscan/view/maxAlertsPerRule/

+

Parameters

-

Gets the maximum number of alerts a passive scan rule should raise.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
regexquerystringtrueThe regular expression of the allowed resource.
enabledquerystringtrueIf the allowed resource should be enabled or not.

Example responses

@@ -1754,11 +1833,12 @@ curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1771,27 +1851,26 @@ curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionSetEnabled

-

+

ajaxSpiderActionSetOptionBrowserId

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/setEnabled/?enabled=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionBrowserId/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/setEnabled/?enabled=true");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionBrowserId/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1807,37 +1886,21 @@ curl -X GET http://zap/JSON/pscan/action/setEnabled/?ena
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/setEnabled/', params={
-  'enabled': 'true'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionBrowserId/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/setEnabled/',
-  params: {
-  'enabled' => 'boolean'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/setEnabled/

+

GET /JSON/ajaxSpider/action/setOptionBrowserId/

-

Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).

+

Sets the configuration of the AJAX Spider to use one of the supported browsers.

-

Parameters

+

Parameters

@@ -1849,11 +1912,11 @@ curl -X GET http://zap/JSON/pscan/action/setEnabled/?ena - + - + - +
enabledString querybooleanstring truenoneThe name of the browser to be used by the AJAX Spider. (See the Selenium add-on help for a list of supported browsers.)
@@ -1863,11 +1926,12 @@ curl -X GET http://zap/JSON/pscan/action/setEnabled/?ena

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1880,27 +1944,26 @@ curl -X GET http://zap/JSON/pscan/action/setEnabled/?ena - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionSetScanOnlyInScope

-

+

ajaxSpiderActionSetOptionClickDefaultElems

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionClickDefaultElems/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=true");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionClickDefaultElems/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -1916,37 +1979,21 @@ curl -X GET http://zap/JSON/pscan/action/setScanOnlyInSc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/setScanOnlyInScope/', params={
-  'onlyInScope': 'true'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionClickDefaultElems/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/setScanOnlyInScope/',
-  params: {
-  'onlyInScope' => 'boolean'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/setScanOnlyInScope/

+

GET /JSON/ajaxSpider/action/setOptionClickDefaultElems/

-

Sets whether or not the passive scan should be performed only on messages that are in scope.

+

Sets whether or not the the AJAX Spider will only click on the default HTML elements.

-

Parameters

+

Parameters

@@ -1958,11 +2005,11 @@ curl -X GET http://zap/JSON/pscan/action/setScanOnlyInSc - + - +
onlyInScopeBoolean query boolean truenoneA boolean (true/false) indicating if only default elements such as 'a' 'button' 'input' should be clicked (default is true).
@@ -1972,11 +2019,12 @@ curl -X GET http://zap/JSON/pscan/action/setScanOnlyInSc

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -1989,27 +2037,26 @@ curl -X GET http://zap/JSON/pscan/action/setScanOnlyInSc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionEnableAllScanners

-

+

ajaxSpiderActionSetOptionClickElemsOnce

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/enableAllScanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionClickElemsOnce/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/enableAllScanners/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionClickElemsOnce/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2025,34 +2072,39 @@ curl -X GET http://zap/JSON/pscan/action/enableAllScanne
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/enableAllScanners/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionClickElemsOnce/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/enableAllScanners/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/setOptionClickElemsOnce/

-p JSON.parse(result) +

When enabled, the crawler attempts to interact with each element (e.g., by clicking) only once.

- -

GET /JSON/pscan/action/enableAllScanners/

+

Parameters

-

Enables all passive scanners

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
BooleanquerybooleantrueA boolean (true/false) indicating whether or not the AJAX Spider should only click on elements once. If this is set to false, the crawler will attempt to click multiple times; which is more rigorous but may take considerably more time (default is true).

Example responses

@@ -2060,11 +2112,12 @@ curl -X GET http://zap/JSON/pscan/action/enableAllScanne

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2077,27 +2130,26 @@ curl -X GET http://zap/JSON/pscan/action/enableAllScanne - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionDisableAllScanners

-

+

ajaxSpiderActionSetOptionEventWait

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/disableAllScanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionEventWait/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/disableAllScanners/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionEventWait/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2113,34 +2165,39 @@ curl -X GET http://zap/JSON/pscan/action/disableAllScann
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/disableAllScanners/', params={
-
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionEventWait/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/pscan/action/disableAllScanners/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/action/setOptionEventWait/

-p JSON.parse(result) +

Sets the time to wait after an event (in milliseconds). For example: the wait delay after the cursor hovers over an element, in order for a menu to display, etc.

- -

GET /JSON/pscan/action/disableAllScanners/

+

Parameters

-

Disables all passive scanners

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
IntegerqueryintegertrueThe time that the AJAX Spider should wait for each event (default is 1000 milliseconds).

Example responses

@@ -2148,11 +2205,12 @@ curl -X GET http://zap/JSON/pscan/action/disableAllScann

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2165,27 +2223,26 @@ curl -X GET http://zap/JSON/pscan/action/disableAllScann - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionEnableScanners

-

+

ajaxSpiderActionSetOptionMaxCrawlDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/enableScanners/?ids=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlDepth/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/enableScanners/?ids=0");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlDepth/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2201,37 +2258,21 @@ curl -X GET http://zap/JSON/pscan/action/enableScanners/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/enableScanners/', params={
-  'ids': '0'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlDepth/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/enableScanners/',
-  params: {
-  'ids' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/enableScanners/

+

GET /JSON/ajaxSpider/action/setOptionMaxCrawlDepth/

-

Enables all passive scanners with the given IDs (comma separated list of IDs)

+

Sets the maximum depth that the crawler can reach.

-

Parameters

+

Parameters

@@ -2243,11 +2284,11 @@ curl -X GET http://zap/JSON/pscan/action/enableScanners/ - + - +
idsInteger query integer truenoneThe maximum depth that the crawler should explore (zero means unlimited depth, default is 10).
@@ -2257,11 +2298,12 @@ curl -X GET http://zap/JSON/pscan/action/enableScanners/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2274,27 +2316,26 @@ curl -X GET http://zap/JSON/pscan/action/enableScanners/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionDisableScanners

-

+

ajaxSpiderActionSetOptionMaxCrawlStates

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/disableScanners/?ids=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlStates/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/disableScanners/?ids=0");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlStates/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2310,37 +2351,21 @@ curl -X GET http://zap/JSON/pscan/action/disableScanners
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/disableScanners/', params={
-  'ids': '0'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionMaxCrawlStates/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/disableScanners/',
-  params: {
-  'ids' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/disableScanners/

+

GET /JSON/ajaxSpider/action/setOptionMaxCrawlStates/

-

Disables all passive scanners with the given IDs (comma separated list of IDs)

+

Sets the maximum number of states that the crawler should crawl.

-

Parameters

+

Parameters

@@ -2352,11 +2377,11 @@ curl -X GET http://zap/JSON/pscan/action/disableScanners - + - +
idsInteger query integer truenoneThe maximum number of states that the AJAX Spider should explore (zero means unlimited crawl states, default is 0)
@@ -2366,11 +2391,12 @@ curl -X GET http://zap/JSON/pscan/action/disableScanners

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2383,27 +2409,26 @@ curl -X GET http://zap/JSON/pscan/action/disableScanners - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionSetScannerAlertThreshold

-

+

ajaxSpiderActionSetOptionMaxDuration

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=0&alertThreshold=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionMaxDuration/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=0&alertThreshold=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionMaxDuration/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2419,38 +2444,21 @@ curl -X GET http://zap/JSON/pscan/action/setScannerAlert
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/setScannerAlertThreshold/', params={
-  'id': '0',  'alertThreshold': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionMaxDuration/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/setScannerAlertThreshold/',
-  params: {
-  'id' => 'integer',
-'alertThreshold' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/setScannerAlertThreshold/

+

GET /JSON/ajaxSpider/action/setOptionMaxDuration/

-

Sets the alert threshold of the passive scanner with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH

+

The maximum time that the crawler is allowed to run.

-

Parameters

+

Parameters

@@ -2462,18 +2470,11 @@ curl -X GET http://zap/JSON/pscan/action/setScannerAlert - + - - - - - - - - +
idInteger query integer truenone
alertThresholdquerystringtruenoneThe maximum amount of time that the AJAX Spider is allowed to run (zero means unlimited running time, default is 60 minutes).
@@ -2483,11 +2484,12 @@ curl -X GET http://zap/JSON/pscan/action/setScannerAlert

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2500,27 +2502,26 @@ curl -X GET http://zap/JSON/pscan/action/setScannerAlert - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

pscanActionSetMaxAlertsPerRule

-

+

ajaxSpiderActionSetOptionNumberOfBrowsers

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionNumberOfBrowsers/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=0");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionNumberOfBrowsers/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2536,37 +2537,21 @@ curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPer
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/pscan/action/setMaxAlertsPerRule/', params={
-  'maxAlerts': '0'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionNumberOfBrowsers/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/pscan/action/setMaxAlertsPerRule/',
-  params: {
-  'maxAlerts' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/pscan/action/setMaxAlertsPerRule/

+

GET /JSON/ajaxSpider/action/setOptionNumberOfBrowsers/

-

Sets the maximum number of alerts a passive scan rule should raise.

+

Sets the number of windows to be used by AJAX Spider.

-

Parameters

+

Parameters

@@ -2578,11 +2563,11 @@ curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPer - + - +
maxAlertsInteger query integer truenoneThe number of windows that the AJAX Spider can use. The more windows, the faster the process will be. However, more windows also means greater resource usage (CPU, Memory, etc), and could lead to concurrency issues depending on the app being explored (default is 1).
@@ -2592,11 +2577,12 @@ curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPer

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2609,29 +2595,26 @@ curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPer - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

search

-

searchViewUrlsByUrlRegex

-

+

ajaxSpiderActionSetOptionRandomInputs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionRandomInputs/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/urlsByUrlRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionRandomInputs/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2647,37 +2630,21 @@ curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/search/view/urlsByUrlRegex/', params={
-  'regex': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionRandomInputs/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/search/view/urlsByUrlRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/urlsByUrlRegex/

+

GET /JSON/ajaxSpider/action/setOptionRandomInputs/

-

Returns the URLs of the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

When enabled, inserts random values into form fields.

-

Parameters

+

Parameters

@@ -2689,32 +2656,11 @@ curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/? - + - + - - - - - - - - - - - - - - - - - - - - - - +
regexBoolean querystringboolean truenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenoneA boolean (true/false) indicating whether or not random values should be use in form fields. Otherwise, empty values are submitted (default is true).
@@ -2724,11 +2670,12 @@ curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2741,27 +2688,26 @@ curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewUrlsByRequestRegex

-

+

ajaxSpiderActionSetOptionReloadWait

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/urlsByRequestRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/setOptionReloadWait/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/urlsByRequestRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/setOptionReloadWait/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2777,37 +2723,21 @@ curl -X GET http://zap/JSON/search/view/urlsByRequestReg
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/search/view/urlsByRequestRegex/', params={
-  'regex': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/action/setOptionReloadWait/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/search/view/urlsByRequestRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/urlsByRequestRegex/

+

GET /JSON/ajaxSpider/action/setOptionReloadWait/

-

Returns the URLs of the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

Sets the time to wait after the page is loaded before interacting with it.

-

Parameters

+

Parameters

@@ -2819,32 +2749,11 @@ curl -X GET http://zap/JSON/search/view/urlsByRequestReg - - - - - - - - - - - - - - - - - - - - - - + - - + +
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countInteger query integerfalsenonetrueThe number of milliseconds the AJAX Spider should wait after a page is loaded (default is 1000).
@@ -2854,11 +2763,12 @@ curl -X GET http://zap/JSON/search/view/urlsByRequestReg

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -2871,27 +2781,26 @@ curl -X GET http://zap/JSON/search/view/urlsByRequestReg - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewUrlsByResponseRegex

-

+

ajaxSpiderActionStop

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/urlsByResponseRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/action/stop/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/urlsByResponseRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/action/stop/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -2907,76 +2816,17 @@ curl -X GET http://zap/JSON/search/view/urlsByResponseRe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/search/view/urlsByResponseRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/search/view/urlsByResponseRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/action/stop/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/urlsByResponseRegex/

- -

Returns the URLs of the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

GET /JSON/ajaxSpider/action/stop/

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Stops the AJAX Spider.

Example responses

@@ -2984,11 +2834,12 @@ curl -X GET http://zap/JSON/search/view/urlsByResponseRe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3001,27 +2852,26 @@ curl -X GET http://zap/JSON/search/view/urlsByResponseRe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewUrlsByHeaderRegex

-

+

ajaxSpiderViewAllowedResources

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/allowedResources/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/allowedResources/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3037,76 +2887,17 @@ curl -X GET http://zap/JSON/search/view/urlsByHeaderRege
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/search/view/urlsByHeaderRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/search/view/urlsByHeaderRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/allowedResources/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/urlsByHeaderRegex/

- -

Returns the URLs of the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

+

GET /JSON/ajaxSpider/view/allowedResources/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the allowed resources. The allowed resources are always fetched even if out of scope, allowing to include necessary resources (e.g. scripts) from 3rd-parties.

Example responses

@@ -3114,11 +2905,12 @@ curl -X GET http://zap/JSON/search/view/urlsByHeaderRege

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3131,27 +2923,26 @@ curl -X GET http://zap/JSON/search/view/urlsByHeaderRege - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewMessagesByUrlRegex

-

+

ajaxSpiderViewExcludedElements

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/messagesByUrlRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/excludedElements/?contextName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/messagesByUrlRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/excludedElements/?contextName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3167,37 +2958,21 @@ curl -X GET http://zap/JSON/search/view/messagesByUrlReg
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/search/view/messagesByUrlRegex/', params={
-  'regex': 'string'
+r = requests.get('http://zap/JSON/ajaxSpider/view/excludedElements/', params={
+  'contextName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/search/view/messagesByUrlRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/messagesByUrlRegex/

+

GET /JSON/ajaxSpider/view/excludedElements/

-

Returns the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

Gets the excluded elements. The excluded elements are not clicked during crawling, for example, to prevent logging out.

-

Parameters

+

Parameters

@@ -3209,32 +2984,11 @@ curl -X GET http://zap/JSON/search/view/messagesByUrlReg - + - - - - - - - - - - - - - - - - - - - - - - +
regexcontextName query string truenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenoneThe name of the context.
@@ -3244,11 +2998,12 @@ curl -X GET http://zap/JSON/search/view/messagesByUrlReg

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3261,27 +3016,26 @@ curl -X GET http://zap/JSON/search/view/messagesByUrlReg - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewMessagesByRequestRegex

-

+

ajaxSpiderViewFullResults

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/messagesByRequestRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/fullResults/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/messagesByRequestRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/fullResults/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3297,76 +3051,17 @@ curl -X GET http://zap/JSON/search/view/messagesByReques
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/search/view/messagesByRequestRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/search/view/messagesByRequestRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/fullResults/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/messagesByRequestRegex/

- -

Returns the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

+

GET /JSON/ajaxSpider/view/fullResults/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the full crawled content detected by the AJAX Spider. Returns a set of values based on 'inScope' URLs, 'outOfScope' URLs, and 'errors' encountered during the last/current run of the AJAX Spider.

Example responses

@@ -3374,11 +3069,12 @@ curl -X GET http://zap/JSON/search/view/messagesByReques

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3391,27 +3087,26 @@ curl -X GET http://zap/JSON/search/view/messagesByReques - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewMessagesByResponseRegex

-

+

ajaxSpiderViewNumberOfResults

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/messagesByResponseRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/numberOfResults/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/messagesByResponseRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/numberOfResults/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3427,76 +3122,17 @@ curl -X GET http://zap/JSON/search/view/messagesByRespon
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/search/view/messagesByResponseRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/ajaxSpider/view/numberOfResults/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/search/view/messagesByResponseRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/search/view/messagesByResponseRegex/

- -

Returns the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

GET /JSON/ajaxSpider/view/numberOfResults/

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the number of resources found.

Example responses

@@ -3504,11 +3140,12 @@ curl -X GET http://zap/JSON/search/view/messagesByRespon

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3521,27 +3158,26 @@ curl -X GET http://zap/JSON/search/view/messagesByRespon - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchViewMessagesByHeaderRegex

-

+

ajaxSpiderViewOptionBrowserId

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionBrowserId/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionBrowserId/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3557,76 +3193,17 @@ curl -X GET http://zap/JSON/search/view/messagesByHeader
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/search/view/messagesByHeaderRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionBrowserId/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/ajaxSpider/view/optionBrowserId/

-result = RestClient.get 'http://zap/JSON/search/view/messagesByHeaderRegex/', - params: { - 'regex' => 'string' -}, headers: headers - -p JSON.parse(result) - - -

GET /JSON/search/view/messagesByHeaderRegex/

- -

Returns the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the configured browser to use for crawling.

Example responses

@@ -3634,11 +3211,12 @@ curl -X GET http://zap/JSON/search/view/messagesByHeader

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3651,27 +3229,26 @@ curl -X GET http://zap/JSON/search/view/messagesByHeader - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchOtherHarByUrlRegex

-

+

ajaxSpiderViewOptionClickDefaultElems

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/search/other/harByUrlRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionClickDefaultElems/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/search/other/harByUrlRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionClickDefaultElems/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3687,76 +3264,17 @@ curl -X GET http://zap/OTHER/search/other/harByUrlRegex/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/search/other/harByUrlRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/search/other/harByUrlRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionClickDefaultElems/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/search/other/harByUrlRegex/

- -

Returns the HTTP messages, in HAR format, that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+

GET /JSON/ajaxSpider/view/optionClickDefaultElems/

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the configured value for 'Click Default Elements Only', HTML elements such as 'a', 'button', 'input', all associated with some action or links on the page.

Example responses

@@ -3764,11 +3282,12 @@ curl -X GET http://zap/OTHER/search/other/harByUrlRegex/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3781,27 +3300,26 @@ curl -X GET http://zap/OTHER/search/other/harByUrlRegex/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchOtherHarByRequestRegex

-

+

ajaxSpiderViewOptionClickElemsOnce

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/search/other/harByRequestRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionClickElemsOnce/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/search/other/harByRequestRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionClickElemsOnce/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3817,76 +3335,17 @@ curl -X GET http://zap/OTHER/search/other/harByRequestRe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/search/other/harByRequestRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/search/other/harByRequestRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionClickElemsOnce/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/search/other/harByRequestRegex/

- -

Returns the HTTP messages, in HAR format, that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

+

GET /JSON/ajaxSpider/view/optionClickElemsOnce/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the value configured for the AJAX Spider to know if it should click on the elements only once.

Example responses

@@ -3894,11 +3353,12 @@ curl -X GET http://zap/OTHER/search/other/harByRequestRe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -3911,27 +3371,26 @@ curl -X GET http://zap/OTHER/search/other/harByRequestRe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchOtherHarByResponseRegex

-

+

ajaxSpiderViewOptionEventWait

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/search/other/harByResponseRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionEventWait/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/search/other/harByResponseRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionEventWait/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -3947,76 +3406,17 @@ curl -X GET http://zap/OTHER/search/other/harByResponseR
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/search/other/harByResponseRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/search/other/harByResponseRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionEventWait/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/search/other/harByResponseRegex/

+

GET /JSON/ajaxSpider/view/optionEventWait/

-

Returns the HTTP messages, in HAR format, that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the time to wait after an event (in milliseconds). For example: the wait delay after the cursor hovers over an element, in order for a menu to display, etc.

Example responses

@@ -4024,11 +3424,12 @@ curl -X GET http://zap/OTHER/search/other/harByResponseR

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4041,27 +3442,26 @@ curl -X GET http://zap/OTHER/search/other/harByResponseR - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

searchOtherHarByHeaderRegex

-

+

ajaxSpiderViewOptionMaxCrawlDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/search/other/harByHeaderRegex/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionMaxCrawlDepth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/search/other/harByHeaderRegex/?regex=string");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionMaxCrawlDepth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4077,76 +3477,17 @@ curl -X GET http://zap/OTHER/search/other/harByHeaderReg
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/search/other/harByHeaderRegex/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/search/other/harByHeaderRegex/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionMaxCrawlDepth/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/search/other/harByHeaderRegex/

- -

Returns the HTTP messages, in HAR format, that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

- -

Parameters

+

GET /JSON/ajaxSpider/view/optionMaxCrawlDepth/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
baseurlquerystringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsenone
+

Gets the configured value for the max crawl depth.

Example responses

@@ -4154,11 +3495,12 @@ curl -X GET http://zap/OTHER/search/other/harByHeaderReg

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4171,29 +3513,26 @@ curl -X GET http://zap/OTHER/search/other/harByHeaderReg - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

autoupdate

-

autoupdateViewLatestVersionNumber

-

+

ajaxSpiderViewOptionMaxCrawlStates

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/latestVersionNumber/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionMaxCrawlStates/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/latestVersionNumber/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionMaxCrawlStates/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4209,34 +3548,17 @@ curl -X GET http://zap/JSON/autoupdate/view/latestVersio
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/latestVersionNumber/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/latestVersionNumber/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionMaxCrawlStates/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/latestVersionNumber/

+

GET /JSON/ajaxSpider/view/optionMaxCrawlStates/

-

Returns the latest version number

+

Gets the configured value for the maximum crawl states allowed.

Example responses

@@ -4244,11 +3566,12 @@ curl -X GET http://zap/JSON/autoupdate/view/latestVersio

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4261,27 +3584,26 @@ curl -X GET http://zap/JSON/autoupdate/view/latestVersio - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewIsLatestVersion

-

+

ajaxSpiderViewOptionMaxDuration

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/isLatestVersion/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionMaxDuration/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/isLatestVersion/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionMaxDuration/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4297,34 +3619,17 @@ curl -X GET http://zap/JSON/autoupdate/view/isLatestVers
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/isLatestVersion/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/isLatestVersion/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionMaxDuration/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/isLatestVersion/

+

GET /JSON/ajaxSpider/view/optionMaxDuration/

-

Returns 'true' if ZAP is on the latest version

+

Gets the configured max duration of the crawl, the value is in minutes.

Example responses

@@ -4332,11 +3637,12 @@ curl -X GET http://zap/JSON/autoupdate/view/isLatestVers

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4349,27 +3655,26 @@ curl -X GET http://zap/JSON/autoupdate/view/isLatestVers - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewInstalledAddons

-

+

ajaxSpiderViewOptionNumberOfBrowsers

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/installedAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionNumberOfBrowsers/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/installedAddons/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionNumberOfBrowsers/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4385,34 +3690,17 @@ curl -X GET http://zap/JSON/autoupdate/view/installedAdd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/installedAddons/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/installedAddons/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionNumberOfBrowsers/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/installedAddons/

+

GET /JSON/ajaxSpider/view/optionNumberOfBrowsers/

-

Return a list of all of the installed add-ons

+

Gets the configured number of browsers to be used.

Example responses

@@ -4420,11 +3708,12 @@ curl -X GET http://zap/JSON/autoupdate/view/installedAdd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4437,27 +3726,26 @@ curl -X GET http://zap/JSON/autoupdate/view/installedAdd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewLocalAddons

-

+

ajaxSpiderViewOptionRandomInputs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/localAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionRandomInputs/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/localAddons/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionRandomInputs/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4473,34 +3761,17 @@ curl -X GET http://zap/JSON/autoupdate/view/localAddons/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/localAddons/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/localAddons/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionRandomInputs/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/localAddons/

+

GET /JSON/ajaxSpider/view/optionRandomInputs/

-

Returns a list with all local add-ons, installed or not.

+

Gets if the AJAX Spider will use random values in form fields when crawling, if set to true.

Example responses

@@ -4508,11 +3779,12 @@ curl -X GET http://zap/JSON/autoupdate/view/localAddons/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4525,27 +3797,26 @@ curl -X GET http://zap/JSON/autoupdate/view/localAddons/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewNewAddons

-

+

ajaxSpiderViewOptionReloadWait

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/newAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/optionReloadWait/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/newAddons/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/optionReloadWait/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4561,34 +3832,17 @@ curl -X GET http://zap/JSON/autoupdate/view/newAddons/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/newAddons/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/newAddons/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/optionReloadWait/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/newAddons/

+

GET /JSON/ajaxSpider/view/optionReloadWait/

-

Return a list of any add-ons that have been added to the Marketplace since the last check for updates

+

Gets the configured time to wait after reloading the page, this value is in milliseconds.

Example responses

@@ -4596,11 +3850,12 @@ curl -X GET http://zap/JSON/autoupdate/view/newAddons/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4613,27 +3868,26 @@ curl -X GET http://zap/JSON/autoupdate/view/newAddons/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewUpdatedAddons

-

+

ajaxSpiderViewResults

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/updatedAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/results/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/updatedAddons/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/results/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4649,34 +3903,44 @@ curl -X GET http://zap/JSON/autoupdate/view/updatedAddon
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/updatedAddons/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/ajaxSpider/view/results/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/view/updatedAddons/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ajaxSpider/view/results/

-p JSON.parse(result) +

Gets the current results of the crawler.

- -

GET /JSON/autoupdate/view/updatedAddons/

+

Parameters

-

Return a list of any add-ons that have been changed in the Marketplace since the last check for updates

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
startquerystringfalseThe position (or offset) within the results to use as a starting position for the information returned.
countquerystringfalseThe number of results to return.

Example responses

@@ -4684,11 +3948,12 @@ curl -X GET http://zap/JSON/autoupdate/view/updatedAddon

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4701,27 +3966,26 @@ curl -X GET http://zap/JSON/autoupdate/view/updatedAddon - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewMarketplaceAddons

-

+

ajaxSpiderViewStatus

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/marketplaceAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ajaxSpider/view/status/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/marketplaceAddons/");
+
URL obj = new URL("http://zap/JSON/ajaxSpider/view/status/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4737,34 +4001,17 @@ curl -X GET http://zap/JSON/autoupdate/view/marketplaceA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/marketplaceAddons/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/marketplaceAddons/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ajaxSpider/view/status/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/marketplaceAddons/

+

GET /JSON/ajaxSpider/view/status/

-

Return a list of all of the add-ons on the ZAP Marketplace (this information is read once and then cached)

+

Gets the current status of the crawler. Actual values are Stopped and Running.

Example responses

@@ -4772,11 +4019,12 @@ curl -X GET http://zap/JSON/autoupdate/view/marketplaceA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4789,27 +4037,28 @@ curl -X GET http://zap/JSON/autoupdate/view/marketplaceA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionAddonDirectories

-

+ +

alert

+

alertActionAddAlert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionAddonDirectories/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/addAlert/?messageId=string&name=string&riskId=string&confidenceId=string&description=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionAddonDirectories/");
+
URL obj = new URL("http://zap/JSON/alert/action/addAlert/?messageId=string&name=string&riskId=string&confidenceId=string&description=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4825,32 +4074,123 @@ curl -X GET http://zap/JSON/autoupdate/view/optionAddonD
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionAddonDirectories/', params={
-
+r = requests.get('http://zap/JSON/alert/action/addAlert/', params={
+  'messageId': 'string',  'name': 'string',  'riskId': 'string',  'confidenceId': 'string',  'description': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/addAlert/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionAddonDirectories/', - params: { - }, headers: headers +

Add an alert associated with the given message ID, with the provided details. (The ID of the created alert is returned.)

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionAddonDirectories/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
messageIdquerystringtrueThe ID of the message to which the alert should be associated.
namequerystringtrueThe name of the alert.
riskIdquerystringtrueThe numeric risk representation ('0 - Informational' through '3 - High').
confidenceIdquerystringtrueThe numeric confidence representation ('1 - Low' through '3 - High' [user set values '0 - False Positive', and '4 - User Confirmed' are also available]).
descriptionquerystringtrueThe description to be set to the alert.
paramquerystringfalseThe name of the parameter applicable to the alert.
attackquerystringfalseThe attack (ex: injected string) used by the scan rule.
otherInfoquerystringfalseOther information about the alert or test.
solutionquerystringfalseThe solution for the alert.
referencesquerystringfalseThe reference details for the alert.
evidencequerystringfalseThe evidence associated with the alert.
cweIdquerystringfalseThe CWE identifier associated with the alert.
wascIdquerystringfalseThe WASC identifier associated with the alert.

Example responses

@@ -4858,11 +4198,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionAddonD

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4875,27 +4216,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionAddonD - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionDayLastChecked

-

+

alertActionDeleteAlert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionDayLastChecked/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/deleteAlert/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastChecked/");
+
URL obj = new URL("http://zap/JSON/alert/action/deleteAlert/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4911,32 +4251,39 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastChecked/', params={
-
+r = requests.get('http://zap/JSON/alert/action/deleteAlert/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/deleteAlert/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastChecked/', - params: { - }, headers: headers +

Deletes the alert with the given ID.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionDayLastChecked/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone

Example responses

@@ -4944,11 +4291,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -4961,27 +4309,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionDayLastInstallWarned

-

+

alertActionDeleteAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/deleteAlerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/");
+
URL obj = new URL("http://zap/JSON/alert/action/deleteAlerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -4997,32 +4344,51 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/alert/action/deleteAlerts/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/deleteAlerts/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/', - params: { - }, headers: headers +

Deletes all the alerts optionally filtered by URL which fall within the Context with the provided name, risk, or base URL.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionDayLastInstallWarned/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringfalseThe name of the Context for which the alerts should be deleted.
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be deleted.
riskIdquerystringfalseThe numeric risk representation ('0 - Informational' through '3 - High').

Example responses

@@ -5030,11 +4396,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5047,27 +4414,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionDayLastUpdateWarned

-

+

alertActionDeleteAllAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/deleteAllAlerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/");
+
URL obj = new URL("http://zap/JSON/alert/action/deleteAllAlerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5083,32 +4449,17 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/alert/action/deleteAllAlerts/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/view/optionDayLastUpdateWarned/

+

GET /JSON/alert/action/deleteAllAlerts/

+ +

Deletes all alerts of the current session.

Example responses

@@ -5116,11 +4467,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5133,27 +4485,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDayLas - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionDownloadDirectory

-

+

alertActionUpdateAlert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionDownloadDirectory/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/updateAlert/?id=string&name=string&riskId=string&confidenceId=string&description=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadDirectory/");
+
URL obj = new URL("http://zap/JSON/alert/action/updateAlert/?id=string&name=string&riskId=string&confidenceId=string&description=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5169,32 +4520,123 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadDirectory/', params={
-
+r = requests.get('http://zap/JSON/alert/action/updateAlert/', params={
+  'id': 'string',  'name': 'string',  'riskId': 'string',  'confidenceId': 'string',  'description': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/updateAlert/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDownloadDirectory/', - params: { - }, headers: headers +

Update the alert with the given ID, with the provided details.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionDownloadDirectory/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtrueThe ID of the alert to update.
namequerystringtrueThe name of the alert.
riskIdquerystringtrueThe numeric risk representation ('0 - Informational' through '3 - High').
confidenceIdquerystringtrueThe numeric confidence representation ('1 - Low' through '3 - High' [user set values '0 - False Positive', and '4 - User Confirmed' are also available]).
descriptionquerystringtrueThe description to be set to the alert.
paramquerystringfalseThe name of the parameter applicable to the alert.
attackquerystringfalseThe attack (ex: injected string) used by the scan rule.
otherInfoquerystringfalseOther information about the alert or test.
solutionquerystringfalseThe solution for the alert.
referencesquerystringfalseThe reference details for the alert.
evidencequerystringfalseThe evidence associated with the alert.
cweIdquerystringfalseThe CWE identifier associated with the alert.
wascIdquerystringfalseThe WASC identifier associated with the alert.

Example responses

@@ -5202,11 +4644,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5219,27 +4662,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionCheckAddonUpdates

-

+

alertActionUpdateAlertsConfidence

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/updateAlertsConfidence/?ids=string&confidenceId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/");
+
URL obj = new URL("http://zap/JSON/alert/action/updateAlertsConfidence/?ids=string&confidenceId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5255,32 +4697,46 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/', params={
-
+r = requests.get('http://zap/JSON/alert/action/updateAlertsConfidence/', params={
+  'ids': 'string',  'confidenceId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/updateAlertsConfidence/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/', - params: { - }, headers: headers +

Update the confidence of the alerts.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionCheckAddonUpdates/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtrueThe IDs of the alerts to update (comma separated values).
confidenceIdquerystringtrueThe numeric confidence representation ('1 - Low' through '3 - High' [user set values '0 - False Positive', and '4 - User Confirmed' are also available]).

Example responses

@@ -5288,11 +4744,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5305,27 +4762,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionCheckOnStart

-

+

alertActionUpdateAlertsRisk

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionCheckOnStart/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/action/updateAlertsRisk/?ids=string&riskId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckOnStart/");
+
URL obj = new URL("http://zap/JSON/alert/action/updateAlertsRisk/?ids=string&riskId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5341,32 +4797,46 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckO
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionCheckOnStart/', params={
-
+r = requests.get('http://zap/JSON/alert/action/updateAlertsRisk/', params={
+  'ids': 'string',  'riskId': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/action/updateAlertsRisk/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionCheckOnStart/', - params: { - }, headers: headers +

Update the risk of the alerts.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionCheckOnStart/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtrueThe IDs of the alerts to update (comma separated values).
riskIdquerystringtrueThe numeric risk representation ('0 - Informational' through '3 - High').

Example responses

@@ -5374,11 +4844,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckO

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5391,27 +4862,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionCheckO - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionDownloadNewRelease

-

+

alertViewAlert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionDownloadNewRelease/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/alert/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadNewRelease/");
+
URL obj = new URL("http://zap/JSON/alert/view/alert/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5427,32 +4897,39 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadNewRelease/', params={
-
+r = requests.get('http://zap/JSON/alert/view/alert/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/alert/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDownloadNewRelease/', - params: { - }, headers: headers +

Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionDownloadNewRelease/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone

Example responses

@@ -5460,11 +4937,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5477,27 +4955,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionDownlo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionInstallAddonUpdates

-

+

alertViewAlertCountsByRisk

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/alertCountsByRisk/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/");
+
URL obj = new URL("http://zap/JSON/alert/view/alertCountsByRisk/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5513,32 +4990,44 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/alert/view/alertCountsByRisk/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/alertCountsByRisk/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/', - params: { - }, headers: headers +

Gets a count of the alerts, optionally filtered as per alertsPerRisk

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionInstallAddonUpdates/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalsenone
recursequerystringfalsenone

Example responses

@@ -5546,11 +5035,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5563,27 +5053,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionInstallScannerRules

-

+

alertViewAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionInstallScannerRules/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/alerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallScannerRules/");
+
URL obj = new URL("http://zap/JSON/alert/view/alerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5599,32 +5088,65 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionInstallScannerRules/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/alert/view/alerts/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/alerts/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionInstallScannerRules/', - params: { - }, headers: headers +

Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionInstallScannerRules/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.
startquerystringfalsenone
countquerystringfalsenone
riskIdquerystringfalsenone
contextNamequerystringfalseOptionally, the Context name which the Alerts' URLs are associated with.

Example responses

@@ -5632,11 +5154,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5649,27 +5172,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionInstal - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionReportAlphaAddons

-

+

alertViewAlertsByRisk

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionReportAlphaAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/alertsByRisk/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportAlphaAddons/");
+
URL obj = new URL("http://zap/JSON/alert/view/alertsByRisk/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5685,32 +5207,44 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionReportAlphaAddons/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/alert/view/alertsByRisk/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/alertsByRisk/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportAlphaAddons/', - params: { - }, headers: headers +

Gets a summary of the alerts, optionally filtered by a 'url'. If 'recurse' is true then all alerts that apply to urls that start with the specified 'url' will be returned, otherwise only those on exactly the same 'url' (ignoring url parameters)

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionReportAlphaAddons/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalsenone
recursequerystringfalsenone

Example responses

@@ -5718,11 +5252,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5735,27 +5270,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionReportBetaAddons

-

+

alertViewAlertsSummary

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionReportBetaAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/alertsSummary/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportBetaAddons/");
+
URL obj = new URL("http://zap/JSON/alert/view/alertsSummary/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5771,32 +5305,37 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionReportBetaAddons/', params={
+r = requests.get('http://zap/JSON/alert/view/alertsSummary/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/alertsSummary/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportBetaAddons/', - params: { - }, headers: headers +

Gets number of alerts grouped by each risk level, optionally filtering by URL

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionReportBetaAddons/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.

Example responses

@@ -5804,11 +5343,12 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5821,27 +5361,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateViewOptionReportReleaseAddons

-

+

alertViewNumberOfAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/view/optionReportReleaseAddons/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportReleaseAddons/");
+
URL obj = new URL("http://zap/JSON/alert/view/numberOfAlerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5857,32 +5396,44 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/view/optionReportReleaseAddons/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/alert/view/numberOfAlerts/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/alert/view/numberOfAlerts/

-result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportReleaseAddons/', - params: { - }, headers: headers +

Gets the number of alerts, optionally filtering by URL or riskId

-p JSON.parse(result) +

Parameters

- -

GET /JSON/autoupdate/view/optionReportReleaseAddons/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.
riskIdquerystringfalsenone

Example responses

@@ -5890,11 +5441,19070 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

alertFilter

+

alertFilterActionAddAlertFilter

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/addAlertFilter/?contextId=string&ruleId=string&newLevel=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/addAlertFilter/?contextId=string&ruleId=string&newLevel=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/addAlertFilter/', params={
+  'contextId': 'string',  'ruleId': 'string',  'newLevel': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/addAlertFilter/

+ +

Adds a new alert filter for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
ruleIdquerystringtruenone
newLevelquerystringtruenone
urlquerystringfalsenone
urlIsRegexquerystringfalsenone
parameterquerystringfalsenone
enabledquerystringfalsenone
parameterIsRegexquerystringfalsenone
attackquerystringfalsenone
attackIsRegexquerystringfalsenone
evidencequerystringfalsenone
evidenceIsRegexquerystringfalsenone
methodsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionAddGlobalAlertFilter

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/addGlobalAlertFilter/?ruleId=string&newLevel=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/addGlobalAlertFilter/?ruleId=string&newLevel=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/addGlobalAlertFilter/', params={
+  'ruleId': 'string',  'newLevel': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/addGlobalAlertFilter/

+ +

Adds a new global alert filter.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
ruleIdquerystringtruenone
newLevelquerystringtruenone
urlquerystringfalsenone
urlIsRegexquerystringfalsenone
parameterquerystringfalsenone
enabledquerystringfalsenone
parameterIsRegexquerystringfalsenone
attackquerystringfalsenone
attackIsRegexquerystringfalsenone
evidencequerystringfalsenone
evidenceIsRegexquerystringfalsenone
methodsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionApplyAll

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/applyAll/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/applyAll/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/applyAll/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/applyAll/

+ +

Applies all currently enabled Global and Context alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionApplyContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/applyContext/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/applyContext/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/applyContext/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/applyContext/

+ +

Applies all currently enabled Context alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionApplyGlobal

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/applyGlobal/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/applyGlobal/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/applyGlobal/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/applyGlobal/

+ +

Applies all currently enabled Global alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionRemoveAlertFilter

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/removeAlertFilter/?contextId=string&ruleId=string&newLevel=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/removeAlertFilter/?contextId=string&ruleId=string&newLevel=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/removeAlertFilter/', params={
+  'contextId': 'string',  'ruleId': 'string',  'newLevel': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/removeAlertFilter/

+ +

Removes an alert filter from the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
ruleIdquerystringtruenone
newLevelquerystringtruenone
urlquerystringfalsenone
urlIsRegexquerystringfalsenone
parameterquerystringfalsenone
enabledquerystringfalsenone
parameterIsRegexquerystringfalsenone
attackquerystringfalsenone
attackIsRegexquerystringfalsenone
evidencequerystringfalsenone
evidenceIsRegexquerystringfalsenone
methodsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionRemoveGlobalAlertFilter

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/removeGlobalAlertFilter/?ruleId=string&newLevel=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/removeGlobalAlertFilter/?ruleId=string&newLevel=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/removeGlobalAlertFilter/', params={
+  'ruleId': 'string',  'newLevel': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/removeGlobalAlertFilter/

+ +

Removes a global alert filter.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
ruleIdquerystringtruenone
newLevelquerystringtruenone
urlquerystringfalsenone
urlIsRegexquerystringfalsenone
parameterquerystringfalsenone
enabledquerystringfalsenone
parameterIsRegexquerystringfalsenone
attackquerystringfalsenone
attackIsRegexquerystringfalsenone
evidencequerystringfalsenone
evidenceIsRegexquerystringfalsenone
methodsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionTestAll

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/testAll/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/testAll/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/testAll/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/testAll/

+ +

Tests all currently enabled Global and Context alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionTestContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/testContext/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/testContext/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/testContext/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/testContext/

+ +

Tests all currently enabled Context alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterActionTestGlobal

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/action/testGlobal/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/action/testGlobal/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/action/testGlobal/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/action/testGlobal/

+ +

Tests all currently enabled Global alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterViewAlertFilterList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/view/alertFilterList/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/view/alertFilterList/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/view/alertFilterList/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/view/alertFilterList/

+ +

Lists the alert filters of the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

alertFilterViewGlobalAlertFilterList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/alertFilter/view/globalAlertFilterList/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/alertFilter/view/globalAlertFilterList/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/alertFilter/view/globalAlertFilterList/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/alertFilter/view/globalAlertFilterList/

+ +

Lists the global alert filters.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

ascan

+

ascanActionAddExcludedParam

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/addExcludedParam/?name=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/addExcludedParam/?name=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/addExcludedParam/', params={
+  'name': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/addExcludedParam/

+ +

Adds a new parameter excluded from the scan, using the specified name. Optionally sets if the new entry applies to a specific URL (default, all URLs) and sets the ID of the type of the parameter (default, ID of any type). The type IDs can be obtained with the view excludedParamTypes.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringtruenone
typequerystringfalsenone
urlquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionAddScanPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/addScanPolicy/', params={
+  'scanPolicyName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/addScanPolicy/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringtruenone
alertThresholdquerystringfalsenone
attackStrengthquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionClearExcludedFromScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/clearExcludedFromScan/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/clearExcludedFromScan/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/clearExcludedFromScan/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/clearExcludedFromScan/

+ +

Clears the regexes of URLs excluded from the active scans.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionDisableAllScanners

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/disableAllScanners/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/disableAllScanners/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/disableAllScanners/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/disableAllScanners/

+ +

Disables all scan rules of the scan policy with the given name, or the default if none given.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionDisableScanners

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/disableScanners/?ids=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/disableScanners/?ids=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/disableScanners/', params={
+  'ids': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/disableScanners/

+ +

Disables the scan rules with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionEnableAllScanners

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/enableAllScanners/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/enableAllScanners/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/enableAllScanners/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/enableAllScanners/

+ +

Enables all scan rules of the scan policy with the given name, or the default if none given.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionEnableScanners

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/enableScanners/?ids=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/enableScanners/?ids=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/enableScanners/', params={
+  'ids': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/enableScanners/

+ +

Enables the scan rules with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionExcludeFromScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/excludeFromScan/?regex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/excludeFromScan/?regex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/excludeFromScan/', params={
+  'regex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/excludeFromScan/

+ +

Adds a regex of URLs that should be excluded from the active scans.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
regexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionImportScanPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/importScanPolicy/?path=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/importScanPolicy/?path=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/importScanPolicy/', params={
+  'path': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/importScanPolicy/

+ +

Imports a Scan Policy using the given file system path.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
pathquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionModifyExcludedParam

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/modifyExcludedParam/?idx=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/modifyExcludedParam/?idx=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/modifyExcludedParam/', params={
+  'idx': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/modifyExcludedParam/

+ +

Modifies a parameter excluded from the scan. Allows to modify the name, the URL and the type of parameter. The parameter is selected with its index, which can be obtained with the view excludedParams.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idxquerystringtruenone
namequerystringfalsenone
typequerystringfalsenone
urlquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionPause

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/pause/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/pause/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/pause/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/pause/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionPauseAllScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/pauseAllScans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/pauseAllScans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/pauseAllScans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/pauseAllScans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionRemoveAllScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/removeAllScans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/removeAllScans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/removeAllScans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/removeAllScans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionRemoveExcludedParam

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/removeExcludedParam/?idx=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/removeExcludedParam/?idx=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/removeExcludedParam/', params={
+  'idx': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/removeExcludedParam/

+ +

Removes a parameter excluded from the scan, with the given index. The index can be obtained with the view excludedParams.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idxquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionRemoveScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/removeScan/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/removeScan/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/removeScan/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/removeScan/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionRemoveScanPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/removeScanPolicy/', params={
+  'scanPolicyName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/removeScanPolicy/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionResume

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/resume/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/resume/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/resume/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/resume/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionResumeAllScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/resumeAllScans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/resumeAllScans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/resumeAllScans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/resumeAllScans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/scan/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/scan/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/scan/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/scan/

+ +

Runs the active scanner against the given URL or Context. Optionally, the 'recurse' parameter can be used to scan URLs under the given URL, the parameter 'inScopeOnly' can be used to constrain the scan to URLs that are in scope (ignored if a Context is specified), the parameter 'scanPolicyName' allows to specify the scan policy (if none is given it uses the default scan policy), the parameters 'method' and 'postData' allow to select a given request in conjunction with the given URL.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalsenone
recursequerystringfalsenone
inScopeOnlyquerystringfalsenone
scanPolicyNamequerystringfalsenone
methodquerystringfalsenone
postDataquerystringfalsenone
contextIdquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionScanAsUser

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/scanAsUser/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/scanAsUser/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/scanAsUser/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/scanAsUser/

+ +

Active Scans from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalsenone
contextIdquerystringfalsenone
userIdquerystringfalsenone
recursequerystringfalsenone
scanPolicyNamequerystringfalsenone
methodquerystringfalsenone
postDataquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetEnabledPolicies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setEnabledPolicies/', params={
+  'ids': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setEnabledPolicies/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionAddQueryParam

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionAddQueryParam/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionAddQueryParam/

+ +

Sets whether or not the active scanner should add a query param to GET requests which do not have parameters to start with.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionAllowAttackOnStart

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionAllowAttackOnStart/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionAttackPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionAttackPolicy/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionAttackPolicy/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionDefaultPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionDefaultPolicy/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionDefaultPolicy/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionDelayInMs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionDelayInMs/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionDelayInMs/

+ +

This option has been superseded. Use the API rate limit endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionHandleAntiCSRFTokens

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionHandleAntiCSRFTokens/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionHostPerScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionHostPerScan/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionHostPerScan/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionInjectPluginIdInHeader

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionInjectPluginIdInHeader/

+ +

Sets whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scan rule that's sending the requests.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxAlertsPerRule

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxAlertsPerRule/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxAlertsPerRule/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxAlertsPerRule/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxAlertsPerRule/

+ +

Sets the maximum number of alerts that a rule can raise before being skipped.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
IntegerqueryintegertrueThe maximum alerts.
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxChartTimeInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxChartTimeInMins/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxResultsToList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxResultsToList/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxResultsToList/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxRuleDurationInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxRuleDurationInMins/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxScanDurationInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxScanDurationInMins/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionMaxScansInUI

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScansInUI/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionMaxScansInUI/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionPromptInAttackMode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionPromptInAttackMode/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionPromptInAttackMode/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionPromptToClearFinishedScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionPromptToClearFinishedScans/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionRescanInAttackMode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionRescanInAttackMode/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionRescanInAttackMode/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionScanHeadersAllRequests

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionScanHeadersAllRequests/

+ +

Sets whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionScanNullJsonValues

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionScanNullJsonValues/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionScanNullJsonValues/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionScanNullJsonValues/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionScanNullJsonValues/

+ +

Sets whether or not the active scanner should scan null JSON values.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruetrue to scan null values, false otherwise.
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionShowAdvancedDialog

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionShowAdvancedDialog/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionTargetParamsEnabledRPC

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionTargetParamsEnabledRPC/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionTargetParamsInjectable

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionTargetParamsInjectable/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetOptionThreadPerHost

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setOptionThreadPerHost/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setOptionThreadPerHost/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetPolicyAlertThreshold

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=string&alertThreshold=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=string&alertThreshold=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setPolicyAlertThreshold/', params={
+  'id': 'string',  'alertThreshold': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setPolicyAlertThreshold/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
alertThresholdquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetPolicyAttackStrength

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=string&attackStrength=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=string&attackStrength=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setPolicyAttackStrength/', params={
+  'id': 'string',  'attackStrength': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setPolicyAttackStrength/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
attackStrengthquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetScannerAlertThreshold

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=string&alertThreshold=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=string&alertThreshold=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setScannerAlertThreshold/', params={
+  'id': 'string',  'alertThreshold': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setScannerAlertThreshold/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
alertThresholdquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSetScannerAttackStrength

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/setScannerAttackStrength/?id=string&attackStrength=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/setScannerAttackStrength/?id=string&attackStrength=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/setScannerAttackStrength/', params={
+  'id': 'string',  'attackStrength': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/setScannerAttackStrength/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
attackStrengthquerystringtruenone
scanPolicyNamequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionSkipScanner

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/skipScanner/?scanId=string&scannerId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/skipScanner/?scanId=string&scannerId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/skipScanner/', params={
+  'scanId': 'string',  'scannerId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/skipScanner/

+ +

Skips the scan rule using the given IDs of the scan and the scan rule.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
scannerIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionStop

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/stop/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/stop/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/stop/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/stop/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionStopAllScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/stopAllScans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/stopAllScans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/stopAllScans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/stopAllScans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanActionUpdateScanPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/action/updateScanPolicy/', params={
+  'scanPolicyName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/action/updateScanPolicy/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringtruenone
alertThresholdquerystringfalsenone
attackStrengthquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewAlertsIds

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/alertsIds/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/alertsIds/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/alertsIds/

+ +

Gets the IDs of the alerts raised during the scan with the given ID. An alert can be obtained with 'alert' core view.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewAttackModeQueue

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/attackModeQueue/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/attackModeQueue/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/attackModeQueue/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/attackModeQueue/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewExcludedFromScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/excludedFromScan/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/excludedFromScan/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/excludedFromScan/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/excludedFromScan/

+ +

Gets the regexes of URLs excluded from the active scans.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewExcludedParamTypes

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/excludedParamTypes/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/excludedParamTypes/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/excludedParamTypes/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/excludedParamTypes/

+ +

Gets all the types of excluded parameters. For each type the following are shown: the ID and the name.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewExcludedParams

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/excludedParams/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/excludedParams/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/excludedParams/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/excludedParams/

+ +

Gets all the parameters that are excluded. For each parameter the following are shown: the name, the URL, and the parameter type.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewMessagesIds

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/messagesIds/?scanId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/messagesIds/?scanId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/messagesIds/', params={
+  'scanId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/messagesIds/

+ +

Gets the IDs of the messages sent during the scan with the given ID. A message can be obtained with 'message' core view.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionAddQueryParam

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionAddQueryParam/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionAddQueryParam/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionAddQueryParam/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionAddQueryParam/

+ +

Tells whether or not the active scanner should add a query parameter to GET request that don't have parameters to start with.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionAllowAttackOnStart

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionAllowAttackOnStart/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionAllowAttackOnStart/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionAllowAttackOnStart/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionAllowAttackOnStart/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionAttackPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionAttackPolicy/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionAttackPolicy/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionAttackPolicy/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionAttackPolicy/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionDefaultPolicy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionDefaultPolicy/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionDefaultPolicy/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionDefaultPolicy/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionDefaultPolicy/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionDelayInMs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionDelayInMs/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionDelayInMs/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionDelayInMs/

+ +

This option has been superseded. Use the API rate limit endpoints in the 'network' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionExcludedParamList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionExcludedParamList/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionExcludedParamList/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionExcludedParamList/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionExcludedParamList/

+ +

Use view excludedParams instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionHandleAntiCSRFTokens

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionHandleAntiCSRFTokens/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionHostPerScan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionHostPerScan/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionHostPerScan/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionHostPerScan/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionHostPerScan/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionInjectPluginIdInHeader

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionInjectPluginIdInHeader/

+ +

Tells whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scan rule that's sending the requests.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxAlertsPerRule

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxAlertsPerRule/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxAlertsPerRule/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxAlertsPerRule/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxAlertsPerRule/

+ +

Gets the maximum number of alerts that a rule can raise before being skipped.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxChartTimeInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxChartTimeInMins/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxChartTimeInMins/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxChartTimeInMins/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxChartTimeInMins/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxResultsToList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxResultsToList/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxResultsToList/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxResultsToList/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxResultsToList/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxRuleDurationInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxRuleDurationInMins/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxScanDurationInMins

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxScanDurationInMins/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScanDurationInMins/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxScanDurationInMins/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxScanDurationInMins/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionMaxScansInUI

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionMaxScansInUI/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScansInUI/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionMaxScansInUI/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionMaxScansInUI/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionPromptInAttackMode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionPromptInAttackMode/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionPromptInAttackMode/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionPromptInAttackMode/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionPromptInAttackMode/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionPromptToClearFinishedScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionPromptToClearFinishedScans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionRescanInAttackMode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionRescanInAttackMode/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionRescanInAttackMode/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionRescanInAttackMode/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionRescanInAttackMode/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionScanHeadersAllRequests

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionScanHeadersAllRequests/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionScanHeadersAllRequests/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionScanHeadersAllRequests/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionScanHeadersAllRequests/

+ +

Tells whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionScanNullJsonValues

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionScanNullJsonValues/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionScanNullJsonValues/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionScanNullJsonValues/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionScanNullJsonValues/

+ +

Tells whether or not the active scanner should scan null JSON values.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionShowAdvancedDialog

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionShowAdvancedDialog/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionShowAdvancedDialog/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionShowAdvancedDialog/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionShowAdvancedDialog/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionTargetParamsEnabledRPC

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionTargetParamsEnabledRPC/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionTargetParamsInjectable

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionTargetParamsInjectable/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsInjectable/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsInjectable/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionTargetParamsInjectable/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewOptionThreadPerHost

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/optionThreadPerHost/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/optionThreadPerHost/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/optionThreadPerHost/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/optionThreadPerHost/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewPolicies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/policies/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/policies/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/policies/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/policies/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
policyIdquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewScanPolicyNames

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/scanPolicyNames/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/scanPolicyNames/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/scanPolicyNames/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewScanProgress

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/scanProgress/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/scanProgress/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/scanProgress/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/scanProgress/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewScanners

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/scanners/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/scanners/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/scanners/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/scanners/

+ +

Gets the scan rules, optionally, of the given scan policy or scanner policy/category ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
policyIdquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewScans

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/scans/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/scans/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/scans/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/scans/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

ascanViewStatus

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/ascan/view/status/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/ascan/view/status/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/ascan/view/status/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/ascan/view/status/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

authentication

+

authenticationActionSetAuthenticationMethod

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=string&authMethodName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=string&authMethodName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/action/setAuthenticationMethod/', params={
+  'contextId': 'string',  'authMethodName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/action/setAuthenticationMethod/

+ +

Sets the authentication method for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
authMethodNamequerystringtruenone
authMethodConfigParamsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationActionSetLoggedInIndicator

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=string&loggedInIndicatorRegex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=string&loggedInIndicatorRegex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/action/setLoggedInIndicator/', params={
+  'contextId': 'string',  'loggedInIndicatorRegex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/action/setLoggedInIndicator/

+ +

Sets the logged in indicator for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
loggedInIndicatorRegexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationActionSetLoggedOutIndicator

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=string&loggedOutIndicatorRegex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=string&loggedOutIndicatorRegex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/action/setLoggedOutIndicator/', params={
+  'contextId': 'string',  'loggedOutIndicatorRegex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/action/setLoggedOutIndicator/

+ +

Sets the logged out indicator for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
loggedOutIndicatorRegexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationViewGetAuthenticationMethod

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethod/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/view/getAuthenticationMethod/

+ +

Gets the name of the authentication method for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationViewGetAuthenticationMethodConfigParams

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/', params={
+  'authMethodName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/view/getAuthenticationMethodConfigParams/

+ +

Gets the configuration parameters for the authentication method with the given name.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
authMethodNamequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationViewGetLoggedInIndicator

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/view/getLoggedInIndicator/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/view/getLoggedInIndicator/

+ +

Gets the logged in indicator for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationViewGetLoggedOutIndicator

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/view/getLoggedOutIndicator/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/view/getLoggedOutIndicator/

+ +

Gets the logged out indicator for the context with the given ID.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authenticationViewGetSupportedAuthenticationMethods

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authentication/view/getSupportedAuthenticationMethods/

+ +

Gets the name of the authentication methods.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

authorization

+

authorizationActionSetBasicAuthorizationDetectionMethod

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authorization/action/setBasicAuthorizationDetectionMethod/

+ +

Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
headerRegexquerystringfalsenone
bodyRegexquerystringfalsenone
statusCodequerystringfalsenone
logicalOperatorquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

authorizationViewGetAuthorizationDetectionMethod

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/', params={
+  'contextId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/authorization/view/getAuthorizationDetectionMethod/

+ +

Obtains all the configuration of the authorization detection method that is currently set for a context.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

automation

+

automationActionEndDelayJob

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/automation/action/endDelayJob/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/automation/action/endDelayJob/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/automation/action/endDelayJob/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/automation/action/endDelayJob/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

automationActionRunPlan

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/automation/action/runPlan/?filePath=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/automation/action/runPlan/?filePath=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/automation/action/runPlan/', params={
+  'filePath': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/automation/action/runPlan/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

automationViewPlanProgress

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/automation/view/planProgress/?planId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/automation/view/planProgress/?planId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/automation/view/planProgress/', params={
+  'planId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/automation/view/planProgress/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
planIdquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

autoupdate

+

autoupdateActionDownloadLatestRelease

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/downloadLatestRelease/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/downloadLatestRelease/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/downloadLatestRelease/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/downloadLatestRelease/

+ +

Downloads the latest release, if any

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionInstallAddon

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/installAddon/?id=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/installAddon/?id=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/installAddon/', params={
+  'id': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/installAddon/

+ +

Installs or updates the specified add-on, returning when complete (i.e. not asynchronously)

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionInstallLocalAddon

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/installLocalAddon/?file=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/installLocalAddon/?file=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/installLocalAddon/', params={
+  'file': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/installLocalAddon/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionCheckAddonUpdates

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionCheckAddonUpdates/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionCheckOnStart

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckOnStart/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionCheckOnStart/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionDownloadNewRelease

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionDownloadNewRelease/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionInstallAddonUpdates

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionInstallAddonUpdates/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionInstallScannerRules

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionInstallScannerRules/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionReportAlphaAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionReportAlphaAddons/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionReportBetaAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionReportBetaAddons/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionSetOptionReportReleaseAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/setOptionReportReleaseAddons/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateActionUninstallAddon

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/action/uninstallAddon/?id=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/action/uninstallAddon/?id=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/action/uninstallAddon/', params={
+  'id': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/action/uninstallAddon/

+ +

Uninstalls the specified add-on

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewInstalledAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/installedAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/installedAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/installedAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/installedAddons/

+ +

Return a list of all of the installed add-ons

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewIsLatestVersion

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/isLatestVersion/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/isLatestVersion/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/isLatestVersion/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/isLatestVersion/

+ +

Returns 'true' if ZAP is on the latest version

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewLatestVersionNumber

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/latestVersionNumber/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/latestVersionNumber/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/latestVersionNumber/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/latestVersionNumber/

+ +

Returns the latest version number

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewLocalAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/localAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/localAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/localAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/localAddons/

+ +

Returns a list with all local add-ons, installed or not.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewMarketplaceAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/marketplaceAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/marketplaceAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/marketplaceAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/marketplaceAddons/

+ +

Return a list of all of the add-ons on the ZAP Marketplace (this information is read once and then cached)

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewNewAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/newAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/newAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/newAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/newAddons/

+ +

Return a list of any add-ons that have been added to the Marketplace since the last check for updates

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionAddonDirectories

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionAddonDirectories/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionAddonDirectories/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionAddonDirectories/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionAddonDirectories/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionCheckAddonUpdates

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionCheckAddonUpdates/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionCheckOnStart

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionCheckOnStart/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckOnStart/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionCheckOnStart/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionCheckOnStart/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionDayLastChecked

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionDayLastChecked/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastChecked/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastChecked/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionDayLastChecked/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionDayLastInstallWarned

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionDayLastInstallWarned/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionDayLastUpdateWarned

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionDayLastUpdateWarned/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionDownloadDirectory

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionDownloadDirectory/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadDirectory/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadDirectory/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionDownloadDirectory/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionDownloadNewRelease

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionDownloadNewRelease/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadNewRelease/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadNewRelease/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionDownloadNewRelease/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionInstallAddonUpdates

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionInstallAddonUpdates/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionInstallScannerRules

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionInstallScannerRules/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallScannerRules/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionInstallScannerRules/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionInstallScannerRules/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionReportAlphaAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionReportAlphaAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportAlphaAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionReportAlphaAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionReportAlphaAddons/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionReportBetaAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionReportBetaAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportBetaAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionReportBetaAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionReportBetaAddons/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewOptionReportReleaseAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/optionReportReleaseAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportReleaseAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/optionReportReleaseAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/optionReportReleaseAddons/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

autoupdateViewUpdatedAddons

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/autoupdate/view/updatedAddons/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/autoupdate/view/updatedAddons/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/autoupdate/view/updatedAddons/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/autoupdate/view/updatedAddons/

+ +

Return a list of any add-ons that have been changed in the Marketplace since the last check for updates

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

break

+

breakActionAddHttpBreakpoint

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=string&ignorecase=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=string&ignorecase=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/addHttpBreakpoint/', params={
+  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'string',  'ignorecase': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/addHttpBreakpoint/

+ +

Adds a custom HTTP breakpoint. The string is the string to match. Location may be one of: url, request_header, request_body, response_header or response_body. Match may be: contains or regex. Inverse (match) may be true or false. Lastly, ignorecase (when matching the string) may be true or false.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
stringquerystringtruenone
locationquerystringtruenone
matchquerystringtruenone
inversequerystringtruenone
ignorecasequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionBreak

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/break/?type=string&state=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/break/?type=string&state=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/break/', params={
+  'type': 'string',  'state': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/break/

+ +

Controls the global break functionality. The type may be one of: http-all, http-request or http-response. The state may be true (for turning break on for the specified type) or false (for turning break off). Scope is not currently used.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
typequerystringtruenone
statequerystringtruenone
scopequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionContinue

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/continue/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/continue/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/continue/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/continue/

+ +

Submits the currently intercepted message and unsets the global request/response breakpoints

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionDrop

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/drop/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/drop/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/drop/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/drop/

+ +

Drops the currently intercepted message

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionRemoveHttpBreakpoint

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=string&ignorecase=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=string&ignorecase=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/removeHttpBreakpoint/', params={
+  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'string',  'ignorecase': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/removeHttpBreakpoint/

+ +

Removes the specified breakpoint

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
stringquerystringtruenone
locationquerystringtruenone
matchquerystringtruenone
inversequerystringtruenone
ignorecasequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionSetHttpMessage

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/setHttpMessage/?httpHeader=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/setHttpMessage/?httpHeader=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/setHttpMessage/', params={
+  'httpHeader': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/setHttpMessage/

+ +

Overwrites the currently intercepted message with the data provided

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
httpHeaderquerystringtruenone
httpBodyquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakActionStep

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/action/step/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/action/step/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/action/step/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/action/step/

+ +

Submits the currently intercepted message, the next request or response will automatically be intercepted

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakViewHttpMessage

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/view/httpMessage/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/view/httpMessage/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/view/httpMessage/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/view/httpMessage/

+ +

Returns the HTTP message currently intercepted (if any)

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakViewIsBreakAll

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/view/isBreakAll/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/view/isBreakAll/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/view/isBreakAll/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/view/isBreakAll/

+ +

Returns True if ZAP will break on both requests and responses

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakViewIsBreakRequest

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/view/isBreakRequest/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/view/isBreakRequest/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/view/isBreakRequest/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/view/isBreakRequest/

+ +

Returns True if ZAP will break on requests

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

breakViewIsBreakResponse

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/break/view/isBreakResponse/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/break/view/isBreakResponse/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/break/view/isBreakResponse/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/break/view/isBreakResponse/

+ +

Returns True if ZAP will break on responses

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

client

+

clientActionReportEvent

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/client/action/reportEvent/?eventJson=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/client/action/reportEvent/?eventJson=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/client/action/reportEvent/', params={
+  'eventJson': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/client/action/reportEvent/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
eventJsonquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

clientActionReportObject

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/client/action/reportObject/?objectJson=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/client/action/reportObject/?objectJson=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/client/action/reportObject/', params={
+  'objectJson': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/client/action/reportObject/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
objectJsonquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

clientActionReportZestScript

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/client/action/reportZestScript/?scriptJson=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/client/action/reportZestScript/?scriptJson=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/client/action/reportZestScript/', params={
+  'scriptJson': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/client/action/reportZestScript/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scriptJsonquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

clientActionReportZestStatement

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/client/action/reportZestStatement/?statementJson=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/client/action/reportZestStatement/?statementJson=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/client/action/reportZestStatement/', params={
+  'statementJson': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/client/action/reportZestStatement/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
statementJsonquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

codedx

+

codedxActionGenerateAndUpload

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/codedx/action/generateAndUpload/?serverUrl=string&codeDxApiKey=string&projectId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/codedx/action/generateAndUpload/?serverUrl=string&codeDxApiKey=string&projectId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/codedx/action/generateAndUpload/', params={
+  'serverUrl': 'string',  'codeDxApiKey': 'string',  'projectId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/codedx/action/generateAndUpload/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
serverUrlquerystringtruenone
codeDxApiKeyquerystringtruenone
projectIdquerystringtruenone
fingerprintquerystringfalsenone
acceptPermanentlyquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

codedxActionUploadReport

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/codedx/action/uploadReport/?filePath=string&serverUrl=string&codeDxApiKey=string&projectId=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/codedx/action/uploadReport/?filePath=string&serverUrl=string&codeDxApiKey=string&projectId=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/codedx/action/uploadReport/', params={
+  'filePath': 'string',  'serverUrl': 'string',  'codeDxApiKey': 'string',  'projectId': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/codedx/action/uploadReport/

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringtruenone
serverUrlquerystringtruenone
codeDxApiKeyquerystringtruenone
projectIdquerystringtruenone
fingerprintquerystringfalsenone
acceptPermanentlyquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

codedxViewGenerateReport

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/codedx/view/generateReport/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/codedx/view/generateReport/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/codedx/view/generateReport/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/codedx/view/generateReport/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

context

+

contextActionExcludeAllContextTechnologies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/excludeAllContextTechnologies/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/excludeAllContextTechnologies/

+ +

Excludes all built in technologies from a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionExcludeContextTechnologies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/excludeContextTechnologies/', params={
+  'contextName': 'string',  'technologyNames': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/excludeContextTechnologies/

+ +

Excludes technologies with the given names, separated by a comma, from a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
technologyNamesquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionExcludeFromContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/excludeFromContext/', params={
+  'contextName': 'string',  'regex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/excludeFromContext/

+ +

Add exclude regex to context

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
regexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionExportContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/exportContext/', params={
+  'contextName': 'string',  'contextFile': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/exportContext/

+ +

Exports the context with the given name to a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
contextFilequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionImportContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/importContext/?contextFile=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/importContext/?contextFile=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/importContext/', params={
+  'contextFile': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/importContext/

+ +

Imports a context from a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextFilequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionIncludeAllContextTechnologies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/includeAllContextTechnologies/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/includeAllContextTechnologies/

+ +

Includes all built in technologies in to a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionIncludeContextTechnologies

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/includeContextTechnologies/', params={
+  'contextName': 'string',  'technologyNames': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/includeContextTechnologies/

+ +

Includes technologies with the given names, separated by a comma, to a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
technologyNamesquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionIncludeInContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/includeInContext/', params={
+  'contextName': 'string',  'regex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/includeInContext/

+ +

Add include regex to context

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
regexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionNewContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/newContext/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/newContext/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/newContext/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/newContext/

+ +

Creates a new context with the given name in the current session

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionRemoveContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/removeContext/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/removeContext/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/removeContext/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/removeContext/

+ +

Removes a context in the current session

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionSetContextCheckingStrategy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/setContextCheckingStrategy/?contextName=string&checkingStrategy=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/setContextCheckingStrategy/?contextName=string&checkingStrategy=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/setContextCheckingStrategy/', params={
+  'contextName': 'string',  'checkingStrategy': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/setContextCheckingStrategy/

+ +

Set the checking strategy for a context - this defines how ZAP checks that a request is authenticated

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
checkingStrategyquerystringtrueOne of EACH_RESP, EACH_REQ, EACH_REQ_RESP, POLL_URL
pollUrlquerystringfalseThe URL for ZAP to poll, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
pollDataquerystringfalseThe POST data to supply to the pollUrl, option and only takes effect if checkingStrategy = POLL_URL
pollHeadersquerystringfalseAny additional headers that need to be added to the poll request, separated by '\n' characters, only takes effect if checkingStrategy = POLL_URL
pollFrequencyquerystringfalseAn integer greater than zero, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
pollFrequencyUnitsquerystringfalseOne of REQUESTS, SECONDS, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionSetContextInScope

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/setContextInScope/', params={
+  'contextName': 'string',  'booleanInScope': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/setContextInScope/

+ +

Sets a context to in scope (contexts are in scope by default)

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
booleanInScopequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextActionSetContextRegexs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/action/setContextRegexs/', params={
+  'contextName': 'string',  'incRegexs': 'string',  'excRegexs': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/action/setContextRegexs/

+ +

Set the regexs to include and exclude for a context, both supplied as JSON string arrays

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
incRegexsquerystringtruenone
excRegexsquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewContext

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/context/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/context/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/context/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/context/

+ +

List the information about the named context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewContextList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/contextList/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/contextList/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/contextList/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/contextList/

+ +

List context names of current session

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewExcludeRegexs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/excludeRegexs/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/excludeRegexs/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/excludeRegexs/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/excludeRegexs/

+ +

List excluded regexs for context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewExcludedTechnologyList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/excludedTechnologyList/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/excludedTechnologyList/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/excludedTechnologyList/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/excludedTechnologyList/

+ +

Lists the names of all technologies excluded from a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewIncludeRegexs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/includeRegexs/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/includeRegexs/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/includeRegexs/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/includeRegexs/

+ +

List included regexs for context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewIncludedTechnologyList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/includedTechnologyList/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/includedTechnologyList/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/includedTechnologyList/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/includedTechnologyList/

+ +

Lists the names of all technologies included in a context

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewTechnologyList

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/technologyList/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/technologyList/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/technologyList/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/technologyList/

+ +

Lists the names of all built in technologies

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

contextViewUrls

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/context/view/urls/?contextName=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/context/view/urls/?contextName=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/context/view/urls/', params={
+  'contextName': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/context/view/urls/

+ +

Lists the URLs accessed through/by ZAP, that belong to the context with the given name.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextNamequerystringtrueThe name of the context
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + + +

core

+

coreActionAccessUrl

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/accessUrl/?url=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/accessUrl/?url=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/accessUrl/', params={
+  'url': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/accessUrl/

+ +

Convenient and simple action to access a URL, optionally following redirections. Returns the request sent and response received and followed redirections, if any. Other actions are available which offer more control on what is sent, like, 'sendRequest' or 'sendHarRequest'.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringtruenone
followRedirectsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionAddProxyChainExcludedDomain

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/addProxyChainExcludedDomain/', params={
+  'value': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/addProxyChainExcludedDomain/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
valuequerystringtruenone
isRegexquerystringfalsenone
isEnabledquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionClearExcludedFromProxy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/clearExcludedFromProxy/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/clearExcludedFromProxy/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/clearExcludedFromProxy/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/clearExcludedFromProxy/

+ +

Clears the regexes of URLs excluded from the local proxies.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionDeleteAlert

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/deleteAlert/?id=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/deleteAlert/?id=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/deleteAlert/', params={
+  'id': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/deleteAlert/

+ +

Use the API endpoint with the same name in the 'alert' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionDeleteAllAlerts

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/deleteAllAlerts/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/deleteAllAlerts/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/deleteAllAlerts/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/deleteAllAlerts/

+ +

Use the API endpoint with the same name in the 'alert' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionDeleteSiteNode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/deleteSiteNode/?url=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/deleteSiteNode/?url=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/deleteSiteNode/', params={
+  'url': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/deleteSiteNode/

+ +

Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringtruenone
methodquerystringfalsenone
postDataquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionDisableAllProxyChainExcludedDomains

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/disableAllProxyChainExcludedDomains/

+ +

Use the API endpoints in the 'network' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionDisableClientCertificate

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/disableClientCertificate/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/disableClientCertificate/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/disableClientCertificate/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/disableClientCertificate/

+ +

Use the API endpoints in the 'network' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionEnableAllProxyChainExcludedDomains

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/enableAllProxyChainExcludedDomains/

+ +

Use the API endpoints in the 'network' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionEnablePKCS12ClientCertificate

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/enablePKCS12ClientCertificate/', params={
+  'filePath': 'string',  'password': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/enablePKCS12ClientCertificate/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringtruenone
passwordquerystringtruenone
indexquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionExcludeFromProxy

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/excludeFromProxy/?regex=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/excludeFromProxy/?regex=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/excludeFromProxy/', params={
+  'regex': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/excludeFromProxy/

+ +

Adds a regex of URLs that should be excluded from the local proxies.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
regexquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionGenerateRootCA

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/generateRootCA/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/generateRootCA/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/generateRootCA/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/generateRootCA/

+ +

Use the API endpoints in the 'network' component instead.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionLoadSession

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/loadSession/?name=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/loadSession/?name=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/loadSession/', params={
+  'name': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/loadSession/

+ +

Loads the session with the given name. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionModifyProxyChainExcludedDomain

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/modifyProxyChainExcludedDomain/', params={
+  'idx': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/modifyProxyChainExcludedDomain/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idxquerystringtruenone
valuequerystringfalsenone
isRegexquerystringfalsenone
isEnabledquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionNewSession

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/newSession/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/newSession/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/newSession/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/newSession/

+ +

Creates a new session, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringfalsenone
overwritequerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionRemoveProxyChainExcludedDomain

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/removeProxyChainExcludedDomain/', params={
+  'idx': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/removeProxyChainExcludedDomain/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idxquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionRunGarbageCollection

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/runGarbageCollection/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/runGarbageCollection/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/runGarbageCollection/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/runGarbageCollection/

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSaveSession

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/saveSession/?name=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/saveSession/?name=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/saveSession/', params={
+  'name': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/saveSession/

+ +

Saves the session.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringtrueThe name (or path) of the session. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.
overwritequerystringfalseIf existing files should be overwritten, attempting to overwrite the files of the session already in use/saved will lead to an error ("already_exists").
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSendRequest

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/sendRequest/?request=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/sendRequest/?request=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/sendRequest/', params={
+  'request': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/sendRequest/

+ +

Sends the HTTP request, optionally following redirections. Returns the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
requestquerystringtruenone
followRedirectsquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetHomeDirectory

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setHomeDirectory/?dir=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setHomeDirectory/?dir=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setHomeDirectory/', params={
+  'dir': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setHomeDirectory/

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
dirquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetMode

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setMode/?mode=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setMode/?mode=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setMode/', params={
+  'mode': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setMode/

+ +

Sets the mode, which may be one of [safe, protect, standard, attack]

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
modequerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionAlertOverridesFilePath

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionAlertOverridesFilePath/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionAlertOverridesFilePath/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionAlertOverridesFilePath/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionAlertOverridesFilePath/

+ +

Sets (or clears, if empty) the path to the file with alert overrides.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringfalsenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionDefaultUserAgent

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionDefaultUserAgent/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionDefaultUserAgent/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionDnsTtlSuccessfulQueries

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionDnsTtlSuccessfulQueries/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionHttpStateEnabled

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionHttpStateEnabled/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionHttpStateEnabled/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionMaximumAlertInstances

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionMaximumAlertInstances/', params={
+  'numberOfInstances': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionMaximumAlertInstances/

+ +

Sets the maximum number of alert instances to include in a report. A value of zero is treated as unlimited.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
numberOfInstancesquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionMergeRelatedAlerts

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionMergeRelatedAlerts/', params={
+  'enabled': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionMergeRelatedAlerts/

+ +

Sets whether or not related alerts will be merged in any reports generated.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
enabledquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainName

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainName/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainName/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainName/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainName/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainPassword

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPassword/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainPassword/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainPort

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0 \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPort/', params={
+  'Integer': '0'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainPort/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainPrompt

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=true \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPrompt/', params={
+  'Boolean': 'true'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainPrompt/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainRealm

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainRealm/', params={
+  'String': 'string'
+}, headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainRealm/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

@@ -5907,27 +24517,26 @@ curl -X GET http://zap/JSON/autoupdate/view/optionReport - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateActionDownloadLatestRelease

-

+

coreActionSetOptionProxyChainSkipName

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/downloadLatestRelease/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/downloadLatestRelease/");
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -5943,34 +24552,132 @@ curl -X GET http://zap/JSON/autoupdate/action/downloadLa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/downloadLatestRelease/', params={
-
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainSkipName/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionProxyChainSkipName/

+ +

Option no longer in effective use.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionProxyChainUserName

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string \
+  -H 'Accept: application/json'
 
-
require 'rest-client'
-require 'json'
+
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/downloadLatestRelease/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/action/setOptionProxyChainUserName/', params={
+  'String': 'string'
+}, headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/action/downloadLatestRelease/

+

GET /JSON/core/action/setOptionProxyChainUserName/

-

Downloads the latest release, if any

+

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone

Example responses

@@ -5978,11 +24685,12 @@ curl -X GET http://zap/JSON/autoupdate/action/downloadLa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -5995,27 +24703,26 @@ curl -X GET http://zap/JSON/autoupdate/action/downloadLa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateActionInstallAddon

-

+

coreActionSetOptionSingleCookieRequestHeader

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/installAddon/?id=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/installAddon/?id=string");
+
URL obj = new URL("http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6031,37 +24738,114 @@ curl -X GET http://zap/JSON/autoupdate/action/installAdd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/installAddon/', params={
-  'id': 'string'
+r = requests.get('http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionSingleCookieRequestHeader/

+ +

Option no longer in effective use.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionTimeoutInSecs

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0 \
+  -H 'Accept: application/json'
 
-
require 'rest-client'
-require 'json'
+
URL obj = new URL("http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/installAddon/',
-  params: {
-  'id' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/action/setOptionTimeoutInSecs/', params={
+  'Integer': '0'
+}, headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/action/installAddon/

+

GET /JSON/core/action/setOptionTimeoutInSecs/

-

Installs or updates the specified add-on, returning when complete (ie not asynchronously)

+

Use the API endpoints in the 'network' component instead.

-

Parameters

+

Parameters

@@ -6073,9 +24857,9 @@ curl -X GET http://zap/JSON/autoupdate/action/installAdd - + - + @@ -6087,11 +24871,12 @@ curl -X GET http://zap/JSON/autoupdate/action/installAdd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idInteger querystringinteger true none
@@ -6104,27 +24889,26 @@ curl -X GET http://zap/JSON/autoupdate/action/installAdd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateActionInstallLocalAddon

-

+

coreActionSetOptionUseProxyChain

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/installLocalAddon/?file=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/installLocalAddon/?file=string");
+
URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6140,35 +24924,114 @@ curl -X GET http://zap/JSON/autoupdate/action/installLoc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/installLocalAddon/', params={
-  'file': 'string'
+r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChain/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionUseProxyChain/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSetOptionUseProxyChainAuth

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=true \
+  -H 'Accept: application/json'
 
-
require 'rest-client'
-require 'json'
+
URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=true");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/installLocalAddon/',
-  params: {
-  'file' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChainAuth/', params={
+  'Boolean': 'true'
+}, headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/action/installLocalAddon/

+

GET /JSON/core/action/setOptionUseProxyChainAuth/

-

Parameters

+

Use the API endpoints in the 'network' component instead.

+ +

Parameters

@@ -6180,9 +25043,9 @@ curl -X GET http://zap/JSON/autoupdate/action/installLoc - + - + @@ -6194,11 +25057,12 @@ curl -X GET http://zap/JSON/autoupdate/action/installLoc

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

fileBoolean querystringboolean true none
@@ -6211,27 +25075,26 @@ curl -X GET http://zap/JSON/autoupdate/action/installLoc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateActionUninstallAddon

-

+

coreActionSetOptionUseSocksProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/uninstallAddon/?id=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/action/setOptionUseSocksProxy/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/uninstallAddon/?id=string");
+
URL obj = new URL("http://zap/JSON/core/action/setOptionUseSocksProxy/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6247,37 +25110,183 @@ curl -X GET http://zap/JSON/autoupdate/action/uninstallA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/uninstallAddon/', params={
-  'id': 'string'
+r = requests.get('http://zap/JSON/core/action/setOptionUseSocksProxy/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
+print(r.json())
+
+
+

GET /JSON/core/action/setOptionUseSocksProxy/

+ +

Use the API endpoints in the 'network' component instead.

+ +

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruetrue if the SOCKS proxy should be used, false otherwise.
+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionShutdown

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/shutdown/ \
+  -H 'Accept: application/json'
 
-
require 'rest-client'
-require 'json'
+
URL obj = new URL("http://zap/JSON/core/action/shutdown/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/uninstallAddon/',
-  params: {
-  'id' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/action/shutdown/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/autoupdate/action/uninstallAddon/

+

GET /JSON/core/action/shutdown/

-

Uninstalls the specified add-on

+

Shuts down ZAP

-

Parameters

+
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
+ + +

coreActionSnapshotSession

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/action/snapshotSession/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/action/snapshotSession/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/action/snapshotSession/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/action/snapshotSession/

+ +

Snapshots the session, optionally with the given name, and overwriting existing files. If no name is specified the name of the current session with a timestamp appended is used. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+ +

Parameters

@@ -6289,10 +25298,17 @@ curl -X GET http://zap/JSON/autoupdate/action/uninstallA - + - + + + + + + + +
idname query stringtruefalsenone
overwritequerystringfalse none
@@ -6303,11 +25319,12 @@ curl -X GET http://zap/JSON/autoupdate/action/uninstallA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -6320,27 +25337,26 @@ curl -X GET http://zap/JSON/autoupdate/action/uninstallA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

autoupdateActionSetOptionCheckAddonUpdates

-

+

coreOtherFileDownload

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/fileDownload/?fileName=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/fileDownload/?fileName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6356,35 +25372,21 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/OTHER/core/other/fileDownload/', params={
+  'fileName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionCheckAddonUpdates/

+

GET /OTHER/core/other/fileDownload/

-

Parameters

+

Download a file from the transfer directory

+ +

Parameters

@@ -6396,25 +25398,19 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC - + - +
BooleanfileName query string truenoneThe name of the file, may include subdirectories

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -6427,27 +25423,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionCheckOnStart

-

+

coreOtherFileUpload

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/fileUpload/?fileName=string&fileContents=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/fileUpload/?fileName=string&fileContents=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6463,35 +25460,21 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckOnStart/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/OTHER/core/other/fileUpload/', params={
+  'fileName': 'string',  'fileContents': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionCheckOnStart/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionCheckOnStart/

+

GET /OTHER/core/other/fileUpload/

-

Parameters

+

Upload a file to the transfer directory. Only POST requests accepted with encodings of "multipart/form-data" or "application/x-www-form-urlencoded".

+ +

Parameters

@@ -6503,25 +25486,26 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC - + - + + + + + + + +
BooleanfileName query string truenoneThe name of the file, may include subdirectories.
fileContentsquerystringtrueThe contents of the file.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -6534,27 +25518,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionC - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionDownloadNewRelease

-

+

coreOtherHtmlreport

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/htmlreport/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/htmlreport/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6570,65 +25555,23 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionD
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/core/other/htmlreport/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionDownloadNewRelease/

- -

Parameters

+

GET /OTHER/core/other/htmlreport/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Use the 'generate' API endpoint the 'reports' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -6641,27 +25584,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionD - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionInstallAddonUpdates

-

+

coreOtherJsonreport

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/jsonreport/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/jsonreport/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6677,65 +25621,23 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionI
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/core/other/jsonreport/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionInstallAddonUpdates/

- -

Parameters

+

GET /OTHER/core/other/jsonreport/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Use the 'generate' API endpoint the 'reports' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -6748,27 +25650,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionI - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionInstallScannerRules

-

+

coreOtherMdreport

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/mdreport/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/mdreport/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6784,65 +25687,23 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionI
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/core/other/mdreport/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionInstallScannerRules/

- -

Parameters

+

GET /OTHER/core/other/mdreport/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Use the 'generate' API endpoint the 'reports' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -6855,27 +25716,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionI - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionReportAlphaAddons

-

+

coreOtherMessageHar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/messageHar/?id=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/messageHar/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6891,35 +25753,21 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/OTHER/core/other/messageHar/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionReportAlphaAddons/

+

GET /OTHER/core/other/messageHar/

-

Parameters

+

Use the API endpoints in the 'exim' add-on instead.

+ +

Parameters

@@ -6931,7 +25779,7 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - + @@ -6941,15 +25789,9 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

Booleanid query string true
@@ -6962,27 +25804,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionReportBetaAddons

-

+

coreOtherMessagesHar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/messagesHar/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/messagesHar/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -6998,35 +25841,19 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/core/other/messagesHar/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionReportBetaAddons/

+

GET /OTHER/core/other/messagesHar/

-

Parameters

+

Use the API endpoints in the 'exim' add-on instead.

+ +

Parameters

@@ -7038,25 +25865,33 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - + - + + + + + + + + + + + + + + +
Booleanbaseurl query stringtruefalsenone
startquerystringfalsenone
countquerystringfalse none

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7069,27 +25904,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

autoupdateActionSetOptionReportReleaseAddons

-

+

coreOtherMessagesHarById

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/messagesHarById/?ids=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/core/other/messagesHarById/?ids=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7105,35 +25941,21 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/OTHER/core/other/messagesHarById/', params={
+  'ids': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/autoupdate/action/setOptionReportReleaseAddons/

+

GET /OTHER/core/other/messagesHarById/

-

Parameters

+

Use the API endpoints in the 'exim' add-on instead.

+ +

Parameters

@@ -7145,7 +25967,7 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - + @@ -7155,15 +25977,9 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

Booleanids query string true
@@ -7176,29 +25992,28 @@ curl -X GET http://zap/JSON/autoupdate/action/setOptionR - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ - -

spider

-

spiderViewStatus

-

+

coreOtherProxy.pac

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/status/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/proxy.pac/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/view/status/");
+
URL obj = new URL("http://zap/OTHER/core/other/proxy.pac/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7214,64 +26029,23 @@ curl -X GET http://zap/JSON/spider/view/status/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/status/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/status/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/OTHER/core/other/proxy.pac/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/spider/view/status/

- -

Parameters

+

GET /OTHER/core/other/proxy.pac/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanIdqueryintegerfalsenone
+

Use the API endpoints in the 'network' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7284,27 +26058,28 @@ curl -X GET http://zap/JSON/spider/view/status/ - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderViewResults

-

+

coreOtherRootcert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/results/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/rootcert/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/view/results/");
+
URL obj = new URL("http://zap/OTHER/core/other/rootcert/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7320,64 +26095,23 @@ curl -X GET http://zap/JSON/spider/view/results/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/results/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/results/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/OTHER/core/other/rootcert/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/spider/view/results/

- -

Parameters

+

GET /OTHER/core/other/rootcert/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanIdqueryintegerfalsenone
+

Use the API endpoints in the 'network' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7390,27 +26124,28 @@ curl -X GET http://zap/JSON/spider/view/results/ - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderViewFullResults

-

+

coreOtherSendHarRequest

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/fullResults/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/sendHarRequest/?request=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/view/fullResults/?scanId=0");
+
URL obj = new URL("http://zap/OTHER/core/other/sendHarRequest/?request=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7426,35 +26161,21 @@ curl -X GET http://zap/JSON/spider/view/fullResults/?sca
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/view/fullResults/', params={
-  'scanId': '0'
+r = requests.get('http://zap/OTHER/core/other/sendHarRequest/', params={
+  'request': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/view/fullResults/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/spider/view/fullResults/

+

GET /OTHER/core/other/sendHarRequest/

-

Parameters

+

Use the API endpoints in the 'exim' add-on instead.

+ +

Parameters

@@ -7466,25 +26187,26 @@ curl -X GET http://zap/JSON/spider/view/fullResults/?sca - + - + + + + + + + +
scanIdrequest queryintegerstring true none
followRedirectsquerystringfalsenone

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7497,27 +26219,28 @@ curl -X GET http://zap/JSON/spider/view/fullResults/?sca - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderViewScans

-

+

coreOtherSetproxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/scans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/setproxy/?proxy=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/view/scans/");
+
URL obj = new URL("http://zap/OTHER/core/other/setproxy/?proxy=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7533,44 +26256,45 @@ curl -X GET http://zap/JSON/spider/view/scans/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/view/scans/', params={
-
+r = requests.get('http://zap/OTHER/core/other/setproxy/', params={
+  'proxy': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.content)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /OTHER/core/other/setproxy/

-result = RestClient.get 'http://zap/JSON/spider/view/scans/', - params: { - }, headers: headers +

Use the API endpoints in the 'network' component instead.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/spider/view/scans/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
proxyquerystringtruenone

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7583,27 +26307,28 @@ curl -X GET http://zap/JSON/spider/view/scans/ - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderViewExcludedFromScan

-

+

coreOtherXmlreport

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/excludedFromScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/core/other/xmlreport/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/view/excludedFromScan/");
+
URL obj = new URL("http://zap/OTHER/core/other/xmlreport/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7619,46 +26344,23 @@ curl -X GET http://zap/JSON/spider/view/excludedFromScan
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/excludedFromScan/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/excludedFromScan/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/OTHER/core/other/xmlreport/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/spider/view/excludedFromScan/

+

GET /OTHER/core/other/xmlreport/

-

Gets the regexes of URLs excluded from the spider scans.

+

Use the 'generate' API endpoint the 'reports' component instead.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -7671,27 +26373,28 @@ curl -X GET http://zap/JSON/spider/view/excludedFromScan - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderViewAllUrls

-

+

coreViewAlert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/allUrls/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/alert/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/allUrls/");
+
URL obj = new URL("http://zap/JSON/core/view/alert/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7707,34 +26410,39 @@ curl -X GET http://zap/JSON/spider/view/allUrls/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/allUrls/', params={
-
+r = requests.get('http://zap/JSON/core/view/alert/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/view/allUrls/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/core/view/alert/

-p JSON.parse(result) +

Use the API endpoint with the same name in the 'alert' component instead.

-
-

GET /JSON/spider/view/allUrls/

+

Parameters

-

Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone

Example responses

@@ -7742,11 +26450,12 @@ curl -X GET http://zap/JSON/spider/view/allUrls/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -7759,27 +26468,26 @@ curl -X GET http://zap/JSON/spider/view/allUrls/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewAddedNodes

-

+

coreViewAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/addedNodes/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/alerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/addedNodes/");
+
URL obj = new URL("http://zap/JSON/core/view/alerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7795,36 +26503,19 @@ curl -X GET http://zap/JSON/spider/view/addedNodes/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/addedNodes/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/addedNodes/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/alerts/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/addedNodes/

+

GET /JSON/core/view/alerts/

-

Returns a list of the names of the nodes added to the Sites tree by the specified scan.

+

Use the API endpoint with the same name in the 'alert' component instead.

-

Parameters

+

Parameters

@@ -7836,9 +26527,30 @@ curl -X GET http://zap/JSON/spider/view/addedNodes/ - + - + + + + + + + + + + + + + + + + + + + + + + @@ -7850,11 +26562,12 @@ curl -X GET http://zap/JSON/spider/view/addedNodes/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdbaseurl queryintegerstringfalseThe highest URL in the Sites tree under which alerts should be included.
startquerystringfalsenone
countquerystringfalsenone
riskIdquerystring false none
@@ -7867,27 +26580,26 @@ curl -X GET http://zap/JSON/spider/view/addedNodes/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewDomainsAlwaysInScope

-

+

coreViewAlertsSummary

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/domainsAlwaysInScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/alertsSummary/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/domainsAlwaysInScope/");
+
URL obj = new URL("http://zap/JSON/core/view/alertsSummary/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7903,34 +26615,37 @@ curl -X GET http://zap/JSON/spider/view/domainsAlwaysInS
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/domainsAlwaysInScope/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
+r = requests.get('http://zap/JSON/core/view/alertsSummary/', headers = headers)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/view/domainsAlwaysInScope/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/core/view/alertsSummary/

-p JSON.parse(result) +

Use the API endpoint with the same name in the 'alert' component instead.

-
-

GET /JSON/spider/view/domainsAlwaysInScope/

+

Parameters

-

Gets all the domains that are always in scope. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.

Example responses

@@ -7938,11 +26653,12 @@ curl -X GET http://zap/JSON/spider/view/domainsAlwaysInS

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -7955,27 +26671,26 @@ curl -X GET http://zap/JSON/spider/view/domainsAlwaysInS - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionDomainsAlwaysInScope

-

+

coreViewChildNodes

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/childNodes/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScope/");
+
URL obj = new URL("http://zap/JSON/core/view/childNodes/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -7991,34 +26706,37 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScope/', params={
+r = requests.get('http://zap/JSON/core/view/childNodes/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionDomainsAlwaysInScope/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/core/view/childNodes/

-p JSON.parse(result) +

Gets the child nodes underneath the specified URL in the Sites tree

-
-

GET /JSON/spider/view/optionDomainsAlwaysInScope/

+

Parameters

-

Use view domainsAlwaysInScope instead.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringfalsenone

Example responses

@@ -8026,11 +26744,12 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8043,27 +26762,26 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionDomainsAlwaysInScopeEnabled

-

+

coreViewExcludedFromProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/excludedFromProxy/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/");
+
URL obj = new URL("http://zap/JSON/core/view/excludedFromProxy/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8079,34 +26797,17 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/excludedFromProxy/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionDomainsAlwaysInScopeEnabled/

+

GET /JSON/core/view/excludedFromProxy/

-

Use view domainsAlwaysInScope instead.

+

Gets the regular expressions, applied to URLs, to exclude from the local proxies.

Example responses

@@ -8114,11 +26815,12 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8131,27 +26833,26 @@ curl -X GET http://zap/JSON/spider/view/optionDomainsAlw - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionHandleParameters

-

+

coreViewHomeDirectory

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionHandleParameters/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/homeDirectory/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionHandleParameters/");
+
URL obj = new URL("http://zap/JSON/core/view/homeDirectory/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8167,32 +26868,15 @@ curl -X GET http://zap/JSON/spider/view/optionHandlePara
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionHandleParameters/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionHandleParameters/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/homeDirectory/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionHandleParameters/

+

GET /JSON/core/view/homeDirectory/

Example responses

@@ -8200,11 +26884,12 @@ curl -X GET http://zap/JSON/spider/view/optionHandlePara

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8217,27 +26902,26 @@ curl -X GET http://zap/JSON/spider/view/optionHandlePara - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionMaxChildren

-

+

coreViewHosts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionMaxChildren/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/hosts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionMaxChildren/");
+
URL obj = new URL("http://zap/JSON/core/view/hosts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8253,34 +26937,17 @@ curl -X GET http://zap/JSON/spider/view/optionMaxChildre
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionMaxChildren/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionMaxChildren/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/hosts/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionMaxChildren/

+

GET /JSON/core/view/hosts/

-

Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

+

Gets the name of the hosts accessed through/by ZAP

Example responses

@@ -8288,11 +26955,12 @@ curl -X GET http://zap/JSON/spider/view/optionMaxChildre

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8305,27 +26973,26 @@ curl -X GET http://zap/JSON/spider/view/optionMaxChildre - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionMaxDepth

-

+

coreViewMessage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionMaxDepth/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/message/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionMaxDepth/");
+
URL obj = new URL("http://zap/JSON/core/view/message/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8341,34 +27008,39 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDepth/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionMaxDepth/', params={
-
+r = requests.get('http://zap/JSON/core/view/message/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionMaxDepth/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/core/view/message/

-p JSON.parse(result) +

Gets the HTTP message with the given ID. Returns the ID, request/response headers and bodies, cookies, note, type, RTT, and timestamp.

-
-

GET /JSON/spider/view/optionMaxDepth/

+

Parameters

-

Gets the maximum depth the spider can crawl, 0 if unlimited.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idquerystringtruenone

Example responses

@@ -8376,11 +27048,12 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDepth/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8393,27 +27066,26 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDepth/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionMaxDuration

-

+

coreViewMessages

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionMaxDuration/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/messages/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionMaxDuration/");
+
URL obj = new URL("http://zap/JSON/core/view/messages/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8429,32 +27101,51 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDuratio
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionMaxDuration/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/core/view/messages/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/core/view/messages/

-result = RestClient.get 'http://zap/JSON/spider/view/optionMaxDuration/', - params: { - }, headers: headers +

Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messages

-p JSON.parse(result) +

Parameters

- -

GET /JSON/spider/view/optionMaxDuration/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
startquerystringfalsenone
countquerystringfalsenone

Example responses

@@ -8462,11 +27153,12 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDuratio

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8479,27 +27171,26 @@ curl -X GET http://zap/JSON/spider/view/optionMaxDuratio - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionMaxParseSizeBytes

-

+

coreViewMessagesById

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionMaxParseSizeBytes/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/messagesById/?ids=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionMaxParseSizeBytes/");
+
URL obj = new URL("http://zap/JSON/core/view/messagesById/?ids=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8515,34 +27206,39 @@ curl -X GET http://zap/JSON/spider/view/optionMaxParseSi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionMaxParseSizeBytes/', params={
-
+r = requests.get('http://zap/JSON/core/view/messagesById/', params={
+  'ids': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionMaxParseSizeBytes/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/core/view/messagesById/

-p JSON.parse(result) +

Gets the HTTP messages with the given IDs.

- -

GET /JSON/spider/view/optionMaxParseSizeBytes/

+

Parameters

-

Gets the maximum size, in bytes, that a response might have to be parsed.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtruenone

Example responses

@@ -8550,11 +27246,12 @@ curl -X GET http://zap/JSON/spider/view/optionMaxParseSi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8567,27 +27264,26 @@ curl -X GET http://zap/JSON/spider/view/optionMaxParseSi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionMaxScansInUI

-

+

coreViewMode

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionMaxScansInUI/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/mode/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionMaxScansInUI/");
+
URL obj = new URL("http://zap/JSON/core/view/mode/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8603,32 +27299,17 @@ curl -X GET http://zap/JSON/spider/view/optionMaxScansIn
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionMaxScansInUI/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionMaxScansInUI/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/mode/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionMaxScansInUI/

+

GET /JSON/core/view/mode/

+ +

Gets the mode

Example responses

@@ -8636,11 +27317,12 @@ curl -X GET http://zap/JSON/spider/view/optionMaxScansIn

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8653,27 +27335,26 @@ curl -X GET http://zap/JSON/spider/view/optionMaxScansIn - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionRequestWaitTime

-

+

coreViewNumberOfAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionRequestWaitTime/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/numberOfAlerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionRequestWaitTime/");
+
URL obj = new URL("http://zap/JSON/core/view/numberOfAlerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8689,32 +27370,44 @@ curl -X GET http://zap/JSON/spider/view/optionRequestWai
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionRequestWaitTime/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/core/view/numberOfAlerts/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/core/view/numberOfAlerts/

-result = RestClient.get 'http://zap/JSON/spider/view/optionRequestWaitTime/', - params: { - }, headers: headers +

Use the API endpoint with the same name in the 'alert' component instead.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/spider/view/optionRequestWaitTime/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.
riskIdquerystringfalsenone

Example responses

@@ -8722,11 +27415,12 @@ curl -X GET http://zap/JSON/spider/view/optionRequestWai

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8739,27 +27433,26 @@ curl -X GET http://zap/JSON/spider/view/optionRequestWai - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionScope

-

+

coreViewNumberOfMessages

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/numberOfMessages/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionScope/");
+
URL obj = new URL("http://zap/JSON/core/view/numberOfMessages/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8775,32 +27468,37 @@ curl -X GET http://zap/JSON/spider/view/optionScope/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionScope/', params={
+r = requests.get('http://zap/JSON/core/view/numberOfMessages/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/core/view/numberOfMessages/

-result = RestClient.get 'http://zap/JSON/spider/view/optionScope/', - params: { - }, headers: headers +

Gets the number of messages, optionally filtering by URL

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/spider/view/optionScope/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.

Example responses

@@ -8808,11 +27506,12 @@ curl -X GET http://zap/JSON/spider/view/optionScope/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8825,27 +27524,26 @@ curl -X GET http://zap/JSON/spider/view/optionScope/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionScopeText

-

+

coreViewOptionAlertOverridesFilePath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionScopeText/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionAlertOverridesFilePath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionScopeText/");
+
URL obj = new URL("http://zap/JSON/core/view/optionAlertOverridesFilePath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8861,32 +27559,17 @@ curl -X GET http://zap/JSON/spider/view/optionScopeText/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionScopeText/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionScopeText/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionAlertOverridesFilePath/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionScopeText/

+

GET /JSON/core/view/optionAlertOverridesFilePath/

+ +

Gets the path to the file with alert overrides.

Example responses

@@ -8894,11 +27577,12 @@ curl -X GET http://zap/JSON/spider/view/optionScopeText/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8911,27 +27595,26 @@ curl -X GET http://zap/JSON/spider/view/optionScopeText/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionSkipURLString

-

+

coreViewOptionDefaultUserAgent

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionSkipURLString/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionDefaultUserAgent/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionSkipURLString/");
+
URL obj = new URL("http://zap/JSON/core/view/optionDefaultUserAgent/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -8947,32 +27630,17 @@ curl -X GET http://zap/JSON/spider/view/optionSkipURLStr
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionSkipURLString/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionSkipURLString/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionDefaultUserAgent/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionSkipURLString/

+

GET /JSON/core/view/optionDefaultUserAgent/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -8980,11 +27648,12 @@ curl -X GET http://zap/JSON/spider/view/optionSkipURLStr

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -8997,27 +27666,26 @@ curl -X GET http://zap/JSON/spider/view/optionSkipURLStr - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionThreadCount

-

+

coreViewOptionDnsTtlSuccessfulQueries

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionThreadCount/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionThreadCount/");
+
URL obj = new URL("http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9033,32 +27701,17 @@ curl -X GET http://zap/JSON/spider/view/optionThreadCoun
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionThreadCount/', params={
+r = requests.get('http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/view/optionThreadCount/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionThreadCount/

+

GET /JSON/core/view/optionDnsTtlSuccessfulQueries/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9066,11 +27719,12 @@ curl -X GET http://zap/JSON/spider/view/optionThreadCoun

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9083,27 +27737,26 @@ curl -X GET http://zap/JSON/spider/view/optionThreadCoun - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionUserAgent

-

+

coreViewOptionHttpState

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionUserAgent/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionHttpState/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionUserAgent/");
+
URL obj = new URL("http://zap/JSON/core/view/optionHttpState/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9119,32 +27772,17 @@ curl -X GET http://zap/JSON/spider/view/optionUserAgent/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionUserAgent/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionUserAgent/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionHttpState/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionUserAgent/

+

GET /JSON/core/view/optionHttpState/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9152,11 +27790,12 @@ curl -X GET http://zap/JSON/spider/view/optionUserAgent/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9169,27 +27808,26 @@ curl -X GET http://zap/JSON/spider/view/optionUserAgent/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionAcceptCookies

-

+

coreViewOptionHttpStateEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionAcceptCookies/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionHttpStateEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionAcceptCookies/");
+
URL obj = new URL("http://zap/JSON/core/view/optionHttpStateEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9205,34 +27843,17 @@ curl -X GET http://zap/JSON/spider/view/optionAcceptCook
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionAcceptCookies/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionAcceptCookies/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionHttpStateEnabled/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionAcceptCookies/

+

GET /JSON/core/view/optionHttpStateEnabled/

-

Gets whether or not a spider process should accept cookies while spidering.

+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9240,11 +27861,12 @@ curl -X GET http://zap/JSON/spider/view/optionAcceptCook

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9257,27 +27879,26 @@ curl -X GET http://zap/JSON/spider/view/optionAcceptCook - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionHandleODataParametersVisited

-

+

coreViewOptionMaximumAlertInstances

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionHandleODataParametersVisited/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionMaximumAlertInstances/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionHandleODataParametersVisited/");
+
URL obj = new URL("http://zap/JSON/core/view/optionMaximumAlertInstances/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9293,32 +27914,17 @@ curl -X GET http://zap/JSON/spider/view/optionHandleODat
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionHandleODataParametersVisited/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionHandleODataParametersVisited/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionMaximumAlertInstances/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionHandleODataParametersVisited/

+

GET /JSON/core/view/optionMaximumAlertInstances/

+ +

Gets the maximum number of alert instances to include in a report.

Example responses

@@ -9326,11 +27932,12 @@ curl -X GET http://zap/JSON/spider/view/optionHandleODat

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9343,27 +27950,26 @@ curl -X GET http://zap/JSON/spider/view/optionHandleODat - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionParseComments

-

+

coreViewOptionMergeRelatedAlerts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionParseComments/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionMergeRelatedAlerts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionParseComments/");
+
URL obj = new URL("http://zap/JSON/core/view/optionMergeRelatedAlerts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9379,32 +27985,17 @@ curl -X GET http://zap/JSON/spider/view/optionParseComme
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionParseComments/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionParseComments/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionMergeRelatedAlerts/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionParseComments/

+

GET /JSON/core/view/optionMergeRelatedAlerts/

+ +

Gets whether or not related alerts will be merged in any reports generated.

Example responses

@@ -9412,11 +28003,12 @@ curl -X GET http://zap/JSON/spider/view/optionParseComme

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9429,27 +28021,26 @@ curl -X GET http://zap/JSON/spider/view/optionParseComme - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionParseGit

-

+

coreViewOptionProxyChainName

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionParseGit/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainName/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionParseGit/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainName/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9465,32 +28056,17 @@ curl -X GET http://zap/JSON/spider/view/optionParseGit/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionParseGit/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionParseGit/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainName/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionParseGit/

+

GET /JSON/core/view/optionProxyChainName/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9498,11 +28074,12 @@ curl -X GET http://zap/JSON/spider/view/optionParseGit/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9515,27 +28092,26 @@ curl -X GET http://zap/JSON/spider/view/optionParseGit/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionParseRobotsTxt

-

+

coreViewOptionProxyChainPassword

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionParseRobotsTxt/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainPassword/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionParseRobotsTxt/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPassword/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9551,32 +28127,17 @@ curl -X GET http://zap/JSON/spider/view/optionParseRobot
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/view/optionParseRobotsTxt/', params={
+r = requests.get('http://zap/JSON/core/view/optionProxyChainPassword/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/view/optionParseRobotsTxt/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionParseRobotsTxt/

+

GET /JSON/core/view/optionProxyChainPassword/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9584,11 +28145,12 @@ curl -X GET http://zap/JSON/spider/view/optionParseRobot

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9601,27 +28163,26 @@ curl -X GET http://zap/JSON/spider/view/optionParseRobot - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionParseSVNEntries

-

+

coreViewOptionProxyChainPort

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionParseSVNEntries/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainPort/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionParseSVNEntries/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPort/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9637,32 +28198,17 @@ curl -X GET http://zap/JSON/spider/view/optionParseSVNEn
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionParseSVNEntries/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionParseSVNEntries/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainPort/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionParseSVNEntries/

+

GET /JSON/core/view/optionProxyChainPort/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9670,11 +28216,12 @@ curl -X GET http://zap/JSON/spider/view/optionParseSVNEn

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9687,27 +28234,26 @@ curl -X GET http://zap/JSON/spider/view/optionParseSVNEn - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionParseSitemapXml

-

+

coreViewOptionProxyChainPrompt

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionParseSitemapXml/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainPrompt/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionParseSitemapXml/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPrompt/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9723,32 +28269,17 @@ curl -X GET http://zap/JSON/spider/view/optionParseSitem
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionParseSitemapXml/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionParseSitemapXml/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainPrompt/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionParseSitemapXml/

+

GET /JSON/core/view/optionProxyChainPrompt/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9756,11 +28287,12 @@ curl -X GET http://zap/JSON/spider/view/optionParseSitem

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9773,27 +28305,26 @@ curl -X GET http://zap/JSON/spider/view/optionParseSitem - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionPostForm

-

+

coreViewOptionProxyChainRealm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionPostForm/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainRealm/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionPostForm/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainRealm/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9809,32 +28340,17 @@ curl -X GET http://zap/JSON/spider/view/optionPostForm/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionPostForm/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionPostForm/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainRealm/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionPostForm/

+

GET /JSON/core/view/optionProxyChainRealm/

+ +

Use the API endpoints in the 'network' component instead.

Example responses

@@ -9842,11 +28358,12 @@ curl -X GET http://zap/JSON/spider/view/optionPostForm/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9859,27 +28376,26 @@ curl -X GET http://zap/JSON/spider/view/optionPostForm/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionProcessForm

-

+

coreViewOptionProxyChainSkipName

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionProcessForm/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainSkipName/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionProcessForm/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainSkipName/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9895,32 +28411,17 @@ curl -X GET http://zap/JSON/spider/view/optionProcessFor
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionProcessForm/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionProcessForm/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainSkipName/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionProcessForm/

+

GET /JSON/core/view/optionProxyChainSkipName/

+ +

Use view proxyChainExcludedDomains instead.

Example responses

@@ -9928,11 +28429,12 @@ curl -X GET http://zap/JSON/spider/view/optionProcessFor

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -9945,27 +28447,26 @@ curl -X GET http://zap/JSON/spider/view/optionProcessFor - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionSendRefererHeader

-

+

coreViewOptionProxyChainUserName

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionSendRefererHeader/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyChainUserName/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionSendRefererHeader/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainUserName/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -9981,34 +28482,17 @@ curl -X GET http://zap/JSON/spider/view/optionSendRefere
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionSendRefererHeader/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionSendRefererHeader/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyChainUserName/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionSendRefererHeader/

+

GET /JSON/core/view/optionProxyChainUserName/

-

Gets whether or not the 'Referer' header should be sent while spidering.

+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -10016,11 +28500,12 @@ curl -X GET http://zap/JSON/spider/view/optionSendRefere

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10033,27 +28518,26 @@ curl -X GET http://zap/JSON/spider/view/optionSendRefere - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderViewOptionShowAdvancedDialog

-

+

coreViewOptionProxyExcludedDomains

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/view/optionShowAdvancedDialog/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomains/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/view/optionShowAdvancedDialog/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomains/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10069,32 +28553,17 @@ curl -X GET http://zap/JSON/spider/view/optionShowAdvanc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/view/optionShowAdvancedDialog/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/view/optionShowAdvancedDialog/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomains/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/view/optionShowAdvancedDialog/

+

GET /JSON/core/view/optionProxyExcludedDomains/

+ +

Use view proxyChainExcludedDomains instead.

Example responses

@@ -10102,11 +28571,12 @@ curl -X GET http://zap/JSON/spider/view/optionShowAdvanc

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10119,27 +28589,26 @@ curl -X GET http://zap/JSON/spider/view/optionShowAdvanc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionScan

-

+

coreViewOptionProxyExcludedDomainsEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/scan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/scan/");
+
URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10155,82 +28624,17 @@ curl -X GET http://zap/JSON/spider/action/scan/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/scan/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/scan/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/scan/

- -

Runs the spider against the given URL (or context). Optionally, the 'maxChildren' parameter can be set to limit the number of children scanned, the 'recurse' parameter can be used to prevent the spider from seeding recursively, the parameter 'contextName' can be used to constrain the scan to a Context and the parameter 'subtreeOnly' allows to restrict the spider under a site's subtree (using the specified 'url').

- -

Parameters

+

GET /JSON/core/view/optionProxyExcludedDomainsEnabled/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
urlquerystringfalsenone
maxChildrenqueryintegerfalsenone
recursequerybooleanfalsenone
contextNamequerystringfalsenone
subtreeOnlyquerybooleanfalsenone
+

Use view proxyChainExcludedDomains instead.

Example responses

@@ -10238,11 +28642,12 @@ curl -X GET http://zap/JSON/spider/action/scan/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10255,27 +28660,26 @@ curl -X GET http://zap/JSON/spider/action/scan/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionScanAsUser

-

+

coreViewOptionSingleCookieRequestHeader

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/scanAsUser/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionSingleCookieRequestHeader/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/scanAsUser/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/core/view/optionSingleCookieRequestHeader/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10291,91 +28695,17 @@ curl -X GET http://zap/JSON/spider/action/scanAsUser/?co
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/scanAsUser/', params={
-  'contextId': '0',  'userId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/scanAsUser/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionSingleCookieRequestHeader/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/scanAsUser/

- -

Runs the spider from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

- -

Parameters

+

GET /JSON/core/view/optionSingleCookieRequestHeader/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
userIdqueryintegertruenone
urlquerystringfalsenone
maxChildrenqueryintegerfalsenone
recursequerybooleanfalsenone
subtreeOnlyquerybooleanfalsenone
+

Option no longer in effective use.

Example responses

@@ -10383,11 +28713,12 @@ curl -X GET http://zap/JSON/spider/action/scanAsUser/?co

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10400,27 +28731,26 @@ curl -X GET http://zap/JSON/spider/action/scanAsUser/?co - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionPause

-

+

coreViewOptionTimeoutInSecs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/pause/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionTimeoutInSecs/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/pause/?scanId=0");
+
URL obj = new URL("http://zap/JSON/core/view/optionTimeoutInSecs/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10436,53 +28766,17 @@ curl -X GET http://zap/JSON/spider/action/pause/?scanId<
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/pause/', params={
-  'scanId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/pause/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionTimeoutInSecs/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/pause/

- -

Parameters

+

GET /JSON/core/view/optionTimeoutInSecs/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanIdqueryintegertruenone
+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -10490,11 +28784,12 @@ curl -X GET http://zap/JSON/spider/action/pause/?scanId<

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10507,27 +28802,26 @@ curl -X GET http://zap/JSON/spider/action/pause/?scanId< - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionResume

-

+

coreViewOptionUseProxyChain

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/resume/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionUseProxyChain/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/resume/?scanId=0");
+
URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChain/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10543,53 +28837,17 @@ curl -X GET http://zap/JSON/spider/action/resume/?scanId
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/resume/', params={
-  'scanId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/resume/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionUseProxyChain/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/resume/

- -

Parameters

+

GET /JSON/core/view/optionUseProxyChain/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanIdqueryintegertruenone
+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -10597,11 +28855,12 @@ curl -X GET http://zap/JSON/spider/action/resume/?scanId

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10614,27 +28873,26 @@ curl -X GET http://zap/JSON/spider/action/resume/?scanId - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionStop

-

+

coreViewOptionUseProxyChainAuth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/stop/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionUseProxyChainAuth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/stop/");
+
URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChainAuth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10650,52 +28908,17 @@ curl -X GET http://zap/JSON/spider/action/stop/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/stop/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/stop/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/optionUseProxyChainAuth/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/stop/

- -

Parameters

+

GET /JSON/core/view/optionUseProxyChainAuth/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanIdqueryintegerfalsenone
+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -10703,11 +28926,12 @@ curl -X GET http://zap/JSON/spider/action/stop/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10720,27 +28944,26 @@ curl -X GET http://zap/JSON/spider/action/stop/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionRemoveScan

-

+

coreViewOptionUseSocksProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/removeScan/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/optionUseSocksProxy/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/removeScan/?scanId=0");
+
URL obj = new URL("http://zap/JSON/core/view/optionUseSocksProxy/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10756,65 +28979,101 @@ curl -X GET http://zap/JSON/spider/action/removeScan/?sc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/removeScan/', params={
-  'scanId': '0'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/core/view/optionUseSocksProxy/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/action/removeScan/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
+
+

GET /JSON/core/view/optionUseSocksProxy/

-p JSON.parse(result) +

Use the API endpoints in the 'network' component instead.

-
-

GET /JSON/spider/action/removeScan/

+
+

Example responses

-

Parameters

+

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
scanIdqueryintegertruenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

coreViewProxyChainExcludedDomains

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/core/view/proxyChainExcludedDomains/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/core/view/proxyChainExcludedDomains/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/core/view/proxyChainExcludedDomains/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/core/view/proxyChainExcludedDomains/

+ +

Use the API endpoints in the 'network' component instead.

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10827,27 +29086,26 @@ curl -X GET http://zap/JSON/spider/action/removeScan/?sc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionPauseAllScans

-

+

coreViewSessionLocation

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/pauseAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/sessionLocation/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/pauseAllScans/");
+
URL obj = new URL("http://zap/JSON/core/view/sessionLocation/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10863,32 +29121,17 @@ curl -X GET http://zap/JSON/spider/action/pauseAllScans/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/pauseAllScans/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/pauseAllScans/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/sessionLocation/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/pauseAllScans/

+

GET /JSON/core/view/sessionLocation/

+ +

Gets the location of the current session file

Example responses

@@ -10896,11 +29139,12 @@ curl -X GET http://zap/JSON/spider/action/pauseAllScans/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10913,27 +29157,26 @@ curl -X GET http://zap/JSON/spider/action/pauseAllScans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionResumeAllScans

-

+

coreViewSites

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/resumeAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/sites/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/resumeAllScans/");
+
URL obj = new URL("http://zap/JSON/core/view/sites/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -10949,32 +29192,17 @@ curl -X GET http://zap/JSON/spider/action/resumeAllScans
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/resumeAllScans/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/core/view/sites/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/resumeAllScans/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/resumeAllScans/

+

GET /JSON/core/view/sites/

+ +

Gets the sites accessed through/by ZAP (scheme and domain)

Example responses

@@ -10982,11 +29210,12 @@ curl -X GET http://zap/JSON/spider/action/resumeAllScans

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -10999,27 +29228,26 @@ curl -X GET http://zap/JSON/spider/action/resumeAllScans - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionStopAllScans

-

+

coreViewUrls

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/stopAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/urls/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/stopAllScans/");
+
URL obj = new URL("http://zap/JSON/core/view/urls/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11035,32 +29263,37 @@ curl -X GET http://zap/JSON/spider/action/stopAllScans/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/stopAllScans/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/core/view/urls/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/core/view/urls/

-result = RestClient.get 'http://zap/JSON/spider/action/stopAllScans/', - params: { - }, headers: headers +

Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/spider/action/stopAllScans/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.

Example responses

@@ -11068,11 +29301,12 @@ curl -X GET http://zap/JSON/spider/action/stopAllScans/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -11085,27 +29319,26 @@ curl -X GET http://zap/JSON/spider/action/stopAllScans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionRemoveAllScans

-

+

coreViewVersion

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/removeAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/version/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/removeAllScans/");
+
URL obj = new URL("http://zap/JSON/core/view/version/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11121,32 +29354,17 @@ curl -X GET http://zap/JSON/spider/action/removeAllScans
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/removeAllScans/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/removeAllScans/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/core/view/version/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/removeAllScans/

+

GET /JSON/core/view/version/

+ +

Gets ZAP version

Example responses

@@ -11154,11 +29372,12 @@ curl -X GET http://zap/JSON/spider/action/removeAllScans

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -11171,27 +29390,26 @@ curl -X GET http://zap/JSON/spider/action/removeAllScans - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionClearExcludedFromScan

-

+

coreViewZapHomePath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/clearExcludedFromScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/core/view/zapHomePath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/clearExcludedFromScan/");
+
URL obj = new URL("http://zap/JSON/core/view/zapHomePath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11207,34 +29425,17 @@ curl -X GET http://zap/JSON/spider/action/clearExcludedF
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/clearExcludedFromScan/', params={
-
-}, headers = headers)
+r = requests.get('http://zap/JSON/core/view/zapHomePath/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/clearExcludedFromScan/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/clearExcludedFromScan/

+

GET /JSON/core/view/zapHomePath/

-

Clears the regexes of URLs excluded from the spider scans.

+

Gets the path to ZAP's home directory.

Example responses

@@ -11242,11 +29443,12 @@ curl -X GET http://zap/JSON/spider/action/clearExcludedF

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -11259,27 +29461,28 @@ curl -X GET http://zap/JSON/spider/action/clearExcludedF - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionExcludeFromScan

-

+ +

dev

+

devOtherOpenapi

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/excludeFromScan/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/dev/other/openapi/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/action/excludeFromScan/?regex=string");
+
URL obj = new URL("http://zap/OTHER/dev/other/openapi/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11295,37 +29498,89 @@ curl -X GET http://zap/JSON/spider/action/excludeFromSca
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/action/excludeFromScan/', params={
-  'regex': 'string'
-}, headers = headers)
+r = requests.get('http://zap/OTHER/dev/other/openapi/', headers = headers)
+
+print(r.content)
+
+
+

GET /OTHER/dev/other/openapi/

+ +

Provides the OpenAPI definition of the ZAP API, in YAML format.

+ +
+

Example responses

+
+ +

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of OTHER endpoints.None
-print r.json() +

Response Schema

-
require 'rest-client'
-require 'json'
+
+
+

exim

+

eximActionImportHar

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/exim/action/importHar/?filePath=string \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/exim/action/importHar/?filePath=string");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/excludeFromScan/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/exim/action/importHar/', params={
+  'filePath': 'string'
+}, headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/excludeFromScan/

+

GET /JSON/exim/action/importHar/

-

Adds a regex of URLs that should be excluded from the spider scans.

+

Imports a HAR file.

-

Parameters

+

Parameters

@@ -11337,7 +29592,7 @@ curl -X GET http://zap/JSON/spider/action/excludeFromSca - + @@ -11351,11 +29606,12 @@ curl -X GET http://zap/JSON/spider/action/excludeFromSca

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

regexfilePath query string true
@@ -11368,27 +29624,26 @@ curl -X GET http://zap/JSON/spider/action/excludeFromSca - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionAddDomainAlwaysInScope

-

+

eximActionImportModsec2Logs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/exim/action/importModsec2Logs/?filePath=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string");
+
URL obj = new URL("http://zap/JSON/exim/action/importModsec2Logs/?filePath=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11404,37 +29659,21 @@ curl -X GET http://zap/JSON/spider/action/addDomainAlway
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/addDomainAlwaysInScope/', params={
-  'value': 'string'
+r = requests.get('http://zap/JSON/exim/action/importModsec2Logs/', params={
+  'filePath': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/addDomainAlwaysInScope/',
-  params: {
-  'value' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/addDomainAlwaysInScope/

+

GET /JSON/exim/action/importModsec2Logs/

-

Adds a new domain that's always in scope, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

+

Imports ModSecurity2 logs from the file with the given file system path.

-

Parameters

+

Parameters

@@ -11446,26 +29685,12 @@ curl -X GET http://zap/JSON/spider/action/addDomainAlway - + - - - - - - - - - - - - - -
valuefilePath query string true none
isRegexquerybooleanfalsenone
isEnabledquerybooleanfalsenone
@@ -11474,11 +29699,12 @@ curl -X GET http://zap/JSON/spider/action/addDomainAlway

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -11491,27 +29717,26 @@ curl -X GET http://zap/JSON/spider/action/addDomainAlway - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionModifyDomainAlwaysInScope

-

+

eximActionImportUrls

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/exim/action/importUrls/?filePath=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=0");
+
URL obj = new URL("http://zap/JSON/exim/action/importUrls/?filePath=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11527,37 +29752,21 @@ curl -X GET http://zap/JSON/spider/action/modifyDomainAl
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/modifyDomainAlwaysInScope/', params={
-  'idx': '0'
+r = requests.get('http://zap/JSON/exim/action/importUrls/', params={
+  'filePath': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/modifyDomainAlwaysInScope/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/modifyDomainAlwaysInScope/

+

GET /JSON/exim/action/importUrls/

-

Modifies a domain that's always in scope. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view domainsAlwaysInScope.

+

Imports URLs (one per line) from the file with the given file system path.

-

Parameters

+

Parameters

@@ -11569,31 +29778,10 @@ curl -X GET http://zap/JSON/spider/action/modifyDomainAl - - - - - - - - + - - - - - - - - - - - - - - - +
idxqueryintegertruenone
valuefilePath query stringfalsenone
isRegexquerybooleanfalsenone
isEnabledquerybooleanfalsetrue none
@@ -11604,11 +29792,12 @@ curl -X GET http://zap/JSON/spider/action/modifyDomainAl

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -11621,27 +29810,26 @@ curl -X GET http://zap/JSON/spider/action/modifyDomainAl - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionRemoveDomainAlwaysInScope

-

+

eximActionImportZapLogs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/exim/action/importZapLogs/?filePath=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=0");
+
URL obj = new URL("http://zap/JSON/exim/action/importZapLogs/?filePath=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11657,37 +29845,21 @@ curl -X GET http://zap/JSON/spider/action/removeDomainAl
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/removeDomainAlwaysInScope/', params={
-  'idx': '0'
+r = requests.get('http://zap/JSON/exim/action/importZapLogs/', params={
+  'filePath': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/removeDomainAlwaysInScope/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/removeDomainAlwaysInScope/

+

GET /JSON/exim/action/importZapLogs/

-

Removes a domain that's always in scope, with the given index. The index can be obtained with the view domainsAlwaysInScope.

+

Imports previously exported ZAP messages from the file with the given file system path.

-

Parameters

+

Parameters

@@ -11699,9 +29871,9 @@ curl -X GET http://zap/JSON/spider/action/removeDomainAl - + - + @@ -11713,11 +29885,12 @@ curl -X GET http://zap/JSON/spider/action/removeDomainAl

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idxfilePath queryintegerstring true none
@@ -11730,27 +29903,26 @@ curl -X GET http://zap/JSON/spider/action/removeDomainAl - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionEnableAllDomainsAlwaysInScope

-

+

eximOtherExportHar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/exim/other/exportHar/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/");
+
URL obj = new URL("http://zap/OTHER/exim/other/exportHar/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11766,46 +29938,57 @@ curl -X GET http://zap/JSON/spider/action/enableAllDomai
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
+r = requests.get('http://zap/OTHER/exim/other/exportHar/', headers = headers)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.content)
 
-result = RestClient.get 'http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/',
-  params: {
-  }, headers: headers
+
+

GET /OTHER/exim/other/exportHar/

-p JSON.parse(result) +

Gets the HTTP messages sent through/by ZAP, in HAR format, optionally filtered by URL and paginated with 'start' position and 'count' of messages

-
-

GET /JSON/spider/action/enableAllDomainsAlwaysInScope/

+

Parameters

-

Enables all domains that are always in scope.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
baseurlquerystringfalseThe URL below which messages should be included.
startquerystringfalseThe position (or offset) within the results to use as a starting position for the information returned.
countquerystringfalseThe number of results to return.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -11818,27 +30001,28 @@ curl -X GET http://zap/JSON/spider/action/enableAllDomai - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderActionDisableAllDomainsAlwaysInScope

-

+

eximOtherExportHarById

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/exim/other/exportHarById/?ids=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/");
+
URL obj = new URL("http://zap/OTHER/exim/other/exportHarById/?ids=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11854,46 +30038,45 @@ curl -X GET http://zap/JSON/spider/action/disableAllDoma
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/', params={
-
+r = requests.get('http://zap/OTHER/exim/other/exportHarById/', params={
+  'ids': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.content)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/',
-  params: {
-  }, headers: headers
+
+

GET /OTHER/exim/other/exportHarById/

-p JSON.parse(result) +

Gets the HTTP messages with the given IDs, in HAR format.

- -

GET /JSON/spider/action/disableAllDomainsAlwaysInScope/

+

Parameters

-

Disables all domains that are always in scope.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
idsquerystringtrueThe ID (number(s)) of the message(s) to be returned.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -11906,27 +30089,28 @@ curl -X GET http://zap/JSON/spider/action/disableAllDoma - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderActionSetOptionHandleParameters

-

+

eximOtherSendHarRequest

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionHandleParameters/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/exim/other/sendHarRequest/?request=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleParameters/?String=string");
+
URL obj = new URL("http://zap/OTHER/exim/other/sendHarRequest/?request=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -11942,35 +30126,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionHandleParameters/', params={
-  'String': 'string'
+r = requests.get('http://zap/OTHER/exim/other/sendHarRequest/', params={
+  'request': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionHandleParameters/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/spider/action/setOptionHandleParameters/

+

GET /OTHER/exim/other/sendHarRequest/

-

Parameters

+

Sends the first HAR request entry, optionally following redirections. Returns, in HAR format, the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

+ +

Parameters

@@ -11982,25 +30152,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl - + - + + + + + + + +
Stringrequest query string truenoneThe raw JSON of a HAR request.
followRedirectsquerystringfalseTrue if redirects should be followed, false otherwise.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -12013,27 +30184,30 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

spiderActionSetOptionScopeString

-

+ +

forcedUser

+

forcedUserActionSetForcedUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionScopeString/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/forcedUser/action/setForcedUser/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionScopeString/?String=string");
+
URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUser/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12049,37 +30223,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionScope
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionScopeString/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/forcedUser/action/setForcedUser/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionScopeString/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionScopeString/

+

GET /JSON/forcedUser/action/setForcedUser/

-

Use actions [add|modify|remove]DomainAlwaysInScope instead.

+

Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)

-

Parameters

+

Parameters

@@ -12091,7 +30249,14 @@ curl -X GET http://zap/JSON/spider/action/setOptionScope - + + + + + + + + @@ -12105,11 +30270,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionScope

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

StringcontextIdquerystringtruenone
userId query string true
@@ -12122,27 +30288,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionScope - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionSkipURLString

-

+

forcedUserActionSetForcedUserModeEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionSkipURLString/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionSkipURLString/?String=string");
+
URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12158,35 +30323,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionSkipU
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionSkipURLString/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/', params={
+  'boolean': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionSkipURLString/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionSkipURLString/

+

GET /JSON/forcedUser/action/setForcedUserModeEnabled/

-

Parameters

+

Sets if 'forced user' mode should be enabled or not

+ +

Parameters

@@ -12198,7 +30349,7 @@ curl -X GET http://zap/JSON/spider/action/setOptionSkipU - + @@ -12212,11 +30363,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionSkipU

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

Stringboolean query string true
@@ -12229,27 +30381,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionSkipU - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionUserAgent

-

+

forcedUserViewGetForcedUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionUserAgent/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/forcedUser/view/getForcedUser/?contextId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionUserAgent/?String=string");
+
URL obj = new URL("http://zap/JSON/forcedUser/view/getForcedUser/?contextId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12265,35 +30416,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionUserA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionUserAgent/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/forcedUser/view/getForcedUser/', params={
+  'contextId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionUserAgent/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionUserAgent/

+

GET /JSON/forcedUser/view/getForcedUser/

-

Parameters

+

Gets the user (ID) set as 'forced user' for the given context (ID)

+ +

Parameters

@@ -12305,7 +30442,7 @@ curl -X GET http://zap/JSON/spider/action/setOptionUserA - + @@ -12319,11 +30456,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionUserA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

StringcontextId query string true
@@ -12336,27 +30474,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionUserA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionAcceptCookies

-

+

forcedUserViewIsForcedUserModeEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12372,55 +30509,17 @@ curl -X GET http://zap/JSON/spider/action/setOptionAccep
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionAcceptCookies/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionAcceptCookies/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionAcceptCookies/

- -

Sets whether or not a spider process should accept cookies while spidering.

- -

Parameters

+

GET /JSON/forcedUser/view/isForcedUserModeEnabled/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns 'true' if 'forced user' mode is enabled, 'false' otherwise

Example responses

@@ -12428,11 +30527,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionAccep

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12445,27 +30545,28 @@ curl -X GET http://zap/JSON/spider/action/setOptionAccep - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionHandleODataParametersVisited

-

+ +

graphql

+

graphqlActionImportFile

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/importFile/?endurl=string&file=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/importFile/?endurl=string&file=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12481,35 +30582,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/importFile/', params={
+  'endurl': 'string',  'file': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionHandleODataParametersVisited/

+

GET /JSON/graphql/action/importFile/

-

Parameters

+

Imports a GraphQL Schema from a File.

+ +

Parameters

@@ -12521,11 +30608,18 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl - + - + + + + + + + +
Booleanendurl query string truenoneThe Endpoint URL.
filequerystringtrueThe File That Contains the GraphQL Schema.
@@ -12535,11 +30629,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12552,27 +30647,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionHandl - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionMaxChildren

-

+

graphqlActionImportUrl

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/importUrl/?endurl=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/action/importUrl/?endurl=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12588,37 +30682,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionMaxChildren/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/graphql/action/importUrl/', params={
+  'endurl': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxChildren/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionMaxChildren/

+

GET /JSON/graphql/action/importUrl/

-

Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

+

Imports a GraphQL Schema from a URL.

-

Parameters

+

Parameters

@@ -12630,11 +30708,18 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxCh - + - + - + + + + + + + +
Integerendurl queryintegerstring truenoneThe Endpoint URL.
urlquerystringfalseThe URL Locating the GraphQL Schema.
@@ -12644,11 +30729,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12661,27 +30747,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionMaxDepth

-

+

graphqlActionSetOptionArgsType

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionArgsType/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionArgsType/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12697,37 +30782,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionMaxDepth/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/graphql/action/setOptionArgsType/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxDepth/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionMaxDepth/

+

GET /JSON/graphql/action/setOptionArgsType/

-

Sets the maximum depth the spider can crawl, 0 for unlimited depth.

+

Sets how arguments are specified.

-

Parameters

+

Parameters

@@ -12739,11 +30808,11 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDe - + - + - +
IntegerString queryintegerstring truenoneCan be "INLINE", "VARIABLES", or "BOTH".
@@ -12753,11 +30822,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12770,27 +30840,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionMaxDuration

-

+

graphqlActionSetOptionLenientMaxQueryDepthEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12806,35 +30875,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDu
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionMaxDuration/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxDuration/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionMaxDuration/

+

GET /JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/

-

Parameters

+

Sets whether or not Maximum Query Depth is enforced leniently.

+ +

Parameters

@@ -12846,11 +30901,11 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDu - + - + - +
IntegerBoolean queryintegerboolean truenoneEnforce Leniently (true or false).
@@ -12860,11 +30915,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDu

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12877,27 +30933,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxDu - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionMaxParseSizeBytes

-

+

graphqlActionSetOptionMaxAdditionalQueryDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -12913,37 +30968,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxPa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/', params={
+r = requests.get('http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/', params={
   'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionMaxParseSizeBytes/

+

GET /JSON/graphql/action/setOptionMaxAdditionalQueryDepth/

-

Sets the maximum size, in bytes, that a response might have to be parsed. This allows the spider to skip big responses/files.

+

Sets the maximum additional query generation depth (used if enforced leniently).

-

Parameters

+

Parameters

@@ -12959,7 +30998,7 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxPa - +
query integer truenoneThe Maximum Additional Depth.
@@ -12969,11 +31008,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxPa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -12986,27 +31026,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxPa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionMaxScansInUI

-

+

graphqlActionSetOptionMaxArgsDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionMaxArgsDepth/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxArgsDepth/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13022,35 +31061,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxSc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionMaxScansInUI/', params={
+r = requests.get('http://zap/JSON/graphql/action/setOptionMaxArgsDepth/', params={
   'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxScansInUI/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionMaxScansInUI/

+

GET /JSON/graphql/action/setOptionMaxArgsDepth/

-

Parameters

+

Sets the maximum arguments generation depth.

+ +

Parameters

@@ -13066,7 +31091,7 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxSc - +
query integer truenoneThe Maximum Depth.
@@ -13076,11 +31101,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxSc

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13093,27 +31119,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionMaxSc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionParseComments

-

+

graphqlActionSetOptionMaxQueryDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionParseComments/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionMaxQueryDepth/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseComments/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxQueryDepth/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13129,142 +31154,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionParseComments/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/setOptionMaxQueryDepth/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseComments/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionParseComments/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
- -
-

Example responses

- -

default Response

-
-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

- - - - - - - - - - - - - - - -
StatusMeaningDescriptionSchema
defaultDefaultunexpected errorError
- - -

spiderActionSetOptionParseGit

-

- -
-

Code samples

-
-
# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionParseGit/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
-
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseGit/?Boolean=string");
-HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("GET");
-int responseCode = con.getResponseCode();
-BufferedReader in = new BufferedReader(
-    new InputStreamReader(con.getInputStream()));
-String inputLine;
-StringBuffer response = new StringBuffer();
-while ((inputLine = in.readLine()) != null) {
-    response.append(inputLine);
-}
-in.close();
-System.out.println(response.toString());
-
-
import requests
-headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/setOptionParseGit/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
+

GET /JSON/graphql/action/setOptionMaxQueryDepth/

-headers = { - 'Accept' => 'application/json', - 'X-ZAP-API-Key' => 'API_KEY' -} - -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseGit/', - params: { - 'Boolean' => 'string' -}, headers: headers - -p JSON.parse(result) +

Sets the maximum query generation depth.

-
-

GET /JSON/spider/action/setOptionParseGit/

- -

Parameters

+

Parameters

@@ -13276,11 +31180,11 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - + - + - +
BooleanInteger querystringinteger truenoneThe Maximum Depth.
@@ -13290,11 +31194,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13307,27 +31212,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionParseRobotsTxt

-

+

graphqlActionSetOptionOptionalArgsEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13343,35 +31247,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionParseRobotsTxt/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseRobotsTxt/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionParseRobotsTxt/

+

GET /JSON/graphql/action/setOptionOptionalArgsEnabled/

-

Parameters

+

Sets whether or not Optional Arguments should be specified.

+ +

Parameters

@@ -13385,9 +31275,9 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - + - +
Boolean querystringboolean truenoneSpecify Optional Arguments (true or false).
@@ -13397,11 +31287,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13414,27 +31305,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionParseSVNEntries

-

+

graphqlActionSetOptionQueryGenEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionQueryGenEnabled/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionQueryGenEnabled/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13450,35 +31340,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionParseSVNEntries/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/setOptionQueryGenEnabled/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseSVNEntries/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionParseSVNEntries/

+

GET /JSON/graphql/action/setOptionQueryGenEnabled/

-

Parameters

+

Sets whether the query generator is enabled.

+ +

Parameters

@@ -13492,9 +31368,9 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - + - +
Boolean querystringboolean truenoneEnable query generation (true or false).
@@ -13504,11 +31380,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13521,27 +31398,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionParseSitemapXml

-

+

graphqlActionSetOptionQuerySplitType

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionQuerySplitType/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionQuerySplitType/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13557,35 +31433,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionParseSitemapXml/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/setOptionQuerySplitType/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseSitemapXml/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionParseSitemapXml/

+

GET /JSON/graphql/action/setOptionQuerySplitType/

-

Parameters

+

Sets the level for which a single query is generated.

+ +

Parameters

@@ -13597,11 +31459,11 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - + - +
BooleanString query string truenoneCan be "LEAF", "ROOT_FIELD", or "OPERATION".
@@ -13611,11 +31473,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13628,27 +31491,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionParse - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionPostForm

-

+

graphqlActionSetOptionRequestMethod

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionPostForm/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/action/setOptionRequestMethod/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionPostForm/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/action/setOptionRequestMethod/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13664,35 +31526,21 @@ curl -X GET http://zap/JSON/spider/action/setOptionPostF
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionPostForm/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/graphql/action/setOptionRequestMethod/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionPostForm/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionPostForm/

+

GET /JSON/graphql/action/setOptionRequestMethod/

-

Parameters

+

Sets the request method.

+ +

Parameters

@@ -13704,11 +31552,11 @@ curl -X GET http://zap/JSON/spider/action/setOptionPostF - + - +
BooleanString query string truenoneCan be "POST_JSON", "POST_GRAPHQL", or "GET".
@@ -13718,11 +31566,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionPostF

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13735,27 +31584,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionPostF - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionProcessForm

-

+

graphqlViewOptionArgsType

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionArgsType/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionArgsType/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13771,53 +31619,17 @@ curl -X GET http://zap/JSON/spider/action/setOptionProce
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/setOptionProcessForm/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionProcessForm/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/graphql/view/optionArgsType/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionProcessForm/

- -

Parameters

+

GET /JSON/graphql/view/optionArgsType/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns how arguments are currently specified.

Example responses

@@ -13825,11 +31637,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionProce

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13842,27 +31655,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionProce - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionRequestWaitTime

-

+

graphqlViewOptionLenientMaxQueryDepthEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13878,53 +31690,17 @@ curl -X GET http://zap/JSON/spider/action/setOptionReque
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionRequestWaitTime/', params={
-  'Integer': '0'
-}, headers = headers)
+r = requests.get('http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionRequestWaitTime/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionRequestWaitTime/

+

GET /JSON/graphql/view/optionLenientMaxQueryDepthEnabled/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Integerqueryintegertruenone
+

Returns whether or not lenient maximum query generation depth is enabled.

Example responses

@@ -13932,11 +31708,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionReque

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -13949,27 +31726,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionReque - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionSendRefererHeader

-

+

graphqlViewOptionMaxAdditionalQueryDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -13985,55 +31761,17 @@ curl -X GET http://zap/JSON/spider/action/setOptionSendR
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/spider/action/setOptionSendRefererHeader/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionSendRefererHeader/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionSendRefererHeader/

- -

Sets whether or not the 'Referer' header should be sent while spidering.

+

GET /JSON/graphql/view/optionMaxAdditionalQueryDepth/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns the current maximum additional query generation depth.

Example responses

@@ -14041,11 +31779,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionSendR

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14058,27 +31797,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionSendR - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionShowAdvancedDialog

-

+

graphqlViewOptionMaxArgsDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionMaxArgsDepth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionMaxArgsDepth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14094,53 +31832,17 @@ curl -X GET http://zap/JSON/spider/action/setOptionShowA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionShowAdvancedDialog/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/graphql/view/optionMaxArgsDepth/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionShowAdvancedDialog/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/spider/action/setOptionShowAdvancedDialog/

+

GET /JSON/graphql/view/optionMaxArgsDepth/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns the current maximum arguments generation depth.

Example responses

@@ -14148,11 +31850,12 @@ curl -X GET http://zap/JSON/spider/action/setOptionShowA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14165,27 +31868,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionShowA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

spiderActionSetOptionThreadCount

-

+

graphqlViewOptionMaxQueryDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionMaxQueryDepth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionMaxQueryDepth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14201,65 +31903,101 @@ curl -X GET http://zap/JSON/spider/action/setOptionThrea
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/spider/action/setOptionThreadCount/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/graphql/view/optionMaxQueryDepth/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/spider/action/setOptionThreadCount/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+
+

GET /JSON/graphql/view/optionMaxQueryDepth/

-p JSON.parse(result) +

Returns the current maximum query generation depth.

- -

GET /JSON/spider/action/setOptionThreadCount/

+
+

Example responses

-

Parameters

+

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
IntegerqueryintegertruenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

graphqlViewOptionOptionalArgsEnabled

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/graphql/view/optionOptionalArgsEnabled/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/graphql/view/optionOptionalArgsEnabled/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/graphql/view/optionOptionalArgsEnabled/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/graphql/view/optionOptionalArgsEnabled/

+ +

Returns whether or not optional arguments are currently specified.

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14272,29 +32010,26 @@ curl -X GET http://zap/JSON/spider/action/setOptionThrea - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

core

-

coreViewHosts

-

+

graphqlViewOptionQueryGenEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/hosts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionQueryGenEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/hosts/");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionQueryGenEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14310,34 +32045,17 @@ curl -X GET http://zap/JSON/core/view/hosts/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/hosts/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/hosts/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/graphql/view/optionQueryGenEnabled/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/hosts/

+

GET /JSON/graphql/view/optionQueryGenEnabled/

-

Gets the name of the hosts accessed through/by ZAP

+

Returns whether the query generator is enabled.

Example responses

@@ -14345,11 +32063,12 @@ curl -X GET http://zap/JSON/core/view/hosts/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14362,27 +32081,26 @@ curl -X GET http://zap/JSON/core/view/hosts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewSites

-

+

graphqlViewOptionQuerySplitType

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/sites/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionQuerySplitType/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/sites/");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionQuerySplitType/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14396,36 +32114,19 @@ curl -X GET http://zap/JSON/core/view/sites/ in.close();
 System.out.println(response.toString());
 
-
import requests
-headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/sites/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/sites/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/graphql/view/optionQuerySplitType/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/sites/

+

GET /JSON/graphql/view/optionQuerySplitType/

-

Gets the sites accessed through/by ZAP (scheme and domain)

+

Returns the current level for which a single query is generated.

Example responses

@@ -14433,11 +32134,12 @@ curl -X GET http://zap/JSON/core/view/sites/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14450,27 +32152,26 @@ curl -X GET http://zap/JSON/core/view/sites/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewUrls

-

+

graphqlViewOptionRequestMethod

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/urls/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/graphql/view/optionRequestMethod/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/urls/");
+
URL obj = new URL("http://zap/JSON/graphql/view/optionRequestMethod/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14486,54 +32187,17 @@ curl -X GET http://zap/JSON/core/view/urls/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/urls/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/urls/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/graphql/view/optionRequestMethod/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/urls/

- -

Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.

- -

Parameters

+

GET /JSON/graphql/view/optionRequestMethod/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
baseurlquerystringfalsenone
+

Returns the current request method.

Example responses

@@ -14541,11 +32205,12 @@ curl -X GET http://zap/JSON/core/view/urls/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -14558,27 +32223,28 @@ curl -X GET http://zap/JSON/core/view/urls/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewChildNodes

-

+ +

httpSessions

+

httpSessionsActionAddDefaultSessionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/childNodes/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/childNodes/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14594,36 +32260,21 @@ curl -X GET http://zap/JSON/core/view/childNodes/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/childNodes/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/addDefaultSessionToken/', params={
+  'sessionToken': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/childNodes/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/childNodes/

+

GET /JSON/httpSessions/action/addDefaultSessionToken/

-

Gets the child nodes underneath the specified URL in the Sites tree

+

Adds a default session token with the given name and enabled state.

-

Parameters

+

Parameters

@@ -14635,7 +32286,14 @@ curl -X GET http://zap/JSON/core/view/childNodes/ - + + + + + + + + @@ -14649,11 +32307,12 @@ curl -X GET http://zap/JSON/core/view/childNodes/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

urlsessionTokenquerystringtruenone
tokenEnabled query string false
@@ -14666,27 +32325,26 @@ curl -X GET http://zap/JSON/core/view/childNodes/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewMessage

-

+

httpSessionsActionAddSessionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/message/?id=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/message/?id=0");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14702,37 +32360,21 @@ curl -X GET http://zap/JSON/core/view/message/?id
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/message/', params={
-  'id': '0'
+r = requests.get('http://zap/JSON/httpSessions/action/addSessionToken/', params={
+  'site': 'string',  'sessionToken': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/message/',
-  params: {
-  'id' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/message/

+

GET /JSON/httpSessions/action/addSessionToken/

-

Gets the HTTP message with the given ID. Returns the ID, request/response headers and bodies, cookies, note, type, RTT, and timestamp.

+

Adds the session token to the given site.

-

Parameters

+

Parameters

@@ -14744,9 +32386,16 @@ curl -X GET http://zap/JSON/core/view/message/?id - + - + + + + + + + + @@ -14758,11 +32407,12 @@ curl -X GET http://zap/JSON/core/view/message/?iddefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idsite queryintegerstringtruenone
sessionTokenquerystring true none
@@ -14775,27 +32425,26 @@ curl -X GET http://zap/JSON/core/view/message/?id - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewMessages

-

+

httpSessionsActionCreateEmptySession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/messages/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/createEmptySession/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/messages/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/createEmptySession/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14811,36 +32460,21 @@ curl -X GET http://zap/JSON/core/view/messages/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/messages/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/createEmptySession/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/messages/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/messages/

+

GET /JSON/httpSessions/action/createEmptySession/

-

Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messages

+

Creates an empty session for the given site. Optionally with the given name.

-

Parameters

+

Parameters

@@ -14852,23 +32486,16 @@ curl -X GET http://zap/JSON/core/view/messages/ - + - - - - - - - - + - + - + @@ -14880,11 +32507,12 @@ curl -X GET http://zap/JSON/core/view/messages/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

baseurlsite query stringfalsenone
startqueryintegerfalsetrue none
countsession queryintegerstring false none
@@ -14897,27 +32525,26 @@ curl -X GET http://zap/JSON/core/view/messages/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewMessagesById

-

+

httpSessionsActionRemoveDefaultSessionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/messagesById/?ids=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/messagesById/?ids=string");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -14933,37 +32560,21 @@ curl -X GET http://zap/JSON/core/view/messagesById/?ids<
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/messagesById/', params={
-  'ids': 'string'
+r = requests.get('http://zap/JSON/httpSessions/action/removeDefaultSessionToken/', params={
+  'sessionToken': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/messagesById/',
-  params: {
-  'ids' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/messagesById/

+

GET /JSON/httpSessions/action/removeDefaultSessionToken/

-

Gets the HTTP messages with the given IDs.

+

Removes the default session token with the given name.

-

Parameters

+

Parameters

@@ -14975,7 +32586,7 @@ curl -X GET http://zap/JSON/core/view/messagesById/?ids< - + @@ -14989,11 +32600,12 @@ curl -X GET http://zap/JSON/core/view/messagesById/?ids<

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idssessionToken query string true
@@ -15006,27 +32618,26 @@ curl -X GET http://zap/JSON/core/view/messagesById/?ids< - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewNumberOfMessages

-

+

httpSessionsActionRemoveSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/numberOfMessages/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/numberOfMessages/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15042,36 +32653,21 @@ curl -X GET http://zap/JSON/core/view/numberOfMessages/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/numberOfMessages/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/removeSession/', params={
+  'site': 'string',  'session': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/numberOfMessages/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/numberOfMessages/

+

GET /JSON/httpSessions/action/removeSession/

-

Gets the number of messages, optionally filtering by URL

+

Removes the session from the given site.

-

Parameters

+

Parameters

@@ -15083,10 +32679,17 @@ curl -X GET http://zap/JSON/core/view/numberOfMessages/ - + - + + + + + + + +
baseurlsite query stringfalsetruenone
sessionquerystringtrue none
@@ -15097,11 +32700,12 @@ curl -X GET http://zap/JSON/core/view/numberOfMessages/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15114,27 +32718,26 @@ curl -X GET http://zap/JSON/core/view/numberOfMessages/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewMode

-

+

httpSessionsActionRemoveSessionToken

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/mode/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/mode/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15150,34 +32753,46 @@ curl -X GET http://zap/JSON/core/view/mode/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/mode/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/removeSessionToken/', params={
+  'site': 'string',  'sessionToken': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/mode/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/action/removeSessionToken/

-p JSON.parse(result) +

Removes the session token from the given site.

-
-

GET /JSON/core/view/mode/

+

Parameters

-

Gets the mode

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
sessionTokenquerystringtruenone

Example responses

@@ -15185,11 +32800,12 @@ curl -X GET http://zap/JSON/core/view/mode/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15202,27 +32818,26 @@ curl -X GET http://zap/JSON/core/view/mode/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewVersion

-

+

httpSessionsActionRenameSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/version/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/version/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15238,34 +32853,53 @@ curl -X GET http://zap/JSON/core/view/version/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/version/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/renameSession/', params={
+  'site': 'string',  'oldSessionName': 'string',  'newSessionName': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/version/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/action/renameSession/

-p JSON.parse(result) +

Renames the session of the given site.

-
-

GET /JSON/core/view/version/

+

Parameters

-

Gets ZAP version

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
oldSessionNamequerystringtruenone
newSessionNamequerystringtruenone

Example responses

@@ -15273,11 +32907,12 @@ curl -X GET http://zap/JSON/core/view/version/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15290,27 +32925,26 @@ curl -X GET http://zap/JSON/core/view/version/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewExcludedFromProxy

-

+

httpSessionsActionSetActiveSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/excludedFromProxy/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/excludedFromProxy/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15326,34 +32960,46 @@ curl -X GET http://zap/JSON/core/view/excludedFromProxy/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/excludedFromProxy/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/setActiveSession/', params={
+  'site': 'string',  'session': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/excludedFromProxy/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/action/setActiveSession/

-p JSON.parse(result) +

Sets the given session as active for the given site.

-
-

GET /JSON/core/view/excludedFromProxy/

+

Parameters

-

Gets the regular expressions, applied to URLs, to exclude from the local proxies.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
sessionquerystringtruenone

Example responses

@@ -15361,11 +33007,12 @@ curl -X GET http://zap/JSON/core/view/excludedFromProxy/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15378,27 +33025,26 @@ curl -X GET http://zap/JSON/core/view/excludedFromProxy/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewHomeDirectory

-

+

httpSessionsActionSetDefaultSessionTokenEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/homeDirectory/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/homeDirectory/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15414,32 +33060,46 @@ curl -X GET http://zap/JSON/core/view/homeDirectory/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/homeDirectory/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/', params={
+  'sessionToken': 'string',  'tokenEnabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/httpSessions/action/setDefaultSessionTokenEnabled/

-result = RestClient.get 'http://zap/JSON/core/view/homeDirectory/', - params: { - }, headers: headers +

Sets whether or not the default session token with the given name is enabled.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/core/view/homeDirectory/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sessionTokenquerystringtruenone
tokenEnabledquerystringtruenone

Example responses

@@ -15447,11 +33107,12 @@ curl -X GET http://zap/JSON/core/view/homeDirectory/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15464,27 +33125,26 @@ curl -X GET http://zap/JSON/core/view/homeDirectory/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewSessionLocation

-

+

httpSessionsActionSetSessionTokenValue

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/sessionLocation/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/sessionLocation/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15500,34 +33160,60 @@ curl -X GET http://zap/JSON/core/view/sessionLocation/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/sessionLocation/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/setSessionTokenValue/', params={
+  'site': 'string',  'session': 'string',  'sessionToken': 'string',  'tokenValue': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/sessionLocation/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/action/setSessionTokenValue/

-p JSON.parse(result) +

Sets the value of the session token of the given session for the given site.

-
-

GET /JSON/core/view/sessionLocation/

+

Parameters

-

Gets the location of the current session file

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
sessionquerystringtruenone
sessionTokenquerystringtruenone
tokenValuequerystringtruenone

Example responses

@@ -15535,11 +33221,12 @@ curl -X GET http://zap/JSON/core/view/sessionLocation/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15552,27 +33239,26 @@ curl -X GET http://zap/JSON/core/view/sessionLocation/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewProxyChainExcludedDomains

-

+

httpSessionsActionUnsetActiveSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/proxyChainExcludedDomains/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/proxyChainExcludedDomains/");
+
URL obj = new URL("http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15588,34 +33274,39 @@ curl -X GET http://zap/JSON/core/view/proxyChainExcluded
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/proxyChainExcludedDomains/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/action/unsetActiveSession/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/proxyChainExcludedDomains/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/action/unsetActiveSession/

-p JSON.parse(result) +

Unsets the active session of the given site.

-
-

GET /JSON/core/view/proxyChainExcludedDomains/

+

Parameters

-

Gets all the domains that are excluded from the outgoing proxy. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone

Example responses

@@ -15623,11 +33314,12 @@ curl -X GET http://zap/JSON/core/view/proxyChainExcluded

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15640,27 +33332,26 @@ curl -X GET http://zap/JSON/core/view/proxyChainExcluded - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainSkipName

-

+

httpSessionsViewActiveSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainSkipName/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/view/activeSession/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainSkipName/");
+
URL obj = new URL("http://zap/JSON/httpSessions/view/activeSession/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15676,34 +33367,39 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainSk
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainSkipName/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/view/activeSession/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainSkipName/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/view/activeSession/

-p JSON.parse(result) +

Gets the name of the active session for the given site.

-
-

GET /JSON/core/view/optionProxyChainSkipName/

+

Parameters

-

Use view proxyChainExcludedDomains instead.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone

Example responses

@@ -15711,11 +33407,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainSk

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15728,27 +33425,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainSk - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyExcludedDomains

-

+

httpSessionsViewDefaultSessionTokens

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomains/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/view/defaultSessionTokens/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomains/");
+
URL obj = new URL("http://zap/JSON/httpSessions/view/defaultSessionTokens/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15764,34 +33460,17 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomains/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/optionProxyExcludedDomains/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/httpSessions/view/defaultSessionTokens/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/optionProxyExcludedDomains/

+

GET /JSON/httpSessions/view/defaultSessionTokens/

-

Use view proxyChainExcludedDomains instead.

+

Gets the default session tokens.

Example responses

@@ -15799,11 +33478,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15816,27 +33496,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyExcludedDomainsEnabled

-

+

httpSessionsViewSessionTokens

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/view/sessionTokens/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/");
+
URL obj = new URL("http://zap/JSON/httpSessions/view/sessionTokens/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15852,34 +33531,39 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/view/sessionTokens/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/view/sessionTokens/

-p JSON.parse(result) +

Gets the names of the session tokens for the given site.

-
-

GET /JSON/core/view/optionProxyExcludedDomainsEnabled/

+

Parameters

-

Use view proxyChainExcludedDomains instead.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone

Example responses

@@ -15887,11 +33571,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15904,27 +33589,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyExclude - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewZapHomePath

-

+

httpSessionsViewSessions

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/zapHomePath/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/view/sessions/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/zapHomePath/");
+
URL obj = new URL("http://zap/JSON/httpSessions/view/sessions/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -15940,34 +33624,46 @@ curl -X GET http://zap/JSON/core/view/zapHomePath/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/zapHomePath/', params={
-
+r = requests.get('http://zap/JSON/httpSessions/view/sessions/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/zapHomePath/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/httpSessions/view/sessions/

-p JSON.parse(result) +

Gets the sessions for the given site. Optionally returning just the session with the given name.

-
-

GET /JSON/core/view/zapHomePath/

+

Parameters

-

Gets the path to ZAP's home directory.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
sessionquerystringfalsenone

Example responses

@@ -15975,11 +33671,12 @@ curl -X GET http://zap/JSON/core/view/zapHomePath/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -15992,27 +33689,26 @@ curl -X GET http://zap/JSON/core/view/zapHomePath/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionMaximumAlertInstances

-

+

httpSessionsViewSites

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionMaximumAlertInstances/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/httpSessions/view/sites/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionMaximumAlertInstances/");
+
URL obj = new URL("http://zap/JSON/httpSessions/view/sites/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16028,34 +33724,17 @@ curl -X GET http://zap/JSON/core/view/optionMaximumAlert
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/optionMaximumAlertInstances/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/optionMaximumAlertInstances/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/httpSessions/view/sites/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/optionMaximumAlertInstances/

+

GET /JSON/httpSessions/view/sites/

-

Gets the maximum number of alert instances to include in a report.

+

Gets all of the sites that have sessions.

Example responses

@@ -16063,11 +33742,12 @@ curl -X GET http://zap/JSON/core/view/optionMaximumAlert

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16080,27 +33760,28 @@ curl -X GET http://zap/JSON/core/view/optionMaximumAlert - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionMergeRelatedAlerts

-

+ +

keyboard

+

keyboardOtherCheatsheetActionOrder

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionMergeRelatedAlerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/keyboard/other/cheatsheetActionOrder/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionMergeRelatedAlerts/");
+
URL obj = new URL("http://zap/OTHER/keyboard/other/cheatsheetActionOrder/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16116,46 +33797,43 @@ curl -X GET http://zap/JSON/core/view/optionMergeRelated
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionMergeRelatedAlerts/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/OTHER/keyboard/other/cheatsheetActionOrder/', headers = headers)
 
-
require 'rest-client'
-require 'json'
+print(r.content)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/optionMergeRelatedAlerts/',
-  params: {
-  }, headers: headers
+
+

GET /OTHER/keyboard/other/cheatsheetActionOrder/

-p JSON.parse(result) +

Lists the keyboard shortcuts sorted by action, optionally, showing actions without shortcut set.

- -

GET /JSON/core/view/optionMergeRelatedAlerts/

+

Parameters

-

Gets whether or not related alerts will be merged in any reports generated.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
incUnsetquerystringfalsenone

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -16168,27 +33846,28 @@ curl -X GET http://zap/JSON/core/view/optionMergeRelated - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreViewOptionAlertOverridesFilePath

-

+

keyboardOtherCheatsheetKeyOrder

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionAlertOverridesFilePath/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionAlertOverridesFilePath/");
+
URL obj = new URL("http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16204,46 +33883,43 @@ curl -X GET http://zap/JSON/core/view/optionAlertOverrid
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionAlertOverridesFilePath/', params={
+r = requests.get('http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.content)
 
-result = RestClient.get 'http://zap/JSON/core/view/optionAlertOverridesFilePath/',
-  params: {
-  }, headers: headers
+
+

GET /OTHER/keyboard/other/cheatsheetKeyOrder/

-p JSON.parse(result) +

Lists the keyboard shortcuts sorted by keyboard shortcut, optionally, showing actions without shortcut set.

- -

GET /JSON/core/view/optionAlertOverridesFilePath/

+

Parameters

-

Gets the path to the file with alert overrides.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
incUnsetquerystringfalsenone

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -16256,27 +33932,30 @@ curl -X GET http://zap/JSON/core/view/optionAlertOverrid - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreViewAlert

-

+ +

localProxies

+

localProxiesActionAddAdditionalProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/alert/?id=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/alert/?id=0");
+
URL obj = new URL("http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16292,37 +33971,21 @@ curl -X GET http://zap/JSON/core/view/alert/?id
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/alert/', params={
-  'id': '0'
+r = requests.get('http://zap/JSON/localProxies/action/addAdditionalProxy/', params={
+  'address': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/alert/',
-  params: {
-  'id' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/alert/

+

GET /JSON/localProxies/action/addAdditionalProxy/

-

Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method

+

Use the API endpoints in the 'network' component instead.

-

Parameters

+

Parameters

@@ -16334,12 +33997,40 @@ curl -X GET http://zap/JSON/core/view/alert/?id - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
idaddress queryintegerstringtruenone
portquerystring true none
behindNatquerystringfalsenone
alwaysDecodeZipquerystringfalsenone
removeUnsupportedEncodingsquerystringfalsenone
@@ -16348,11 +34039,12 @@ curl -X GET http://zap/JSON/core/view/alert/?iddefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16365,27 +34057,26 @@ curl -X GET http://zap/JSON/core/view/alert/?id - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewAlerts

-

+

localProxiesActionRemoveAdditionalProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/alerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/alerts/");
+
URL obj = new URL("http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16401,36 +34092,21 @@ curl -X GET http://zap/JSON/core/view/alerts/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/alerts/', params={
-
+r = requests.get('http://zap/JSON/localProxies/action/removeAdditionalProxy/', params={
+  'address': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/alerts/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/alerts/

+

GET /JSON/localProxies/action/removeAdditionalProxy/

-

Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts

+

Use the API endpoints in the 'network' component instead.

-

Parameters

+

Parameters

@@ -16442,31 +34118,17 @@ curl -X GET http://zap/JSON/core/view/alerts/ - + - - - - - - - - - - - - - - - + - + - +
baseurladdress query stringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsetrue none
riskIdport query stringfalsetrue none
@@ -16477,11 +34139,12 @@ curl -X GET http://zap/JSON/core/view/alerts/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16494,27 +34157,26 @@ curl -X GET http://zap/JSON/core/view/alerts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewAlertsSummary

-

+

localProxiesViewAdditionalProxies

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/alertsSummary/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/localProxies/view/additionalProxies/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/alertsSummary/");
+
URL obj = new URL("http://zap/JSON/localProxies/view/additionalProxies/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16530,54 +34192,17 @@ curl -X GET http://zap/JSON/core/view/alertsSummary/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/alertsSummary/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/alertsSummary/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/localProxies/view/additionalProxies/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/alertsSummary/

- -

Gets number of alerts grouped by each risk level, optionally filtering by URL

- -

Parameters

+

GET /JSON/localProxies/view/additionalProxies/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
baseurlquerystringfalsenone
+

Use the API endpoints in the 'network' component instead.

Example responses

@@ -16585,11 +34210,12 @@ curl -X GET http://zap/JSON/core/view/alertsSummary/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16602,27 +34228,28 @@ curl -X GET http://zap/JSON/core/view/alertsSummary/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewNumberOfAlerts

-

+ +

network

+

networkActionAddAlias

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/numberOfAlerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addAlias/?name=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/numberOfAlerts/");
+
URL obj = new URL("http://zap/JSON/network/action/addAlias/?name=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16638,36 +34265,21 @@ curl -X GET http://zap/JSON/core/view/numberOfAlerts/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/numberOfAlerts/', params={
-
+r = requests.get('http://zap/JSON/network/action/addAlias/', params={
+  'name': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/view/numberOfAlerts/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/numberOfAlerts/

+

GET /JSON/network/action/addAlias/

-

Gets the number of alerts, optionally filtering by URL or riskId

+

Adds an alias for the local servers/proxies.

-

Parameters

+

Parameters

@@ -16679,18 +34291,18 @@ curl -X GET http://zap/JSON/core/view/numberOfAlerts/ - + - - + + - + - +
baseurlname query stringfalsenonetrueThe name of the alias.
riskIdenabled query string falsenoneThe enabled state, true or false.
@@ -16700,11 +34312,12 @@ curl -X GET http://zap/JSON/core/view/numberOfAlerts/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16717,27 +34330,26 @@ curl -X GET http://zap/JSON/core/view/numberOfAlerts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionDefaultUserAgent

-

+

networkActionAddHttpProxyExclusion

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionDefaultUserAgent/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addHttpProxyExclusion/?host=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionDefaultUserAgent/");
+
URL obj = new URL("http://zap/JSON/network/action/addHttpProxyExclusion/?host=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16753,34 +34365,46 @@ curl -X GET http://zap/JSON/core/view/optionDefaultUserA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionDefaultUserAgent/', params={
-
+r = requests.get('http://zap/JSON/network/action/addHttpProxyExclusion/', params={
+  'host': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/optionDefaultUserAgent/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/addHttpProxyExclusion/

-p JSON.parse(result) +

Adds a host to be excluded from the HTTP proxy.

-
-

GET /JSON/core/view/optionDefaultUserAgent/

+

Parameters

-

Gets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
hostquerystringtrueThe value of the host, a regular expression.
enabledquerystringfalseThe enabled state, true or false.

Example responses

@@ -16788,11 +34412,12 @@ curl -X GET http://zap/JSON/core/view/optionDefaultUserA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16805,27 +34430,26 @@ curl -X GET http://zap/JSON/core/view/optionDefaultUserA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionDnsTtlSuccessfulQueries

-

+

networkActionAddLocalServer

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addLocalServer/?address=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/");
+
URL obj = new URL("http://zap/JSON/network/action/addLocalServer/?address=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16841,34 +34465,81 @@ curl -X GET http://zap/JSON/core/view/optionDnsTtlSucces
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/', params={
-
+r = requests.get('http://zap/JSON/network/action/addLocalServer/', params={
+  'address': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/addLocalServer/

-p JSON.parse(result) +

Adds a local server/proxy.

-
-

GET /JSON/core/view/optionDnsTtlSuccessfulQueries/

+

Parameters

-

Gets the TTL (in seconds) of successful DNS queries.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
addressquerystringtrueThe address of the local server/proxy.
portquerystringtrueThe port of the local server/proxy.
apiquerystringfalseIf the ZAP API is available, true or false.
proxyquerystringfalseIf the local server should proxy, true or false.
behindNatquerystringfalseIf the local server is behind NAT, true or false.
decodeResponsequerystringfalseIf the response should be decoded, true or false.
removeAcceptEncodingquerystringfalseIf the request header Accept-Encoding should be removed, true or false.

Example responses

@@ -16876,11 +34547,12 @@ curl -X GET http://zap/JSON/core/view/optionDnsTtlSucces

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16893,27 +34565,26 @@ curl -X GET http://zap/JSON/core/view/optionDnsTtlSucces - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionHttpState

-

+

networkActionAddPassThrough

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionHttpState/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addPassThrough/?authority=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionHttpState/");
+
URL obj = new URL("http://zap/JSON/network/action/addPassThrough/?authority=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -16929,32 +34600,46 @@ curl -X GET http://zap/JSON/core/view/optionHttpState/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionHttpState/', params={
-
+r = requests.get('http://zap/JSON/network/action/addPassThrough/', params={
+  'authority': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/addPassThrough/

-result = RestClient.get 'http://zap/JSON/core/view/optionHttpState/', - params: { - }, headers: headers +

Adds an authority to pass-through the local proxies.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionHttpState/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
authorityquerystringtrueThe value of the authority, can be a regular expression.
enabledquerystringfalseThe enabled state, true or false.

Example responses

@@ -16962,11 +34647,12 @@ curl -X GET http://zap/JSON/core/view/optionHttpState/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -16979,27 +34665,26 @@ curl -X GET http://zap/JSON/core/view/optionHttpState/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainName

-

+

networkActionAddPkcs12ClientCertificate

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainName/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addPkcs12ClientCertificate/?filePath=string&password=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainName/");
+
URL obj = new URL("http://zap/JSON/network/action/addPkcs12ClientCertificate/?filePath=string&password=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17015,32 +34700,53 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainNa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainName/', params={
-
+r = requests.get('http://zap/JSON/network/action/addPkcs12ClientCertificate/', params={
+  'filePath': 'string',  'password': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/addPkcs12ClientCertificate/

-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainName/', - params: { - }, headers: headers +

Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionProxyChainName/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringtrueThe file path.
passwordquerystringtrueThe password for the file.
indexquerystringfalseThe index of the certificate in the file, defaults to 0.

Example responses

@@ -17048,11 +34754,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainNa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17065,27 +34772,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainNa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainPassword

-

+

networkActionAddRateLimitRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainPassword/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/addRateLimitRule/?description=string&enabled=string&matchRegex=string&matchString=string&requestsPerSecond=string&groupBy=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPassword/");
+
URL obj = new URL("http://zap/JSON/network/action/addRateLimitRule/?description=string&enabled=string&matchRegex=string&matchString=string&requestsPerSecond=string&groupBy=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17101,32 +34807,74 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainPassword/', params={
-
+r = requests.get('http://zap/JSON/network/action/addRateLimitRule/', params={
+  'description': 'string',  'enabled': 'string',  'matchRegex': 'string',  'matchString': 'string',  'requestsPerSecond': 'string',  'groupBy': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/addRateLimitRule/

-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPassword/', - params: { - }, headers: headers +

Adds a rate limit rule

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionProxyChainPassword/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
descriptionquerystringtrueA description that allows you to identify the rule. Each rule must have a unique description.
enabledquerystringtrueThe enabled state, true or false.
matchRegexquerystringtrueRegex used to match the host.
matchStringquerystringtruePlain string match is handled based on DNS conventions. If the string has one or two components.
requestsPerSecondquerystringtrueThe maximum number of requests per second.
groupByquerystringtrueHow to group hosts when applying rate limiting: rule or host

Example responses

@@ -17134,11 +34882,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17151,27 +34900,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainPort

-

+

networkActionGenerateRootCaCert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainPort/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/generateRootCaCert/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPort/");
+
URL obj = new URL("http://zap/JSON/network/action/generateRootCaCert/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17187,32 +34935,17 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/view/optionProxyChainPort/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPort/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/network/action/generateRootCaCert/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/view/optionProxyChainPort/

+

GET /JSON/network/action/generateRootCaCert/

+ +

Generates a new Root CA certificate, used to issue server certificates.

Example responses

@@ -17220,11 +34953,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17237,27 +34971,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainRealm

-

+

networkActionImportRootCaCert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainRealm/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/importRootCaCert/?filePath=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainRealm/");
+
URL obj = new URL("http://zap/JSON/network/action/importRootCaCert/?filePath=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17273,32 +35006,39 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainRe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainRealm/', params={
-
+r = requests.get('http://zap/JSON/network/action/importRootCaCert/', params={
+  'filePath': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/importRootCaCert/

-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainRealm/', - params: { - }, headers: headers +

Imports a Root CA certificate to be used to issue server certificates.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionProxyChainRealm/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filePathquerystringtrueThe file system path to the PEM file, containing the certificate and private key.

Example responses

@@ -17306,11 +35046,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainRe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17323,27 +35064,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainRe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainUserName

-

+

networkActionRemoveAlias

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainUserName/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/removeAlias/?name=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainUserName/");
+
URL obj = new URL("http://zap/JSON/network/action/removeAlias/?name=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17359,32 +35099,39 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainUs
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainUserName/', params={
-
+r = requests.get('http://zap/JSON/network/action/removeAlias/', params={
+  'name': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/removeAlias/

-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainUserName/', - params: { - }, headers: headers +

Removes an alias.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionProxyChainUserName/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringtrueThe name of the alias.

Example responses

@@ -17392,11 +35139,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainUs

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17409,27 +35157,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainUs - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionTimeoutInSecs

-

+

networkActionRemoveHttpProxyExclusion

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionTimeoutInSecs/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/removeHttpProxyExclusion/?host=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionTimeoutInSecs/");
+
URL obj = new URL("http://zap/JSON/network/action/removeHttpProxyExclusion/?host=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17445,34 +35192,39 @@ curl -X GET http://zap/JSON/core/view/optionTimeoutInSec
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionTimeoutInSecs/', params={
-
+r = requests.get('http://zap/JSON/network/action/removeHttpProxyExclusion/', params={
+  'host': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/view/optionTimeoutInSecs/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/removeHttpProxyExclusion/

-p JSON.parse(result) +

Removes an HTTP proxy exclusion.

- -

GET /JSON/core/view/optionTimeoutInSecs/

+

Parameters

-

Gets the connection time out, in seconds.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
hostquerystringtrueThe value of the host.

Example responses

@@ -17480,11 +35232,12 @@ curl -X GET http://zap/JSON/core/view/optionTimeoutInSec

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17497,27 +35250,26 @@ curl -X GET http://zap/JSON/core/view/optionTimeoutInSec - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionHttpStateEnabled

-

+

networkActionRemoveLocalServer

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionHttpStateEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/removeLocalServer/?address=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionHttpStateEnabled/");
+
URL obj = new URL("http://zap/JSON/network/action/removeLocalServer/?address=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17533,32 +35285,46 @@ curl -X GET http://zap/JSON/core/view/optionHttpStateEna
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionHttpStateEnabled/', params={
-
+r = requests.get('http://zap/JSON/network/action/removeLocalServer/', params={
+  'address': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/removeLocalServer/

-result = RestClient.get 'http://zap/JSON/core/view/optionHttpStateEnabled/', - params: { - }, headers: headers +

Removes a local server/proxy.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionHttpStateEnabled/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
addressquerystringtrueThe address of the local server/proxy.
portquerystringtrueThe port of the local server/proxy.

Example responses

@@ -17566,11 +35332,12 @@ curl -X GET http://zap/JSON/core/view/optionHttpStateEna

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17583,27 +35350,26 @@ curl -X GET http://zap/JSON/core/view/optionHttpStateEna - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionProxyChainPrompt

-

+

networkActionRemovePassThrough

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionProxyChainPrompt/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/removePassThrough/?authority=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPrompt/");
+
URL obj = new URL("http://zap/JSON/network/action/removePassThrough/?authority=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17619,32 +35385,39 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPr
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionProxyChainPrompt/', params={
-
+r = requests.get('http://zap/JSON/network/action/removePassThrough/', params={
+  'authority': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/removePassThrough/

-result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPrompt/', - params: { - }, headers: headers +

Removes a pass-through.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionProxyChainPrompt/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
authorityquerystringtrueThe value of the authority.

Example responses

@@ -17652,11 +35425,12 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPr

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17669,27 +35443,26 @@ curl -X GET http://zap/JSON/core/view/optionProxyChainPr - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionSingleCookieRequestHeader

-

+

networkActionRemoveRateLimitRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionSingleCookieRequestHeader/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/removeRateLimitRule/?description=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionSingleCookieRequestHeader/");
+
URL obj = new URL("http://zap/JSON/network/action/removeRateLimitRule/?description=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17705,32 +35478,39 @@ curl -X GET http://zap/JSON/core/view/optionSingleCookie
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionSingleCookieRequestHeader/', params={
-
+r = requests.get('http://zap/JSON/network/action/removeRateLimitRule/', params={
+  'description': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/removeRateLimitRule/

-result = RestClient.get 'http://zap/JSON/core/view/optionSingleCookieRequestHeader/', - params: { - }, headers: headers +

Remove a rate limit rule

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionSingleCookieRequestHeader/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
descriptionquerystringtrueThe description of the rule to remove.

Example responses

@@ -17738,11 +35518,12 @@ curl -X GET http://zap/JSON/core/view/optionSingleCookie

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17755,27 +35536,26 @@ curl -X GET http://zap/JSON/core/view/optionSingleCookie - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionUseProxyChain

-

+

networkActionSetAliasEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionUseProxyChain/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setAliasEnabled/?name=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChain/");
+
URL obj = new URL("http://zap/JSON/network/action/setAliasEnabled/?name=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17791,32 +35571,46 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionUseProxyChain/', params={
-
+r = requests.get('http://zap/JSON/network/action/setAliasEnabled/', params={
+  'name': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/setAliasEnabled/

-result = RestClient.get 'http://zap/JSON/core/view/optionUseProxyChain/', - params: { - }, headers: headers +

Sets whether or not an alias is enabled.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionUseProxyChain/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
namequerystringtrueThe name of the alias.
enabledquerystringtrueThe enabled state, true or false.

Example responses

@@ -17824,11 +35618,12 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17841,27 +35636,26 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreViewOptionUseProxyChainAuth

-

+

networkActionSetConnectionTimeout

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/view/optionUseProxyChainAuth/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setConnectionTimeout/?timeout=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChainAuth/");
+
URL obj = new URL("http://zap/JSON/network/action/setConnectionTimeout/?timeout=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17877,32 +35671,39 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/view/optionUseProxyChainAuth/', params={
-
+r = requests.get('http://zap/JSON/network/action/setConnectionTimeout/', params={
+  'timeout': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/setConnectionTimeout/

-result = RestClient.get 'http://zap/JSON/core/view/optionUseProxyChainAuth/', - params: { - }, headers: headers +

Sets the timeout, for reads and connects.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/core/view/optionUseProxyChainAuth/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
timeoutquerystringtrueThe timeout, in seconds.

Example responses

@@ -17910,11 +35711,12 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -17927,27 +35729,26 @@ curl -X GET http://zap/JSON/core/view/optionUseProxyChai - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionAccessUrl

-

+

networkActionSetDefaultUserAgent

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/accessUrl/?url=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setDefaultUserAgent/?userAgent=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/accessUrl/?url=string");
+
URL obj = new URL("http://zap/JSON/network/action/setDefaultUserAgent/?userAgent=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -17963,37 +35764,21 @@ curl -X GET http://zap/JSON/core/action/accessUrl/?url
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/accessUrl/', params={
-  'url': 'string'
+r = requests.get('http://zap/JSON/network/action/setDefaultUserAgent/', params={
+  'userAgent': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/accessUrl/',
-  params: {
-  'url' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/accessUrl/

+

GET /JSON/network/action/setDefaultUserAgent/

-

Convenient and simple action to access a URL, optionally following redirections. Returns the request sent and response received and followed redirections, if any. Other actions are available which offer more control on what is sent, like, 'sendRequest' or 'sendHarRequest'.

+

Sets the default user-agent.

-

Parameters

+

Parameters

@@ -18005,18 +35790,11 @@ curl -X GET http://zap/JSON/core/action/accessUrl/?url - + - - - - - - - - +
urluserAgent query string truenone
followRedirectsquerybooleanfalsenoneThe default user-agent.
@@ -18026,11 +35804,12 @@ curl -X GET http://zap/JSON/core/action/accessUrl/?urldefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18043,27 +35822,26 @@ curl -X GET http://zap/JSON/core/action/accessUrl/?url - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionShutdown

-

+

networkActionSetDnsTtlSuccessfulQueries

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/shutdown/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/?ttl=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/shutdown/");
+
URL obj = new URL("http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/?ttl=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18079,34 +35857,39 @@ curl -X GET http://zap/JSON/core/action/shutdown/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/shutdown/', params={
-
+r = requests.get('http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/', params={
+  'ttl': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/action/shutdown/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/setDnsTtlSuccessfulQueries/

-p JSON.parse(result) +

Sets the TTL of successful DNS queries.

-
-

GET /JSON/core/action/shutdown/

+

Parameters

-

Shuts down ZAP

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
ttlquerystringtrueThe TTL, in seconds. Negative number, cache forever. Zero, disables caching. Positive number, the number of seconds the successful DNS queries will be cached.

Example responses

@@ -18114,11 +35897,12 @@ curl -X GET http://zap/JSON/core/action/shutdown/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18131,27 +35915,26 @@ curl -X GET http://zap/JSON/core/action/shutdown/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionNewSession

-

+

networkActionSetHttpProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/newSession/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setHttpProxy/?host=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/newSession/");
+
URL obj = new URL("http://zap/JSON/network/action/setHttpProxy/?host=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18167,36 +35950,21 @@ curl -X GET http://zap/JSON/core/action/newSession/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/newSession/', params={
-
+r = requests.get('http://zap/JSON/network/action/setHttpProxy/', params={
+  'host': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/newSession/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/newSession/

+

GET /JSON/network/action/setHttpProxy/

-

Creates a new session, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+

Sets the HTTP proxy configuration.

-

Parameters

+

Parameters

@@ -18208,18 +35976,39 @@ curl -X GET http://zap/JSON/core/action/newSession/ - + + + + + + + + + + + + + + + - + - + - + - + + + + + + + +
namehostquerystringtrueThe host, name or address.
portquerystringtrueThe port.
realm query string falsenoneThe authentication realm.
overwriteusername querybooleanstring falsenoneThe user name.
passwordquerystringfalseThe password.
@@ -18229,11 +36018,12 @@ curl -X GET http://zap/JSON/core/action/newSession/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18246,27 +36036,26 @@ curl -X GET http://zap/JSON/core/action/newSession/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionLoadSession

-

+

networkActionSetHttpProxyAuthEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/loadSession/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setHttpProxyAuthEnabled/?enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/loadSession/");
+
URL obj = new URL("http://zap/JSON/network/action/setHttpProxyAuthEnabled/?enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18282,36 +36071,21 @@ curl -X GET http://zap/JSON/core/action/loadSession/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/loadSession/', params={
-
+r = requests.get('http://zap/JSON/network/action/setHttpProxyAuthEnabled/', params={
+  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/loadSession/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/loadSession/

+

GET /JSON/network/action/setHttpProxyAuthEnabled/

-

Loads the session with the given name. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+

Sets whether or not the HTTP proxy authentication is enabled.

-

Parameters

+

Parameters

@@ -18323,11 +36097,11 @@ curl -X GET http://zap/JSON/core/action/loadSession/ - + - - + +
nameenabled query stringfalsenonetrueThe enabled state, true or false.
@@ -18337,11 +36111,12 @@ curl -X GET http://zap/JSON/core/action/loadSession/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18354,27 +36129,26 @@ curl -X GET http://zap/JSON/core/action/loadSession/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSaveSession

-

+

networkActionSetHttpProxyEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/saveSession/?name=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setHttpProxyEnabled/?enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/saveSession/?name=string");
+
URL obj = new URL("http://zap/JSON/network/action/setHttpProxyEnabled/?enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18390,37 +36164,21 @@ curl -X GET http://zap/JSON/core/action/saveSession/?nam
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/saveSession/', params={
-  'name': 'string'
+r = requests.get('http://zap/JSON/network/action/setHttpProxyEnabled/', params={
+  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/saveSession/',
-  params: {
-  'name' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/saveSession/

+

GET /JSON/network/action/setHttpProxyEnabled/

-

Saves the session with the name supplied, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+

Sets whether or not the HTTP proxy is enabled.

-

Parameters

+

Parameters

@@ -18432,18 +36190,11 @@ curl -X GET http://zap/JSON/core/action/saveSession/?nam - + - - - - - - - - +
nameenabled query string truenone
overwritequerybooleanfalsenoneThe enabled state, true or false.
@@ -18453,11 +36204,12 @@ curl -X GET http://zap/JSON/core/action/saveSession/?nam

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18470,27 +36222,26 @@ curl -X GET http://zap/JSON/core/action/saveSession/?nam - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSnapshotSession

-

+

networkActionSetHttpProxyExclusionEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/snapshotSession/?name=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setHttpProxyExclusionEnabled/?host=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/snapshotSession/?name=string");
+
URL obj = new URL("http://zap/JSON/network/action/setHttpProxyExclusionEnabled/?host=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18506,37 +36257,21 @@ curl -X GET http://zap/JSON/core/action/snapshotSession/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/snapshotSession/', params={
-  'name': 'string'
+r = requests.get('http://zap/JSON/network/action/setHttpProxyExclusionEnabled/', params={
+  'host': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/snapshotSession/',
-  params: {
-  'name' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/snapshotSession/

+

GET /JSON/network/action/setHttpProxyExclusionEnabled/

-

Snapshots the session, optionally with the given name, and overwriting existing files. If no name is specified the name of the current session with a timestamp appended is used. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

+

Sets whether or not an HTTP proxy exclusion is enabled.

-

Parameters

+

Parameters

@@ -18548,18 +36283,18 @@ curl -X GET http://zap/JSON/core/action/snapshotSession/ - + - + - + - - - + + +
namehost query string truenoneThe value of the host.
overwriteenabled querybooleanfalsenonestringtrueThe enabled state, true or false.
@@ -18569,11 +36304,12 @@ curl -X GET http://zap/JSON/core/action/snapshotSession/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18586,27 +36322,26 @@ curl -X GET http://zap/JSON/core/action/snapshotSession/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionClearExcludedFromProxy

-

+

networkActionSetPassThroughEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/clearExcludedFromProxy/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setPassThroughEnabled/?authority=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/clearExcludedFromProxy/");
+
URL obj = new URL("http://zap/JSON/network/action/setPassThroughEnabled/?authority=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18622,34 +36357,46 @@ curl -X GET http://zap/JSON/core/action/clearExcludedFro
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/clearExcludedFromProxy/', params={
-
+r = requests.get('http://zap/JSON/network/action/setPassThroughEnabled/', params={
+  'authority': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/action/clearExcludedFromProxy/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/setPassThroughEnabled/

-p JSON.parse(result) +

Sets whether or not a pass-through is enabled.

-
-

GET /JSON/core/action/clearExcludedFromProxy/

+

Parameters

-

Clears the regexes of URLs excluded from the local proxies.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
authorityquerystringtrueThe value of the authority.
enabledquerystringtrueThe enabled state, true or false.

Example responses

@@ -18657,11 +36404,12 @@ curl -X GET http://zap/JSON/core/action/clearExcludedFro

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18674,27 +36422,26 @@ curl -X GET http://zap/JSON/core/action/clearExcludedFro - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionExcludeFromProxy

-

+

networkActionSetRateLimitRuleEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/excludeFromProxy/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setRateLimitRuleEnabled/?description=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/excludeFromProxy/?regex=string");
+
URL obj = new URL("http://zap/JSON/network/action/setRateLimitRuleEnabled/?description=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18710,37 +36457,21 @@ curl -X GET http://zap/JSON/core/action/excludeFromProxy
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/excludeFromProxy/', params={
-  'regex': 'string'
+r = requests.get('http://zap/JSON/network/action/setRateLimitRuleEnabled/', params={
+  'description': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/excludeFromProxy/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/excludeFromProxy/

+

GET /JSON/network/action/setRateLimitRuleEnabled/

-

Adds a regex of URLs that should be excluded from the local proxies.

+

Set enabled state for a rate limit rule.

-

Parameters

+

Parameters

@@ -18752,11 +36483,18 @@ curl -X GET http://zap/JSON/core/action/excludeFromProxy - + - + + + + + + + +
regexdescription query string truenoneThe description of the rule to modify.
enabledquerystringtrueThe enabled state, true or false.
@@ -18766,11 +36504,12 @@ curl -X GET http://zap/JSON/core/action/excludeFromProxy

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18783,27 +36522,26 @@ curl -X GET http://zap/JSON/core/action/excludeFromProxy - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetHomeDirectory

-

+

networkActionSetRootCaCertValidity

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setHomeDirectory/?dir=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setRootCaCertValidity/?validity=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setHomeDirectory/?dir=string");
+
URL obj = new URL("http://zap/JSON/network/action/setRootCaCertValidity/?validity=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18819,35 +36557,21 @@ curl -X GET http://zap/JSON/core/action/setHomeDirectory
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setHomeDirectory/', params={
-  'dir': 'string'
+r = requests.get('http://zap/JSON/network/action/setRootCaCertValidity/', params={
+  'validity': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setHomeDirectory/',
-  params: {
-  'dir' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setHomeDirectory/

+

GET /JSON/network/action/setRootCaCertValidity/

-

Parameters

+

Sets the Root CA certificate validity. Used when generating a new Root CA certificate.

+ +

Parameters

@@ -18859,11 +36583,11 @@ curl -X GET http://zap/JSON/core/action/setHomeDirectory - + - +
dirvalidity query string truenoneThe number of days that the generated Root CA certificate will be valid for.
@@ -18873,11 +36597,12 @@ curl -X GET http://zap/JSON/core/action/setHomeDirectory

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18890,27 +36615,26 @@ curl -X GET http://zap/JSON/core/action/setHomeDirectory - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetMode

-

+

networkActionSetServerCertValidity

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setMode/?mode=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setServerCertValidity/?validity=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setMode/?mode=string");
+
URL obj = new URL("http://zap/JSON/network/action/setServerCertValidity/?validity=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -18926,37 +36650,21 @@ curl -X GET http://zap/JSON/core/action/setMode/?mode
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setMode/', params={
-  'mode': 'string'
+r = requests.get('http://zap/JSON/network/action/setServerCertValidity/', params={
+  'validity': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setMode/',
-  params: {
-  'mode' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setMode/

+

GET /JSON/network/action/setServerCertValidity/

-

Sets the mode, which may be one of [safe, protect, standard, attack]

+

Sets the server certificate validity. Used when generating server certificates.

-

Parameters

+

Parameters

@@ -18968,11 +36676,11 @@ curl -X GET http://zap/JSON/core/action/setMode/?mode - + - +
modevalidity query string truenoneThe number of days that the generated server certificates will be valid for.
@@ -18982,11 +36690,12 @@ curl -X GET http://zap/JSON/core/action/setMode/?modedefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -18999,27 +36708,26 @@ curl -X GET http://zap/JSON/core/action/setMode/?mode - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionGenerateRootCA

-

+

networkActionSetSocksProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/generateRootCA/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setSocksProxy/?host=string&port=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/generateRootCA/");
+
URL obj = new URL("http://zap/JSON/network/action/setSocksProxy/?host=string&port=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19035,34 +36743,74 @@ curl -X GET http://zap/JSON/core/action/generateRootCA/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/generateRootCA/', params={
-
+r = requests.get('http://zap/JSON/network/action/setSocksProxy/', params={
+  'host': 'string',  'port': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/core/action/generateRootCA/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/network/action/setSocksProxy/

-p JSON.parse(result) +

Sets the SOCKS proxy configuration.

-
-

GET /JSON/core/action/generateRootCA/

+

Parameters

-

Generates a new Root CA certificate for the local proxies.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
hostquerystringtrueThe host, name or address.
portquerystringtrueThe port.
versionquerystringfalseThe SOCKS version.
useDnsquerystringfalseIf the names should be resolved by the SOCKS proxy, true or false.
usernamequerystringfalseThe user name.
passwordquerystringfalseThe password.

Example responses

@@ -19070,11 +36818,12 @@ curl -X GET http://zap/JSON/core/action/generateRootCA/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19087,27 +36836,26 @@ curl -X GET http://zap/JSON/core/action/generateRootCA/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSendRequest

-

+

networkActionSetSocksProxyEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/sendRequest/?request=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setSocksProxyEnabled/?enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/sendRequest/?request=string");
+
URL obj = new URL("http://zap/JSON/network/action/setSocksProxyEnabled/?enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19123,37 +36871,21 @@ curl -X GET http://zap/JSON/core/action/sendRequest/?req
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/sendRequest/', params={
-  'request': 'string'
+r = requests.get('http://zap/JSON/network/action/setSocksProxyEnabled/', params={
+  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/sendRequest/',
-  params: {
-  'request' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/sendRequest/

+

GET /JSON/network/action/setSocksProxyEnabled/

-

Sends the HTTP request, optionally following redirections. Returns the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

+

Sets whether or not the SOCKS proxy is enabled.

-

Parameters

+

Parameters

@@ -19165,18 +36897,11 @@ curl -X GET http://zap/JSON/core/action/sendRequest/?req - + - - - - - - - - +
requestenabled query string truenone
followRedirectsquerybooleanfalsenoneThe enabled state, true or false.
@@ -19186,11 +36911,12 @@ curl -X GET http://zap/JSON/core/action/sendRequest/?req

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19203,27 +36929,26 @@ curl -X GET http://zap/JSON/core/action/sendRequest/?req - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionRunGarbageCollection

-

+

networkActionSetUseClientCertificate

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/runGarbageCollection/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setUseClientCertificate/?use=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/runGarbageCollection/");
+
URL obj = new URL("http://zap/JSON/network/action/setUseClientCertificate/?use=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19239,32 +36964,39 @@ curl -X GET http://zap/JSON/core/action/runGarbageCollec
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/runGarbageCollection/', params={
-
+r = requests.get('http://zap/JSON/network/action/setUseClientCertificate/', params={
+  'use': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/network/action/setUseClientCertificate/

-result = RestClient.get 'http://zap/JSON/core/action/runGarbageCollection/', - params: { - }, headers: headers +

Sets whether or not to use the active client certificate.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/core/action/runGarbageCollection/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
usequerystringtrueThe use state, true or false.

Example responses

@@ -19272,11 +37004,12 @@ curl -X GET http://zap/JSON/core/action/runGarbageCollec

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19289,27 +37022,26 @@ curl -X GET http://zap/JSON/core/action/runGarbageCollec - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionDeleteSiteNode

-

+

networkActionSetUseGlobalHttpState

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/deleteSiteNode/?url=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/action/setUseGlobalHttpState/?use=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/deleteSiteNode/?url=string");
+
URL obj = new URL("http://zap/JSON/network/action/setUseGlobalHttpState/?use=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19325,37 +37057,21 @@ curl -X GET http://zap/JSON/core/action/deleteSiteNode/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/deleteSiteNode/', params={
-  'url': 'string'
+r = requests.get('http://zap/JSON/network/action/setUseGlobalHttpState/', params={
+  'use': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/deleteSiteNode/',
-  params: {
-  'url' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/deleteSiteNode/

+

GET /JSON/network/action/setUseGlobalHttpState/

-

Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).

+

Sets whether or not to use the global HTTP state.

-

Parameters

+

Parameters

@@ -19367,25 +37083,11 @@ curl -X GET http://zap/JSON/core/action/deleteSiteNode/? - + - - - - - - - - - - - - - - - +
urluse query string truenone
methodquerystringfalsenone
postDataquerystringfalsenoneThe use state, true or false.
@@ -19395,11 +37097,12 @@ curl -X GET http://zap/JSON/core/action/deleteSiteNode/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19412,27 +37115,26 @@ curl -X GET http://zap/JSON/core/action/deleteSiteNode/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionAddProxyChainExcludedDomain

-

+

networkOtherProxy.pac

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/network/other/proxy.pac/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string");
+
URL obj = new URL("http://zap/OTHER/network/other/proxy.pac/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19448,81 +37150,23 @@ curl -X GET http://zap/JSON/core/action/addProxyChainExc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/action/addProxyChainExcludedDomain/', params={
-  'value': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/addProxyChainExcludedDomain/',
-  params: {
-  'value' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/network/other/proxy.pac/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/core/action/addProxyChainExcludedDomain/

- -

Adds a domain to be excluded from the outgoing proxy, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

+

GET /OTHER/network/other/proxy.pac/

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
valuequerystringtruenone
isRegexquerybooleanfalsenone
isEnabledquerybooleanfalsenone
+

Provides a PAC file, proxying through the main proxy.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -19535,27 +37179,28 @@ curl -X GET http://zap/JSON/core/action/addProxyChainExc - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreActionModifyProxyChainExcludedDomain

-

+

networkOtherRootCaCert

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/network/other/rootCaCert/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=0");
+
URL obj = new URL("http://zap/OTHER/network/other/rootCaCert/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19571,88 +37216,23 @@ curl -X GET http://zap/JSON/core/action/modifyProxyChain
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/action/modifyProxyChainExcludedDomain/', params={
-  'idx': '0'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/OTHER/network/other/rootCaCert/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/modifyProxyChainExcludedDomain/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/core/action/modifyProxyChainExcludedDomain/

+

GET /OTHER/network/other/rootCaCert/

-

Modifies a domain excluded from the outgoing proxy. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view proxyChainExcludedDomains.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
idxqueryintegertruenone
valuequerystringfalsenone
isRegexquerybooleanfalsenone
isEnabledquerybooleanfalsenone
+

Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -19665,27 +37245,28 @@ curl -X GET http://zap/JSON/core/action/modifyProxyChain - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreActionRemoveProxyChainExcludedDomain

-

+

networkOtherSetProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/network/other/setProxy/?proxy=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=0");
+
URL obj = new URL("http://zap/OTHER/network/other/setProxy/?proxy=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19701,37 +37282,21 @@ curl -X GET http://zap/JSON/core/action/removeProxyChain
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/action/removeProxyChainExcludedDomain/', params={
-  'idx': '0'
+r = requests.get('http://zap/OTHER/network/other/setProxy/', params={
+  'proxy': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/removeProxyChainExcludedDomain/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/core/action/removeProxyChainExcludedDomain/

+

GET /OTHER/network/other/setProxy/

-

Removes a domain excluded from the outgoing proxy, with the given index. The index can be obtained with the view proxyChainExcludedDomains.

+

Sets the HTTP proxy configuration.

-

Parameters

+

Parameters

@@ -19743,25 +37308,19 @@ curl -X GET http://zap/JSON/core/action/removeProxyChain - + - + - +
idxproxy queryintegerstring truenoneThe JSON object containing the HTTP proxy configuration.

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -19774,27 +37333,28 @@ curl -X GET http://zap/JSON/core/action/removeProxyChain - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreActionEnableAllProxyChainExcludedDomains

-

+

networkViewGetAliases

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getAliases/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/");
+
URL obj = new URL("http://zap/JSON/network/view/getAliases/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19810,34 +37370,17 @@ curl -X GET http://zap/JSON/core/action/enableAllProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/network/view/getAliases/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/enableAllProxyChainExcludedDomains/

+

GET /JSON/network/view/getAliases/

-

Enables all domains excluded from the outgoing proxy.

+

Gets the aliases used to identify the local servers/proxies.

Example responses

@@ -19845,11 +37388,12 @@ curl -X GET http://zap/JSON/core/action/enableAllProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19862,27 +37406,26 @@ curl -X GET http://zap/JSON/core/action/enableAllProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionDisableAllProxyChainExcludedDomains

-

+

networkViewGetConnectionTimeout

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getConnectionTimeout/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/");
+
URL obj = new URL("http://zap/JSON/network/view/getConnectionTimeout/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19898,34 +37441,17 @@ curl -X GET http://zap/JSON/core/action/disableAllProxyC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/', params={
+r = requests.get('http://zap/JSON/network/view/getConnectionTimeout/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/disableAllProxyChainExcludedDomains/

+

GET /JSON/network/view/getConnectionTimeout/

-

Disables all domains excluded from the outgoing proxy.

+

Gets the connection timeout, in seconds.

Example responses

@@ -19933,11 +37459,12 @@ curl -X GET http://zap/JSON/core/action/disableAllProxyC

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -19950,27 +37477,26 @@ curl -X GET http://zap/JSON/core/action/disableAllProxyC - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionMaximumAlertInstances

-

+

networkViewGetDefaultUserAgent

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getDefaultUserAgent/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=0");
+
URL obj = new URL("http://zap/JSON/network/view/getDefaultUserAgent/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -19986,55 +37512,17 @@ curl -X GET http://zap/JSON/core/action/setOptionMaximum
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionMaximumAlertInstances/', params={
-  'numberOfInstances': '0'
-}, headers = headers)
+r = requests.get('http://zap/JSON/network/view/getDefaultUserAgent/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionMaximumAlertInstances/',
-  params: {
-  'numberOfInstances' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionMaximumAlertInstances/

- -

Sets the maximum number of alert instances to include in a report. A value of zero is treated as unlimited.

+

GET /JSON/network/view/getDefaultUserAgent/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
numberOfInstancesqueryintegertruenone
+

Gets the default user-agent.

Example responses

@@ -20042,11 +37530,12 @@ curl -X GET http://zap/JSON/core/action/setOptionMaximum

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20059,27 +37548,26 @@ curl -X GET http://zap/JSON/core/action/setOptionMaximum - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionMergeRelatedAlerts

-

+

networkViewGetDnsTtlSuccessfulQueries

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=true");
+
URL obj = new URL("http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20095,55 +37583,17 @@ curl -X GET http://zap/JSON/core/action/setOptionMergeRe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionMergeRelatedAlerts/', params={
-  'enabled': 'true'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/core/action/setOptionMergeRelatedAlerts/',
-  params: {
-  'enabled' => 'boolean'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionMergeRelatedAlerts/

- -

Sets whether or not related alerts will be merged in any reports generated.

+

GET /JSON/network/view/getDnsTtlSuccessfulQueries/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
enabledquerybooleantruenone
+

Gets the TTL (in seconds) of successful DNS queries.

Example responses

@@ -20151,11 +37601,12 @@ curl -X GET http://zap/JSON/core/action/setOptionMergeRe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20168,27 +37619,26 @@ curl -X GET http://zap/JSON/core/action/setOptionMergeRe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionAlertOverridesFilePath

-

+

networkViewGetHttpProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionAlertOverridesFilePath/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getHttpProxy/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionAlertOverridesFilePath/");
+
URL obj = new URL("http://zap/JSON/network/view/getHttpProxy/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20204,54 +37654,17 @@ curl -X GET http://zap/JSON/core/action/setOptionAlertOv
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/action/setOptionAlertOverridesFilePath/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/action/setOptionAlertOverridesFilePath/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/network/view/getHttpProxy/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionAlertOverridesFilePath/

- -

Sets (or clears, if empty) the path to the file with alert overrides.

+

GET /JSON/network/view/getHttpProxy/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
filePathquerystringfalsenone
+

Gets the HTTP proxy.

Example responses

@@ -20259,11 +37672,12 @@ curl -X GET http://zap/JSON/core/action/setOptionAlertOv

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20276,27 +37690,26 @@ curl -X GET http://zap/JSON/core/action/setOptionAlertOv - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionEnablePKCS12ClientCertificate

-

+

networkViewGetHttpProxyExclusions

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getHttpProxyExclusions/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string");
+
URL obj = new URL("http://zap/JSON/network/view/getHttpProxyExclusions/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20312,82 +37725,101 @@ curl -X GET http://zap/JSON/core/action/enablePKCS12Clie
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/enablePKCS12ClientCertificate/', params={
-  'filePath': 'string',  'password': 'string'
-}, headers = headers)
+r = requests.get('http://zap/JSON/network/view/getHttpProxyExclusions/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/enablePKCS12ClientCertificate/',
-  params: {
-  'filePath' => 'string',
-'password' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/enablePKCS12ClientCertificate/

+

GET /JSON/network/view/getHttpProxyExclusions/

-

Enables use of a PKCS12 client certificate for the certificate with the given file system path, password, and optional index.

+

Gets the HTTP proxy exclusions.

-

Parameters

+
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - - - - - - - - - - - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
filePathquerystringtruenone
passwordquerystringtruenone
indexquerystringfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

networkViewGetLocalServers

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/network/view/getLocalServers/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/network/view/getLocalServers/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/network/view/getLocalServers/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/network/view/getLocalServers/

+ +

Gets the local servers/proxies.

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20400,27 +37832,26 @@ curl -X GET http://zap/JSON/core/action/enablePKCS12Clie - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionDisableClientCertificate

-

+

networkViewGetPassThroughs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/disableClientCertificate/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getPassThroughs/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/disableClientCertificate/");
+
URL obj = new URL("http://zap/JSON/network/view/getPassThroughs/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20436,34 +37867,17 @@ curl -X GET http://zap/JSON/core/action/disableClientCer
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/disableClientCertificate/', params={
-
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/getPassThroughs/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/disableClientCertificate/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/disableClientCertificate/

+

GET /JSON/network/view/getPassThroughs/

-

Disables the option for use of client certificates.

+

Gets the authorities that will pass-through the local proxies.

Example responses

@@ -20471,11 +37885,12 @@ curl -X GET http://zap/JSON/core/action/disableClientCer

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20488,27 +37903,26 @@ curl -X GET http://zap/JSON/core/action/disableClientCer - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionDeleteAllAlerts

-

+

networkViewGetRateLimitRules

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/deleteAllAlerts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getRateLimitRules/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/deleteAllAlerts/");
+
URL obj = new URL("http://zap/JSON/network/view/getRateLimitRules/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20524,34 +37938,17 @@ curl -X GET http://zap/JSON/core/action/deleteAllAlerts/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/action/deleteAllAlerts/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/action/deleteAllAlerts/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/network/view/getRateLimitRules/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/deleteAllAlerts/

+

GET /JSON/network/view/getRateLimitRules/

-

Deletes all alerts of the current session.

+

List of rate limit rules.

Example responses

@@ -20559,11 +37956,12 @@ curl -X GET http://zap/JSON/core/action/deleteAllAlerts/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20576,27 +37974,26 @@ curl -X GET http://zap/JSON/core/action/deleteAllAlerts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionDeleteAlert

-

+

networkViewGetRootCaCertValidity

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/deleteAlert/?id=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getRootCaCertValidity/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/deleteAlert/?id=0");
+
URL obj = new URL("http://zap/JSON/network/view/getRootCaCertValidity/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20612,55 +38009,17 @@ curl -X GET http://zap/JSON/core/action/deleteAlert/?id<
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/deleteAlert/', params={
-  'id': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/network/view/getRootCaCertValidity/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/core/action/deleteAlert/',
-  params: {
-  'id' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/deleteAlert/

- -

Deletes the alert with the given ID.

+

GET /JSON/network/view/getRootCaCertValidity/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
idqueryintegertruenone
+

Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.

Example responses

@@ -20668,11 +38027,12 @@ curl -X GET http://zap/JSON/core/action/deleteAlert/?id<

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20685,27 +38045,26 @@ curl -X GET http://zap/JSON/core/action/deleteAlert/?id< - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionDefaultUserAgent

-

+

networkViewGetServerCertValidity

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getServerCertValidity/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/getServerCertValidity/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20721,55 +38080,17 @@ curl -X GET http://zap/JSON/core/action/setOptionDefault
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionDefaultUserAgent/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/getServerCertValidity/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionDefaultUserAgent/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionDefaultUserAgent/

+

GET /JSON/network/view/getServerCertValidity/

-

Sets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Gets the server certificate validity, in days. Used when generating server certificates.

Example responses

@@ -20777,11 +38098,12 @@ curl -X GET http://zap/JSON/core/action/setOptionDefault

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20794,27 +38116,26 @@ curl -X GET http://zap/JSON/core/action/setOptionDefault - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainName

-

+

networkViewGetSocksProxy

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainName/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/getSocksProxy/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainName/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/getSocksProxy/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20830,53 +38151,17 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainName/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/getSocksProxy/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainName/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainName/

+

GET /JSON/network/view/getSocksProxy/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Gets the SOCKS proxy.

Example responses

@@ -20884,11 +38169,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -20901,27 +38187,26 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainPassword

-

+

networkViewIsHttpProxyAuthEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/isHttpProxyAuthEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/isHttpProxyAuthEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -20937,53 +38222,17 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPassword/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/isHttpProxyAuthEnabled/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPassword/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainPassword/

+

GET /JSON/network/view/isHttpProxyAuthEnabled/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Tells whether or not the HTTP proxy authentication is enabled.

Example responses

@@ -20991,11 +38240,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21008,27 +38258,26 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainRealm

-

+

networkViewIsHttpProxyEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/isHttpProxyEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/isHttpProxyEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21044,53 +38293,17 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainRealm/', params={
-  'String': 'string'
-}, headers = headers)
+r = requests.get('http://zap/JSON/network/view/isHttpProxyEnabled/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainRealm/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainRealm/

- -

Parameters

+

GET /JSON/network/view/isHttpProxyEnabled/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Tells whether or not the HTTP proxy is enabled.

Example responses

@@ -21098,11 +38311,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21115,27 +38329,26 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainSkipName

-

+

networkViewIsSocksProxyEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/isSocksProxyEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/isSocksProxyEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21151,55 +38364,17 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainSkipName/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/isSocksProxyEnabled/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainSkipName/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainSkipName/

+

GET /JSON/network/view/isSocksProxyEnabled/

-

Use actions [add|modify|remove]ProxyChainExcludedDomain instead.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Tells whether or not the SOCKS proxy is enabled.

Example responses

@@ -21207,11 +38382,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21224,27 +38400,26 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainUserName

-

+

networkViewIsUseGlobalHttpState

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/network/view/isUseGlobalHttpState/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string");
+
URL obj = new URL("http://zap/JSON/network/view/isUseGlobalHttpState/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21260,53 +38435,17 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainUserName/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/network/view/isUseGlobalHttpState/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainUserName/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainUserName/

+

GET /JSON/network/view/isUseGlobalHttpState/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Tells whether or not to use global HTTP state.

Example responses

@@ -21314,11 +38453,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21331,27 +38471,28 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionDnsTtlSuccessfulQueries

-

+ +

openapi

+

openapiActionImportFile

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/openapi/action/importFile/?file=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0");
+
URL obj = new URL("http://zap/JSON/openapi/action/importFile/?file=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21367,37 +38508,21 @@ curl -X GET http://zap/JSON/core/action/setOptionDnsTtlS
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/openapi/action/importFile/', params={
+  'file': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionDnsTtlSuccessfulQueries/

+

GET /JSON/openapi/action/importFile/

-

Sets the TTL (in seconds) of successful DNS queries (applies after ZAP restart).

+

Imports an OpenAPI definition from a local file.

-

Parameters

+

Parameters

@@ -21409,10 +38534,24 @@ curl -X GET http://zap/JSON/core/action/setOptionDnsTtlS - + - + + + + + + + + + + + + + + +
Integerfile queryintegerstring trueThe file that contains the OpenAPI definition.
targetquerystringfalseThe Target URL to override the server URL present in the definition.
contextIdquerystringfalse none
@@ -21423,11 +38562,12 @@ curl -X GET http://zap/JSON/core/action/setOptionDnsTtlS

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21440,27 +38580,26 @@ curl -X GET http://zap/JSON/core/action/setOptionDnsTtlS - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionHttpStateEnabled

-

+

openapiActionImportUrl

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/openapi/action/importUrl/?url=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/openapi/action/importUrl/?url=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21476,35 +38615,21 @@ curl -X GET http://zap/JSON/core/action/setOptionHttpSta
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionHttpStateEnabled/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/openapi/action/importUrl/', params={
+  'url': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionHttpStateEnabled/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionHttpStateEnabled/

+

GET /JSON/openapi/action/importUrl/

-

Parameters

+

Imports an OpenAPI definition from a URL.

+ +

Parameters

@@ -21516,10 +38641,24 @@ curl -X GET http://zap/JSON/core/action/setOptionHttpSta - + + + + + + + + + + + + + + +
Booleanurl query string trueThe URL locating the OpenAPI definition.
hostOverridequerystringfalseThe Target URL (called hostOverride for historical reasons) to override the server URL present in the definition.
contextIdquerystringfalse none
@@ -21530,11 +38669,12 @@ curl -X GET http://zap/JSON/core/action/setOptionHttpSta

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21547,27 +38687,28 @@ curl -X GET http://zap/JSON/core/action/setOptionHttpSta - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainPort

-

+ +

paramDigger

+

paramDiggerActionHelloWorld

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/paramDigger/action/helloWorld/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0");
+
URL obj = new URL("http://zap/JSON/paramDigger/action/helloWorld/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21583,53 +38724,15 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPort/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPort/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/paramDigger/action/helloWorld/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainPort/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Integerqueryintegertruenone
+

GET /JSON/paramDigger/action/helloWorld/

Example responses

@@ -21637,11 +38740,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -21654,27 +38758,28 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionProxyChainPrompt

-

+ +

pnh

+

pnhActionMonitor

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pnh/action/monitor/?id=string&message=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/pnh/action/monitor/?id=string&message=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21690,35 +38795,19 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPrompt/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/pnh/action/monitor/', params={
+  'id': 'string',  'message': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPrompt/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionProxyChainPrompt/

+

GET /JSON/pnh/action/monitor/

-

Parameters

+

Parameters

@@ -21730,7 +38819,14 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - + + + + + + + + @@ -21744,11 +38840,12 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

Booleanidquerystringtruenone
message query string true
@@ -21761,27 +38858,26 @@ curl -X GET http://zap/JSON/core/action/setOptionProxyCh - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionSingleCookieRequestHeader

-

+

pnhActionOracle

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pnh/action/oracle/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/pnh/action/oracle/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21797,35 +38893,19 @@ curl -X GET http://zap/JSON/core/action/setOptionSingleC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/pnh/action/oracle/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionSingleCookieRequestHeader/

+

GET /JSON/pnh/action/oracle/

-

Parameters

+

Parameters

@@ -21837,7 +38917,7 @@ curl -X GET http://zap/JSON/core/action/setOptionSingleC - + @@ -21851,11 +38931,12 @@ curl -X GET http://zap/JSON/core/action/setOptionSingleC

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

Booleanid query string true
@@ -21868,27 +38949,26 @@ curl -X GET http://zap/JSON/core/action/setOptionSingleC - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionTimeoutInSecs

-

+

pnhActionStartMonitoring

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pnh/action/startMonitoring/?url=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0");
+
URL obj = new URL("http://zap/JSON/pnh/action/startMonitoring/?url=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -21904,37 +38984,19 @@ curl -X GET http://zap/JSON/core/action/setOptionTimeout
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionTimeoutInSecs/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/pnh/action/startMonitoring/', params={
+  'url': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionTimeoutInSecs/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionTimeoutInSecs/

+

GET /JSON/pnh/action/startMonitoring/

-

Sets the connection time out, in seconds.

- -

Parameters

+

Parameters

@@ -21946,9 +39008,9 @@ curl -X GET http://zap/JSON/core/action/setOptionTimeout - + - + @@ -21960,11 +39022,12 @@ curl -X GET http://zap/JSON/core/action/setOptionTimeout

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

Integerurl queryintegerstring true none
@@ -21977,27 +39040,26 @@ curl -X GET http://zap/JSON/core/action/setOptionTimeout - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionUseProxyChain

-

+

pnhActionStopMonitoring

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pnh/action/stopMonitoring/?id=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/pnh/action/stopMonitoring/?id=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22013,37 +39075,19 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChain/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/pnh/action/stopMonitoring/', params={
+  'id': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionUseProxyChain/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/core/action/setOptionUseProxyChain/

- -

Sets whether or not the outgoing proxy should be used. The address/hostname of the outgoing proxy must be set to enable this option.

+

GET /JSON/pnh/action/stopMonitoring/

-

Parameters

+

Parameters

@@ -22055,7 +39099,7 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx - + @@ -22069,11 +39113,12 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

Booleanid query string true
@@ -22086,27 +39131,26 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreActionSetOptionUseProxyChainAuth

-

+

pnhOtherFx_pnh.xpi

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/pnh/other/fx_pnh.xpi/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=string");
+
URL obj = new URL("http://zap/OTHER/pnh/other/fx_pnh.xpi/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22122,65 +39166,21 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChainAuth/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/core/action/setOptionUseProxyChainAuth/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/OTHER/pnh/other/fx_pnh.xpi/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/core/action/setOptionUseProxyChainAuth/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

GET /OTHER/pnh/other/fx_pnh.xpi/

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -22193,27 +39193,28 @@ curl -X GET http://zap/JSON/core/action/setOptionUseProx - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreOtherProxy.pac

-

+

pnhOtherManifest

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/proxy.pac/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/pnh/other/manifest/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/OTHER/core/other/proxy.pac/");
+
URL obj = new URL("http://zap/OTHER/pnh/other/manifest/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22229,44 +39230,21 @@ curl -X GET http://zap/OTHER/core/other/proxy.pac/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/OTHER/core/other/proxy.pac/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
+r = requests.get('http://zap/OTHER/pnh/other/manifest/', headers = headers)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/proxy.pac/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /OTHER/core/other/proxy.pac/

+

GET /OTHER/pnh/other/manifest/

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -22279,27 +39257,28 @@ curl -X GET http://zap/OTHER/core/other/proxy.pac/ - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreOtherRootcert

-

+

pnhOtherPnh

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/rootcert/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/pnh/other/pnh/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/OTHER/core/other/rootcert/");
+
URL obj = new URL("http://zap/OTHER/pnh/other/pnh/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22315,46 +39294,21 @@ curl -X GET http://zap/OTHER/core/other/rootcert/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/core/other/rootcert/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/OTHER/core/other/rootcert/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/OTHER/pnh/other/pnh/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /OTHER/core/other/rootcert/

- -

Gets the Root CA certificate used by the local proxies.

+

GET /OTHER/pnh/other/pnh/

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -22367,27 +39321,28 @@ curl -X GET http://zap/OTHER/core/other/rootcert/ - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreOtherSetproxy

-

+

pnhOtherService

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/setproxy/?proxy=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/pnh/other/service/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/OTHER/core/other/setproxy/?proxy=string");
+
URL obj = new URL("http://zap/OTHER/pnh/other/service/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22403,65 +39358,21 @@ curl -X GET http://zap/OTHER/core/other/setproxy/?proxy<
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/OTHER/core/other/setproxy/', params={
-  'proxy': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/OTHER/pnh/other/service/', headers = headers)
 
-result = RestClient.get 'http://zap/OTHER/core/other/setproxy/',
-  params: {
-  'proxy' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /OTHER/core/other/setproxy/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
proxyquerystringtruenone
+

GET /OTHER/pnh/other/service/

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -22474,27 +39385,30 @@ curl -X GET http://zap/OTHER/core/other/setproxy/?proxy< - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

coreOtherXmlreport

-

+ +

postman

+

postmanActionImportFile

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/xmlreport/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/postman/action/importFile/?file=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/xmlreport/");
+
URL obj = new URL("http://zap/JSON/postman/action/importFile/?file=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22510,34 +39424,44 @@ curl -X GET http://zap/OTHER/core/other/xmlreport/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/xmlreport/', params={
-
+r = requests.get('http://zap/JSON/postman/action/importFile/', params={
+  'file': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/xmlreport/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/xmlreport/

+

GET /JSON/postman/action/importFile/

-

Generates a report in XML format

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
filequerystringtruenone
endpointUrlquerystringfalsenone

Example responses

@@ -22545,11 +39469,12 @@ curl -X GET http://zap/OTHER/core/other/xmlreport/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -22562,27 +39487,26 @@ curl -X GET http://zap/OTHER/core/other/xmlreport/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherHtmlreport

-

+

postmanActionImportUrl

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/htmlreport/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/postman/action/importUrl/?url=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/htmlreport/");
+
URL obj = new URL("http://zap/JSON/postman/action/importUrl/?url=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22598,34 +39522,44 @@ curl -X GET http://zap/OTHER/core/other/htmlreport/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/htmlreport/', params={
-
+r = requests.get('http://zap/JSON/postman/action/importUrl/', params={
+  'url': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/htmlreport/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/htmlreport/

+

GET /JSON/postman/action/importUrl/

-

Generates a report in HTML format

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
urlquerystringtruenone
endpointUrlquerystringfalsenone

Example responses

@@ -22633,11 +39567,12 @@ curl -X GET http://zap/OTHER/core/other/htmlreport/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -22650,27 +39585,28 @@ curl -X GET http://zap/OTHER/core/other/htmlreport/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherJsonreport

-

+ +

pscan

+

pscanActionClearQueue

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/jsonreport/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/clearQueue/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/jsonreport/");
+
URL obj = new URL("http://zap/JSON/pscan/action/clearQueue/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22686,34 +39622,17 @@ curl -X GET http://zap/OTHER/core/other/jsonreport/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/jsonreport/', params={
+r = requests.get('http://zap/JSON/pscan/action/clearQueue/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/jsonreport/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/jsonreport/

+

GET /JSON/pscan/action/clearQueue/

-

Generates a report in JSON format

+

Clears the passive scan queue.

Example responses

@@ -22721,11 +39640,12 @@ curl -X GET http://zap/OTHER/core/other/jsonreport/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -22738,27 +39658,26 @@ curl -X GET http://zap/OTHER/core/other/jsonreport/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherMdreport

-

+

pscanActionDisableAllScanners

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/mdreport/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/disableAllScanners/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/mdreport/");
+
URL obj = new URL("http://zap/JSON/pscan/action/disableAllScanners/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22774,34 +39693,17 @@ curl -X GET http://zap/OTHER/core/other/mdreport/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/core/other/mdreport/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/core/other/mdreport/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/pscan/action/disableAllScanners/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/mdreport/

+

GET /JSON/pscan/action/disableAllScanners/

-

Generates a report in Markdown format

+

Disables all passive scan rules

Example responses

@@ -22809,11 +39711,12 @@ curl -X GET http://zap/OTHER/core/other/mdreport/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -22826,27 +39729,26 @@ curl -X GET http://zap/OTHER/core/other/mdreport/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherMessageHar

-

+

pscanActionDisableAllTags

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/messageHar/?id=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/disableAllTags/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/messageHar/?id=0");
+
URL obj = new URL("http://zap/JSON/pscan/action/disableAllTags/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22862,55 +39764,17 @@ curl -X GET http://zap/OTHER/core/other/messageHar/?id
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/messageHar/', params={
-  'id': '0'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/pscan/action/disableAllTags/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/messageHar/',
-  params: {
-  'id' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/messageHar/

+

GET /JSON/pscan/action/disableAllTags/

-

Gets the message with the given ID in HAR format

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
idqueryintegertruenone
+

Disables all passive scan tags.

Example responses

@@ -22918,11 +39782,12 @@ curl -X GET http://zap/OTHER/core/other/messageHar/?iddefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -22935,27 +39800,26 @@ curl -X GET http://zap/OTHER/core/other/messageHar/?id - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherMessagesHar

-

+

pscanActionDisableScanners

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/messagesHar/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/disableScanners/?ids=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/messagesHar/");
+
URL obj = new URL("http://zap/JSON/pscan/action/disableScanners/?ids=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -22971,36 +39835,21 @@ curl -X GET http://zap/OTHER/core/other/messagesHar/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/messagesHar/', params={
-
+r = requests.get('http://zap/JSON/pscan/action/disableScanners/', params={
+  'ids': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/messagesHar/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/messagesHar/

+

GET /JSON/pscan/action/disableScanners/

-

Gets the HTTP messages sent through/by ZAP, in HAR format, optionally filtered by URL and paginated with 'start' position and 'count' of messages

+

Disables all passive scan rules with the given IDs (comma separated list of IDs)

-

Parameters

+

Parameters

@@ -23012,24 +39861,10 @@ curl -X GET http://zap/OTHER/core/other/messagesHar/ - + - - - - - - - - - - - - - - - +
baseurlids query stringfalsenone
startqueryintegerfalsenone
countqueryintegerfalsetrue none
@@ -23040,11 +39875,12 @@ curl -X GET http://zap/OTHER/core/other/messagesHar/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23057,27 +39893,26 @@ curl -X GET http://zap/OTHER/core/other/messagesHar/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherMessagesHarById

-

+

pscanActionEnableAllScanners

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/messagesHarById/?ids=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/enableAllScanners/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/messagesHarById/?ids=string");
+
URL obj = new URL("http://zap/JSON/pscan/action/enableAllScanners/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23093,55 +39928,17 @@ curl -X GET http://zap/OTHER/core/other/messagesHarById/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/OTHER/core/other/messagesHarById/', params={
-  'ids': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/OTHER/core/other/messagesHarById/',
-  params: {
-  'ids' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/pscan/action/enableAllScanners/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/messagesHarById/

- -

Gets the HTTP messages with the given IDs, in HAR format.

- -

Parameters

+

GET /JSON/pscan/action/enableAllScanners/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
idsquerystringtruenone
+

Enables all passive scan rules

Example responses

@@ -23149,11 +39946,12 @@ curl -X GET http://zap/OTHER/core/other/messagesHarById/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23166,27 +39964,26 @@ curl -X GET http://zap/OTHER/core/other/messagesHarById/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

coreOtherSendHarRequest

-

+

pscanActionEnableAllTags

+

Code samples

# You can also use wget
-curl -X GET http://zap/OTHER/core/other/sendHarRequest/?request=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/enableAllTags/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/OTHER/core/other/sendHarRequest/?request=string");
+
URL obj = new URL("http://zap/JSON/pscan/action/enableAllTags/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23202,62 +39999,17 @@ curl -X GET http://zap/OTHER/core/other/sendHarRequest/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/OTHER/core/other/sendHarRequest/', params={
-  'request': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/pscan/action/enableAllTags/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/OTHER/core/other/sendHarRequest/',
-  params: {
-  'request' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /OTHER/core/other/sendHarRequest/

- -

Sends the first HAR request entry, optionally following redirections. Returns, in HAR format, the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

+

GET /JSON/pscan/action/enableAllTags/

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
requestquerystringtruenone
followRedirectsquerybooleanfalsenone
+

Enables all passive scan tags.

Example responses

@@ -23265,11 +40017,12 @@ curl -X GET http://zap/OTHER/core/other/sendHarRequest/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23282,29 +40035,26 @@ curl -X GET http://zap/OTHER/core/other/sendHarRequest/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

params

-

paramsViewParams

-

+

pscanActionEnableScanners

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/params/view/params/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/enableScanners/?ids=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/params/view/params/");
+
URL obj = new URL("http://zap/JSON/pscan/action/enableScanners/?ids=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23320,36 +40070,21 @@ curl -X GET http://zap/JSON/params/view/params/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/params/view/params/', params={
-
+r = requests.get('http://zap/JSON/pscan/action/enableScanners/', params={
+  'ids': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/params/view/params/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/params/view/params/

+

GET /JSON/pscan/action/enableScanners/

-

Shows the parameters for the specified site, or for all sites if the site is not specified

+

Enables all passive scan rules with the given IDs (comma separated list of IDs)

-

Parameters

+

Parameters

@@ -23361,10 +40096,10 @@ curl -X GET http://zap/JSON/params/view/params/ - + - +
siteids query stringfalsetrue none
@@ -23375,11 +40110,12 @@ curl -X GET http://zap/JSON/params/view/params/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23392,29 +40128,26 @@ curl -X GET http://zap/JSON/params/view/params/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

ascan

-

ascanViewStatus

-

+

pscanActionSetEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/status/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/setEnabled/?enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/status/");
+
URL obj = new URL("http://zap/JSON/pscan/action/setEnabled/?enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23430,34 +40163,21 @@ curl -X GET http://zap/JSON/ascan/view/status/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/status/', params={
-
+r = requests.get('http://zap/JSON/pscan/action/setEnabled/', params={
+  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/status/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/status/

+

GET /JSON/pscan/action/setEnabled/

-

Parameters

+

Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).

+ +

Parameters

@@ -23469,10 +40189,10 @@ curl -X GET http://zap/JSON/ascan/view/status/ - + - - + +
scanIdenabled queryintegerfalsestringtrue none
@@ -23483,11 +40203,12 @@ curl -X GET http://zap/JSON/ascan/view/status/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23500,27 +40221,26 @@ curl -X GET http://zap/JSON/ascan/view/status/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewScanProgress

-

+

pscanActionSetMaxAlertsPerRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/scanProgress/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/scanProgress/");
+
URL obj = new URL("http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23536,34 +40256,21 @@ curl -X GET http://zap/JSON/ascan/view/scanProgress/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/scanProgress/', params={
-
+r = requests.get('http://zap/JSON/pscan/action/setMaxAlertsPerRule/', params={
+  'maxAlerts': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/scanProgress/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/scanProgress/

+

GET /JSON/pscan/action/setMaxAlertsPerRule/

-

Parameters

+

Sets the maximum number of alerts a passive scan rule should raise.

+ +

Parameters

@@ -23575,10 +40282,10 @@ curl -X GET http://zap/JSON/ascan/view/scanProgress/ - + - - + +
scanIdmaxAlerts queryintegerfalsestringtrue none
@@ -23589,11 +40296,12 @@ curl -X GET http://zap/JSON/ascan/view/scanProgress/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23606,27 +40314,26 @@ curl -X GET http://zap/JSON/ascan/view/scanProgress/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewMessagesIds

-

+

pscanActionSetScanOnlyInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/messagesIds/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/messagesIds/?scanId=0");
+
URL obj = new URL("http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23642,37 +40349,21 @@ curl -X GET http://zap/JSON/ascan/view/messagesIds/?scan
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/messagesIds/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/pscan/action/setScanOnlyInScope/', params={
+  'onlyInScope': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/messagesIds/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/messagesIds/

+

GET /JSON/pscan/action/setScanOnlyInScope/

-

Gets the IDs of the messages sent during the scan with the given ID. A message can be obtained with 'message' core view.

+

Sets whether or not the passive scan should be performed only on messages that are in scope.

-

Parameters

+

Parameters

@@ -23684,9 +40375,9 @@ curl -X GET http://zap/JSON/ascan/view/messagesIds/?scan - + - + @@ -23698,11 +40389,12 @@ curl -X GET http://zap/JSON/ascan/view/messagesIds/?scan

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdonlyInScope queryintegerstring true none
@@ -23715,27 +40407,26 @@ curl -X GET http://zap/JSON/ascan/view/messagesIds/?scan - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewAlertsIds

-

+

pscanActionSetScannerAlertThreshold

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=string&alertThreshold=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/alertsIds/?scanId=0");
+
URL obj = new URL("http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=string&alertThreshold=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23751,37 +40442,21 @@ curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/alertsIds/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/pscan/action/setScannerAlertThreshold/', params={
+  'id': 'string',  'alertThreshold': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/alertsIds/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/alertsIds/

+

GET /JSON/pscan/action/setScannerAlertThreshold/

-

Gets the IDs of the alerts raised during the scan with the given ID. An alert can be obtained with 'alert' core view.

+

Sets the alert threshold of the passive scan rule with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH

-

Parameters

+

Parameters

@@ -23793,9 +40468,16 @@ curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId - + - + + + + + + + + @@ -23807,11 +40489,12 @@ curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdid queryintegerstringtruenone
alertThresholdquerystring true none
@@ -23824,27 +40507,26 @@ curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewScans

-

+

pscanViewCurrentRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/scans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/currentRule/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/scans/");
+
URL obj = new URL("http://zap/JSON/pscan/view/currentRule/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23860,32 +40542,17 @@ curl -X GET http://zap/JSON/ascan/view/scans/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/scans/', params={
+r = requests.get('http://zap/JSON/pscan/view/currentRule/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/scans/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/scans/

+

GET /JSON/pscan/view/currentRule/

+ +

Use the currentTasks view instead.

Example responses

@@ -23893,11 +40560,12 @@ curl -X GET http://zap/JSON/ascan/view/scans/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23910,27 +40578,26 @@ curl -X GET http://zap/JSON/ascan/view/scans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewScanPolicyNames

-

+

pscanViewCurrentTasks

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/currentTasks/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/scanPolicyNames/");
+
URL obj = new URL("http://zap/JSON/pscan/view/currentTasks/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -23946,32 +40613,17 @@ curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/scanPolicyNames/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/pscan/view/currentTasks/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/ascan/view/scanPolicyNames/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/scanPolicyNames/

+

GET /JSON/pscan/view/currentTasks/

+ +

Show information about the passive scan tasks currently being run (if any).

Example responses

@@ -23979,11 +40631,12 @@ curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -23996,27 +40649,26 @@ curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewExcludedFromScan

-

+

pscanViewMaxAlertsPerRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/excludedFromScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/excludedFromScan/");
+
URL obj = new URL("http://zap/JSON/pscan/view/maxAlertsPerRule/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24032,34 +40684,17 @@ curl -X GET http://zap/JSON/ascan/view/excludedFromScan/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/excludedFromScan/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/excludedFromScan/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/pscan/view/maxAlertsPerRule/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/excludedFromScan/

+

GET /JSON/pscan/view/maxAlertsPerRule/

-

Gets the regexes of URLs excluded from the active scans.

+

Gets the maximum number of alerts a passive scan rule should raise.

Example responses

@@ -24067,11 +40702,12 @@ curl -X GET http://zap/JSON/ascan/view/excludedFromScan/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24084,27 +40720,26 @@ curl -X GET http://zap/JSON/ascan/view/excludedFromScan/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewScanners

-

+

pscanViewRecordsToScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/scanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/recordsToScan/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/scanners/");
+
URL obj = new URL("http://zap/JSON/pscan/view/recordsToScan/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24120,61 +40755,17 @@ curl -X GET http://zap/JSON/ascan/view/scanners/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/scanners/', params={
+r = requests.get('http://zap/JSON/pscan/view/recordsToScan/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/scanners/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/scanners/

- -

Gets the scanners, optionally, of the given scan policy and/or scanner policy/category ID.

- -

Parameters

+

GET /JSON/pscan/view/recordsToScan/

- - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
policyIdqueryintegerfalsenone
+

The number of records the passive scanner still has to scan

Example responses

@@ -24182,11 +40773,12 @@ curl -X GET http://zap/JSON/ascan/view/scanners/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24199,27 +40791,26 @@ curl -X GET http://zap/JSON/ascan/view/scanners/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewPolicies

-

+

pscanViewScanOnlyInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/policies/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/policies/");
+
URL obj = new URL("http://zap/JSON/pscan/view/scanOnlyInScope/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24235,59 +40826,17 @@ curl -X GET http://zap/JSON/ascan/view/policies/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/policies/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/policies/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/pscan/view/scanOnlyInScope/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/policies/

- -

Parameters

+

GET /JSON/pscan/view/scanOnlyInScope/

- - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
policyIdqueryintegerfalsenone
+

Tells whether or not the passive scan should be performed only on messages that are in scope.

Example responses

@@ -24295,11 +40844,12 @@ curl -X GET http://zap/JSON/ascan/view/policies/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24312,27 +40862,26 @@ curl -X GET http://zap/JSON/ascan/view/policies/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewAttackModeQueue

-

+

pscanViewScanners

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/attackModeQueue/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/pscan/view/scanners/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/attackModeQueue/");
+
URL obj = new URL("http://zap/JSON/pscan/view/scanners/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24348,32 +40897,17 @@ curl -X GET http://zap/JSON/ascan/view/attackModeQueue/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/attackModeQueue/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/attackModeQueue/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/pscan/view/scanners/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/attackModeQueue/

+

GET /JSON/pscan/view/scanners/

+ +

Lists all passive scan rules with their ID, name, enabled state, and alert threshold.

Example responses

@@ -24381,11 +40915,12 @@ curl -X GET http://zap/JSON/ascan/view/attackModeQueue/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24398,27 +40933,28 @@ curl -X GET http://zap/JSON/ascan/view/attackModeQueue/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewExcludedParams

-

+ +

quickstartlaunch

+

quickstartlaunchOtherStartPage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/excludedParams/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/quickstartlaunch/other/startPage/ \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/excludedParams/");
+
URL obj = new URL("http://zap/OTHER/quickstartlaunch/other/startPage/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24434,46 +40970,21 @@ curl -X GET http://zap/JSON/ascan/view/excludedParams/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/excludedParams/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': '*/*'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/excludedParams/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/OTHER/quickstartlaunch/other/startPage/', headers = headers)
 
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/ascan/view/excludedParams/

- -

Gets all the parameters that are excluded. For each parameter the following are shown: the name, the URL, and the parameter type.

+

GET /OTHER/quickstartlaunch/other/startPage/

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -24486,27 +40997,30 @@ curl -X GET http://zap/JSON/ascan/view/excludedParams/ < - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

ascanViewOptionExcludedParamList

-

+ +

replacer

+

replacerActionAddRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionExcludedParamList/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/replacer/action/addRule/?description=string&enabled=string&matchType=string&matchRegex=string&matchString=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionExcludedParamList/");
+
URL obj = new URL("http://zap/JSON/replacer/action/addRule/?description=string&enabled=string&matchType=string&matchRegex=string&matchString=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24522,34 +41036,88 @@ curl -X GET http://zap/JSON/ascan/view/optionExcludedPar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionExcludedParamList/', params={
-
+r = requests.get('http://zap/JSON/replacer/action/addRule/', params={
+  'description': 'string',  'enabled': 'string',  'matchType': 'string',  'matchRegex': 'string',  'matchString': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionExcludedParamList/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/replacer/action/addRule/

-p JSON.parse(result) +

Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true if the matchString should be treated as a regex otherwise false, matchString is the string that will be matched against, replacement is the replacement string, initiators may be blank (for all initiators) or a comma separated list of integers as defined in HttpSender

-
-

GET /JSON/ascan/view/optionExcludedParamList/

+

Parameters

-

Use view excludedParams instead.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
descriptionquerystringtruenone
enabledquerystringtruenone
matchTypequerystringtruenone
matchRegexquerystringtruenone
matchStringquerystringtruenone
replacementquerystringfalsenone
initiatorsquerystringfalsenone
urlquerystringfalseA regular expression to match the URL of the message, if empty the rule applies to all messages.

Example responses

@@ -24557,11 +41125,12 @@ curl -X GET http://zap/JSON/ascan/view/optionExcludedPar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24574,27 +41143,26 @@ curl -X GET http://zap/JSON/ascan/view/optionExcludedPar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewExcludedParamTypes

-

+

replacerActionRemoveRule

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/excludedParamTypes/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/replacer/action/removeRule/?description=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/excludedParamTypes/");
+
URL obj = new URL("http://zap/JSON/replacer/action/removeRule/?description=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24610,34 +41178,39 @@ curl -X GET http://zap/JSON/ascan/view/excludedParamType
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/excludedParamTypes/', params={
-
+r = requests.get('http://zap/JSON/replacer/action/removeRule/', params={
+  'description': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/replacer/action/removeRule/

-result = RestClient.get 'http://zap/JSON/ascan/view/excludedParamTypes/', - params: { - }, headers: headers +

Removes the rule with the given description

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/ascan/view/excludedParamTypes/

- -

Gets all the types of excluded parameters. For each type the following are shown: the ID and the name.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
descriptionquerystringtruenone

Example responses

@@ -24645,11 +41218,12 @@ curl -X GET http://zap/JSON/ascan/view/excludedParamType

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24662,27 +41236,26 @@ curl -X GET http://zap/JSON/ascan/view/excludedParamType - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionAttackPolicy

-

+

replacerActionSetEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionAttackPolicy/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/replacer/action/setEnabled/?description=string&bool=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionAttackPolicy/");
+
URL obj = new URL("http://zap/JSON/replacer/action/setEnabled/?description=string&bool=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24698,32 +41271,46 @@ curl -X GET http://zap/JSON/ascan/view/optionAttackPolic
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionAttackPolicy/', params={
-
+r = requests.get('http://zap/JSON/replacer/action/setEnabled/', params={
+  'description': 'string',  'bool': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/replacer/action/setEnabled/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionAttackPolicy/', - params: { - }, headers: headers +

Enables or disables the rule with the given description based on the bool parameter

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/ascan/view/optionAttackPolicy/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
descriptionquerystringtruenone
boolquerystringtruenone

Example responses

@@ -24731,11 +41318,12 @@ curl -X GET http://zap/JSON/ascan/view/optionAttackPolic

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24748,27 +41336,26 @@ curl -X GET http://zap/JSON/ascan/view/optionAttackPolic - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionDefaultPolicy

-

+

replacerViewRules

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionDefaultPolicy/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/replacer/view/rules/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionDefaultPolicy/");
+
URL obj = new URL("http://zap/JSON/replacer/view/rules/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24784,32 +41371,17 @@ curl -X GET http://zap/JSON/ascan/view/optionDefaultPoli
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionDefaultPolicy/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionDefaultPolicy/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/replacer/view/rules/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionDefaultPolicy/

+

GET /JSON/replacer/view/rules/

+ +

Returns full details of all of the rules

Example responses

@@ -24817,11 +41389,12 @@ curl -X GET http://zap/JSON/ascan/view/optionDefaultPoli

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24834,27 +41407,28 @@ curl -X GET http://zap/JSON/ascan/view/optionDefaultPoli - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionDelayInMs

-

+ +

reports

+

reportsActionGenerate

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/reports/action/generate/?title=string&template=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionDelayInMs/");
+
URL obj = new URL("http://zap/JSON/reports/action/generate/?title=string&template=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24870,32 +41444,123 @@ curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionDelayInMs/', params={
-
+r = requests.get('http://zap/JSON/reports/action/generate/', params={
+  'title': 'string',  'template': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/reports/action/generate/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionDelayInMs/', - params: { - }, headers: headers +

Generate a report with the supplied parameters.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionDelayInMs/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
titlequerystringtrueReport Title
templatequerystringtrueReport Template
themequerystringfalseReport Theme
descriptionquerystringfalseReport Description
contextsquerystringfalseThe name of the contexts to be included in the report, separated by '
sitesquerystringfalseThe site URLs that should be included in the report, separated by '
sectionsquerystringfalseThe report sections that should be included, separated by '
includedConfidencesquerystringfalseConfidences that should be included in the report, separated by '
includedRisksquerystringfalseRisks that should be included in the report, separated by '
reportFileNamequerystringfalseThe file name of the generated report. This value overrides the reportFileNamePattern parameter.
reportFileNamePatternquerystringfalseReport File Name Pattern.
reportDirquerystringfalsePath to directory in which the generated report should be placed.
displayquerystringfalseDisplay the generated report. Either "true" or "false".

Example responses

@@ -24903,11 +41568,12 @@ curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -24920,27 +41586,26 @@ curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionHandleAntiCSRFTokens

-

+

reportsViewTemplateDetails

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/reports/view/templateDetails/?template=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/");
+
URL obj = new URL("http://zap/JSON/reports/view/templateDetails/?template=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -24956,32 +41621,39 @@ curl -X GET http://zap/JSON/ascan/view/optionHandleAntiC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/', params={
-
+r = requests.get('http://zap/JSON/reports/view/templateDetails/', params={
+  'template': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/reports/view/templateDetails/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/', - params: { - }, headers: headers +

View details of the specified template.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionHandleAntiCSRFTokens/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
templatequerystringtrueTemplate Label

Example responses

@@ -24989,11 +41661,12 @@ curl -X GET http://zap/JSON/ascan/view/optionHandleAntiC

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25006,27 +41679,26 @@ curl -X GET http://zap/JSON/ascan/view/optionHandleAntiC - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionHostPerScan

-

+

reportsViewTemplates

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionHostPerScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/reports/view/templates/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionHostPerScan/");
+
URL obj = new URL("http://zap/JSON/reports/view/templates/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25042,32 +41714,17 @@ curl -X GET http://zap/JSON/ascan/view/optionHostPerScan
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionHostPerScan/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionHostPerScan/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/reports/view/templates/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionHostPerScan/

+

GET /JSON/reports/view/templates/

+ +

View available templates.

Example responses

@@ -25075,11 +41732,12 @@ curl -X GET http://zap/JSON/ascan/view/optionHostPerScan

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25092,27 +41750,28 @@ curl -X GET http://zap/JSON/ascan/view/optionHostPerScan - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionMaxChartTimeInMins

-

+ +

retest

+

retestActionRetest

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionMaxChartTimeInMins/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/retest/action/retest/?alertIds=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxChartTimeInMins/");
+
URL obj = new URL("http://zap/JSON/retest/action/retest/?alertIds=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25128,32 +41787,37 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxChartTim
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionMaxChartTimeInMins/', params={
-
+r = requests.get('http://zap/JSON/retest/action/retest/', params={
+  'alertIds': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxChartTimeInMins/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/retest/action/retest/

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionMaxChartTimeInMins/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
alertIdsquerystringtruenone

Example responses

@@ -25161,11 +41825,12 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxChartTim

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25178,27 +41843,28 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxChartTim - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionMaxResultsToList

-

+ +

reveal

+

revealActionSetReveal

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionMaxResultsToList/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/reveal/action/setReveal/?reveal=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxResultsToList/");
+
URL obj = new URL("http://zap/JSON/reveal/action/setReveal/?reveal=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25214,32 +41880,39 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxResultsT
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionMaxResultsToList/', params={
-
+r = requests.get('http://zap/JSON/reveal/action/setReveal/', params={
+  'reveal': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/reveal/action/setReveal/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxResultsToList/', - params: { - }, headers: headers +

Sets if shows hidden fields and enables disabled fields

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionMaxResultsToList/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
revealquerystringtruenone

Example responses

@@ -25247,11 +41920,12 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxResultsT

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25264,27 +41938,26 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxResultsT - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionMaxRuleDurationInMins

-

+

revealViewReveal

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/reveal/view/reveal/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/");
+
URL obj = new URL("http://zap/JSON/reveal/view/reveal/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25300,32 +41973,17 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDura
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/reveal/view/reveal/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionMaxRuleDurationInMins/

+

GET /JSON/reveal/view/reveal/

+ +

Tells if shows hidden fields and enables disabled fields

Example responses

@@ -25333,11 +41991,12 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDura

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25350,27 +42009,28 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDura - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionMaxScanDurationInMins

-

+ +

revisit

+

revisitActionRevisitSiteOff

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionMaxScanDurationInMins/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/revisit/action/revisitSiteOff/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScanDurationInMins/");
+
URL obj = new URL("http://zap/JSON/revisit/action/revisitSiteOff/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25386,32 +42046,37 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScanDura
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionMaxScanDurationInMins/', params={
-
+r = requests.get('http://zap/JSON/revisit/action/revisitSiteOff/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxScanDurationInMins/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/revisit/action/revisitSiteOff/

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionMaxScanDurationInMins/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone

Example responses

@@ -25419,11 +42084,12 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScanDura

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25436,27 +42102,26 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScanDura - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionMaxScansInUI

-

+

revisitActionRevisitSiteOn

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionMaxScansInUI/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/revisit/action/revisitSiteOn/?site=string&startTime=string&endTime=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScansInUI/");
+
URL obj = new URL("http://zap/JSON/revisit/action/revisitSiteOn/?site=string&startTime=string&endTime=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25472,32 +42137,51 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScansInU
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionMaxScansInUI/', params={
-
+r = requests.get('http://zap/JSON/revisit/action/revisitSiteOn/', params={
+  'site': 'string',  'startTime': 'string',  'endTime': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxScansInUI/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/revisit/action/revisitSiteOn/

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionMaxScansInUI/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone
startTimequerystringtruenone
endTimequerystringtruenone

Example responses

@@ -25505,11 +42189,12 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScansInU

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25522,27 +42207,26 @@ curl -X GET http://zap/JSON/ascan/view/optionMaxScansInU - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionTargetParamsEnabledRPC

-

+

revisitViewRevisitList

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/revisit/view/revisitList/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/");
+
URL obj = new URL("http://zap/JSON/revisit/view/revisitList/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25558,32 +42242,15 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/revisit/view/revisitList/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionTargetParamsEnabledRPC/

+

GET /JSON/revisit/view/revisitList/

Example responses

@@ -25591,11 +42258,12 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25608,27 +42276,28 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionTargetParamsInjectable

-

+ +

ruleConfig

+

ruleConfigActionResetAllRuleConfigValues

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionTargetParamsInjectable/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsInjectable/");
+
URL obj = new URL("http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25644,32 +42313,17 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsInjectable/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionTargetParamsInjectable/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionTargetParamsInjectable/

+

GET /JSON/ruleConfig/action/resetAllRuleConfigValues/

+ +

Reset all of the rule configurations

Example responses

@@ -25677,11 +42331,12 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25694,27 +42349,26 @@ curl -X GET http://zap/JSON/ascan/view/optionTargetParam - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionThreadPerHost

-

+

ruleConfigActionResetRuleConfigValue

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionThreadPerHost/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionThreadPerHost/");
+
URL obj = new URL("http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25730,32 +42384,39 @@ curl -X GET http://zap/JSON/ascan/view/optionThreadPerHo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionThreadPerHost/', params={
-
+r = requests.get('http://zap/JSON/ruleConfig/action/resetRuleConfigValue/', params={
+  'key': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/ruleConfig/action/resetRuleConfigValue/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionThreadPerHost/', - params: { - }, headers: headers +

Reset the specified rule configuration, which must already exist

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionThreadPerHost/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
keyquerystringtruenone

Example responses

@@ -25763,11 +42424,12 @@ curl -X GET http://zap/JSON/ascan/view/optionThreadPerHo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25780,27 +42442,26 @@ curl -X GET http://zap/JSON/ascan/view/optionThreadPerHo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionAddQueryParam

-

+

ruleConfigActionSetRuleConfigValue

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionAddQueryParam/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionAddQueryParam/");
+
URL obj = new URL("http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25816,34 +42477,46 @@ curl -X GET http://zap/JSON/ascan/view/optionAddQueryPar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionAddQueryParam/', params={
-
+r = requests.get('http://zap/JSON/ruleConfig/action/setRuleConfigValue/', params={
+  'key': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionAddQueryParam/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ruleConfig/action/setRuleConfigValue/

-p JSON.parse(result) +

Set the specified rule configuration, which must already exist

- -

GET /JSON/ascan/view/optionAddQueryParam/

+

Parameters

-

Tells whether or not the active scanner should add a query parameter to GET request that don't have parameters to start with.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
keyquerystringtruenone
valuequerystringfalsenone

Example responses

@@ -25851,11 +42524,12 @@ curl -X GET http://zap/JSON/ascan/view/optionAddQueryPar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25868,27 +42542,26 @@ curl -X GET http://zap/JSON/ascan/view/optionAddQueryPar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionAllowAttackOnStart

-

+

ruleConfigViewAllRuleConfigs

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionAllowAttackOnStart/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfigs/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionAllowAttackOnStart/");
+
URL obj = new URL("http://zap/JSON/ruleConfig/view/allRuleConfigs/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25904,32 +42577,17 @@ curl -X GET http://zap/JSON/ascan/view/optionAllowAttack
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionAllowAttackOnStart/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionAllowAttackOnStart/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/ruleConfig/view/allRuleConfigs/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionAllowAttackOnStart/

+

GET /JSON/ruleConfig/view/allRuleConfigs/

+ +

Show all of the rule configurations

Example responses

@@ -25937,11 +42595,12 @@ curl -X GET http://zap/JSON/ascan/view/optionAllowAttack

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -25954,27 +42613,26 @@ curl -X GET http://zap/JSON/ascan/view/optionAllowAttack - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionInjectPluginIdInHeader

-

+

ruleConfigViewRuleConfigValue

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/");
+
URL obj = new URL("http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -25990,34 +42648,39 @@ curl -X GET http://zap/JSON/ascan/view/optionInjectPlugi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/', params={
-
+r = requests.get('http://zap/JSON/ruleConfig/view/ruleConfigValue/', params={
+  'key': 'string'
 }, headers = headers)
 
-print r.json()
+print(r.json())
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/ruleConfig/view/ruleConfigValue/

-p JSON.parse(result) +

Show the specified rule configuration

- -

GET /JSON/ascan/view/optionInjectPluginIdInHeader/

+

Parameters

-

Tells whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scanner that's sending the requests.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
keyquerystringtruenone

Example responses

@@ -26025,11 +42688,12 @@ curl -X GET http://zap/JSON/ascan/view/optionInjectPlugi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26042,27 +42706,28 @@ curl -X GET http://zap/JSON/ascan/view/optionInjectPlugi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionPromptInAttackMode

-

+ +

script

+

scriptActionClearGlobalCustomVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionPromptInAttackMode/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearGlobalCustomVar/?varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionPromptInAttackMode/");
+
URL obj = new URL("http://zap/JSON/script/action/clearGlobalCustomVar/?varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26078,32 +42743,39 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptInAtt
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionPromptInAttackMode/', params={
-
+r = requests.get('http://zap/JSON/script/action/clearGlobalCustomVar/', params={
+  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/action/clearGlobalCustomVar/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionPromptInAttackMode/', - params: { - }, headers: headers +

Clears a global custom variable.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionPromptInAttackMode/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
varKeyquerystringtrueThe key of the variable.

Example responses

@@ -26111,11 +42783,12 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptInAtt

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26128,27 +42801,26 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptInAtt - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionPromptToClearFinishedScans

-

+

scriptActionClearGlobalVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearGlobalVar/?varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/");
+
URL obj = new URL("http://zap/JSON/script/action/clearGlobalVar/?varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26164,32 +42836,39 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptToCle
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/', params={
-
+r = requests.get('http://zap/JSON/script/action/clearGlobalVar/', params={
+  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/action/clearGlobalVar/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/', - params: { - }, headers: headers +

Clears the global variable with the given key.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionPromptToClearFinishedScans/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
varKeyquerystringtruenone

Example responses

@@ -26197,11 +42876,12 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptToCle

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26214,27 +42894,26 @@ curl -X GET http://zap/JSON/ascan/view/optionPromptToCle - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionRescanInAttackMode

-

+

scriptActionClearGlobalVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionRescanInAttackMode/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearGlobalVars/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionRescanInAttackMode/");
+
URL obj = new URL("http://zap/JSON/script/action/clearGlobalVars/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26250,32 +42929,17 @@ curl -X GET http://zap/JSON/ascan/view/optionRescanInAtt
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/view/optionRescanInAttackMode/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/view/optionRescanInAttackMode/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/script/action/clearGlobalVars/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/view/optionRescanInAttackMode/

+

GET /JSON/script/action/clearGlobalVars/

+ +

Clears the global variables.

Example responses

@@ -26283,11 +42947,12 @@ curl -X GET http://zap/JSON/ascan/view/optionRescanInAtt

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26300,27 +42965,26 @@ curl -X GET http://zap/JSON/ascan/view/optionRescanInAtt - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionScanHeadersAllRequests

-

+

scriptActionClearScriptCustomVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionScanHeadersAllRequests/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearScriptCustomVar/?scriptName=string&varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionScanHeadersAllRequests/");
+
URL obj = new URL("http://zap/JSON/script/action/clearScriptCustomVar/?scriptName=string&varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26336,34 +43000,46 @@ curl -X GET http://zap/JSON/ascan/view/optionScanHeaders
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionScanHeadersAllRequests/', params={
-
+r = requests.get('http://zap/JSON/script/action/clearScriptCustomVar/', params={
+  'scriptName': 'string',  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/view/optionScanHeadersAllRequests/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/script/action/clearScriptCustomVar/

-p JSON.parse(result) +

Clears a script custom variable.

- -

GET /JSON/ascan/view/optionScanHeadersAllRequests/

+

Parameters

-

Tells whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scriptNamequerystringtrueThe name of the script.
varKeyquerystringtrueThe key of the variable.

Example responses

@@ -26371,11 +43047,12 @@ curl -X GET http://zap/JSON/ascan/view/optionScanHeaders

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26388,27 +43065,26 @@ curl -X GET http://zap/JSON/ascan/view/optionScanHeaders - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanViewOptionShowAdvancedDialog

-

+

scriptActionClearScriptVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/view/optionShowAdvancedDialog/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/view/optionShowAdvancedDialog/");
+
URL obj = new URL("http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26424,32 +43100,46 @@ curl -X GET http://zap/JSON/ascan/view/optionShowAdvance
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/view/optionShowAdvancedDialog/', params={
-
+r = requests.get('http://zap/JSON/script/action/clearScriptVar/', params={
+  'scriptName': 'string',  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/action/clearScriptVar/

-result = RestClient.get 'http://zap/JSON/ascan/view/optionShowAdvancedDialog/', - params: { - }, headers: headers +

Clears the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/view/optionShowAdvancedDialog/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scriptNamequerystringtruenone
varKeyquerystringtruenone

Example responses

@@ -26457,11 +43147,12 @@ curl -X GET http://zap/JSON/ascan/view/optionShowAdvance

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26474,27 +43165,26 @@ curl -X GET http://zap/JSON/ascan/view/optionShowAdvance - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionScan

-

+

scriptActionClearScriptVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/scan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/clearScriptVars/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/scan/");
+
URL obj = new URL("http://zap/JSON/script/action/clearScriptVars/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26510,36 +43200,21 @@ curl -X GET http://zap/JSON/ascan/action/scan/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/scan/', params={
-
+r = requests.get('http://zap/JSON/script/action/clearScriptVars/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/scan/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/scan/

+

GET /JSON/script/action/clearScriptVars/

-

Runs the active scanner against the given URL and/or Context. Optionally, the 'recurse' parameter can be used to scan URLs under the given URL, the parameter 'inScopeOnly' can be used to constrain the scan to URLs that are in scope (ignored if a Context is specified), the parameter 'scanPolicyName' allows to specify the scan policy (if none is given it uses the default scan policy), the parameters 'method' and 'postData' allow to select a given request in conjunction with the given URL.

+

Clears the variables of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

-

Parameters

+

Parameters

@@ -26551,52 +43226,10 @@ curl -X GET http://zap/JSON/ascan/action/scan/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - +
urlquerystringfalsenone
recursequerybooleanfalsenone
inScopeOnlyquerybooleanfalsenone
scanPolicyNamequerystringfalsenone
methodquerystringfalsenone
postDatascriptName query stringfalsenone
contextIdqueryintegerfalsetrue none
@@ -26607,11 +43240,12 @@ curl -X GET http://zap/JSON/ascan/action/scan/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26624,27 +43258,26 @@ curl -X GET http://zap/JSON/ascan/action/scan/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionScanAsUser

-

+

scriptActionDisable

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/scanAsUser/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/disable/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/scanAsUser/");
+
URL obj = new URL("http://zap/JSON/script/action/disable/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26660,36 +43293,21 @@ curl -X GET http://zap/JSON/ascan/action/scanAsUser/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/scanAsUser/', params={
-
+r = requests.get('http://zap/JSON/script/action/disable/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/scanAsUser/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/scanAsUser/

+

GET /JSON/script/action/disable/

-

Active Scans from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

+

Disables the script with the given name

-

Parameters

+

Parameters

@@ -26701,52 +43319,10 @@ curl -X GET http://zap/JSON/ascan/action/scanAsUser/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - +
urlquerystringfalsenone
contextIdqueryintegerfalsenone
userIdqueryintegerfalsenone
recursequerybooleanfalsenone
scanPolicyNamequerystringfalsenone
methodquerystringfalsenone
postDatascriptName query stringfalsetrue none
@@ -26757,11 +43333,12 @@ curl -X GET http://zap/JSON/ascan/action/scanAsUser/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26774,27 +43351,26 @@ curl -X GET http://zap/JSON/ascan/action/scanAsUser/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionPause

-

+

scriptActionEnable

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/pause/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/enable/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/pause/?scanId=0");
+
URL obj = new URL("http://zap/JSON/script/action/enable/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26810,35 +43386,21 @@ curl -X GET http://zap/JSON/ascan/action/pause/?scanId
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/pause/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/script/action/enable/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/pause/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/pause/

+

GET /JSON/script/action/enable/

-

Parameters

+

Enables the script with the given name

+ +

Parameters

@@ -26850,9 +43412,9 @@ curl -X GET http://zap/JSON/ascan/action/pause/?scanId - + - + @@ -26864,11 +43426,12 @@ curl -X GET http://zap/JSON/ascan/action/pause/?scanIddefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdscriptName queryintegerstring true none
@@ -26881,27 +43444,26 @@ curl -X GET http://zap/JSON/ascan/action/pause/?scanId - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionResume

-

+

scriptActionLoad

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/resume/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/resume/?scanId=0");
+
URL obj = new URL("http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -26917,35 +43479,21 @@ curl -X GET http://zap/JSON/ascan/action/resume/?scanId<
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/resume/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/script/action/load/', params={
+  'scriptName': 'string',  'scriptType': 'string',  'scriptEngine': 'string',  'fileName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/resume/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/resume/

+

GET /JSON/script/action/load/

-

Parameters

+

Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8859-1).

+ +

Parameters

@@ -26957,12 +43505,47 @@ curl -X GET http://zap/JSON/ascan/action/resume/?scanId< - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
scanIdscriptName queryintegerstringtruenone
scriptTypequerystringtruenone
scriptEnginequerystringtruenone
fileNamequerystring true none
scriptDescriptionquerystringfalsenone
charsetquerystringfalsenone
@@ -26971,11 +43554,12 @@ curl -X GET http://zap/JSON/ascan/action/resume/?scanId<

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -26988,27 +43572,26 @@ curl -X GET http://zap/JSON/ascan/action/resume/?scanId< - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionStop

-

+

scriptActionRemove

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/stop/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/remove/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/stop/?scanId=0");
+
URL obj = new URL("http://zap/JSON/script/action/remove/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27024,35 +43607,21 @@ curl -X GET http://zap/JSON/ascan/action/stop/?scanId
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/stop/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/script/action/remove/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/stop/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/stop/

+

GET /JSON/script/action/remove/

-

Parameters

+

Removes the script with the given name

+ +

Parameters

@@ -27064,9 +43633,9 @@ curl -X GET http://zap/JSON/ascan/action/stop/?scanId - + - + @@ -27078,11 +43647,12 @@ curl -X GET http://zap/JSON/ascan/action/stop/?scanIddefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdscriptName queryintegerstring true none
@@ -27095,27 +43665,26 @@ curl -X GET http://zap/JSON/ascan/action/stop/?scanId - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionRemoveScan

-

+

scriptActionRunStandAloneScript

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/removeScan/?scanId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/runStandAloneScript/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/removeScan/?scanId=0");
+
URL obj = new URL("http://zap/JSON/script/action/runStandAloneScript/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27131,35 +43700,21 @@ curl -X GET http://zap/JSON/ascan/action/removeScan/?sca
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/removeScan/', params={
-  'scanId': '0'
+r = requests.get('http://zap/JSON/script/action/runStandAloneScript/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/removeScan/',
-  params: {
-  'scanId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/removeScan/

+

GET /JSON/script/action/runStandAloneScript/

-

Parameters

+

Runs the stand alone script with the given name

+ +

Parameters

@@ -27171,9 +43726,9 @@ curl -X GET http://zap/JSON/ascan/action/removeScan/?sca - + - + @@ -27185,11 +43740,12 @@ curl -X GET http://zap/JSON/ascan/action/removeScan/?sca

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanIdscriptName queryintegerstring true none
@@ -27202,27 +43758,26 @@ curl -X GET http://zap/JSON/ascan/action/removeScan/?sca - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionPauseAllScans

-

+

scriptActionSetGlobalVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/pauseAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/setGlobalVar/?varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/pauseAllScans/");
+
URL obj = new URL("http://zap/JSON/script/action/setGlobalVar/?varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27238,32 +43793,46 @@ curl -X GET http://zap/JSON/ascan/action/pauseAllScans/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/pauseAllScans/', params={
-
+r = requests.get('http://zap/JSON/script/action/setGlobalVar/', params={
+  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/action/setGlobalVar/

-result = RestClient.get 'http://zap/JSON/ascan/action/pauseAllScans/', - params: { - }, headers: headers +

Sets the value of the global variable with the given key.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/ascan/action/pauseAllScans/

+ + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
varKeyquerystringtruenone
varValuequerystringfalsenone

Example responses

@@ -27271,11 +43840,12 @@ curl -X GET http://zap/JSON/ascan/action/pauseAllScans/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27288,27 +43858,26 @@ curl -X GET http://zap/JSON/ascan/action/pauseAllScans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionResumeAllScans

-

+

scriptActionSetScriptVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/resumeAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/resumeAllScans/");
+
URL obj = new URL("http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27324,32 +43893,53 @@ curl -X GET http://zap/JSON/ascan/action/resumeAllScans/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/resumeAllScans/', params={
-
+r = requests.get('http://zap/JSON/script/action/setScriptVar/', params={
+  'scriptName': 'string',  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/action/setScriptVar/

-result = RestClient.get 'http://zap/JSON/ascan/action/resumeAllScans/', - params: { - }, headers: headers +

Sets the value of the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

-p JSON.parse(result) +

Parameters

-
-

GET /JSON/ascan/action/resumeAllScans/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scriptNamequerystringtruenone
varKeyquerystringtruenone
varValuequerystringfalsenone

Example responses

@@ -27357,11 +43947,12 @@ curl -X GET http://zap/JSON/ascan/action/resumeAllScans/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27374,27 +43965,26 @@ curl -X GET http://zap/JSON/ascan/action/resumeAllScans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionStopAllScans

-

+

scriptViewGlobalCustomVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/stopAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/globalCustomVar/?varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/stopAllScans/");
+
URL obj = new URL("http://zap/JSON/script/view/globalCustomVar/?varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27410,32 +44000,39 @@ curl -X GET http://zap/JSON/ascan/action/stopAllScans/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/stopAllScans/', params={
-
+r = requests.get('http://zap/JSON/script/view/globalCustomVar/', params={
+  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+
+

GET /JSON/script/view/globalCustomVar/

-result = RestClient.get 'http://zap/JSON/ascan/action/stopAllScans/', - params: { - }, headers: headers +

Gets the value (string representation) of a global custom variable. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

-p JSON.parse(result) +

Parameters

- -

GET /JSON/ascan/action/stopAllScans/

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
varKeyquerystringtrueThe key of the variable.

Example responses

@@ -27443,11 +44040,12 @@ curl -X GET http://zap/JSON/ascan/action/stopAllScans/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27460,27 +44058,26 @@ curl -X GET http://zap/JSON/ascan/action/stopAllScans/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionRemoveAllScans

-

+

scriptViewGlobalCustomVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/removeAllScans/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/globalCustomVars/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/removeAllScans/");
+
URL obj = new URL("http://zap/JSON/script/view/globalCustomVars/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27496,32 +44093,17 @@ curl -X GET http://zap/JSON/ascan/action/removeAllScans/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/removeAllScans/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/removeAllScans/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/script/view/globalCustomVars/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/removeAllScans/

+

GET /JSON/script/view/globalCustomVars/

+ +

Gets all the global custom variables (key/value pairs, the value is the string representation).

Example responses

@@ -27529,11 +44111,12 @@ curl -X GET http://zap/JSON/ascan/action/removeAllScans/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27546,27 +44129,26 @@ curl -X GET http://zap/JSON/ascan/action/removeAllScans/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionClearExcludedFromScan

-

+

scriptViewGlobalVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/clearExcludedFromScan/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/globalVar/?varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/clearExcludedFromScan/");
+
URL obj = new URL("http://zap/JSON/script/view/globalVar/?varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27582,34 +44164,39 @@ curl -X GET http://zap/JSON/ascan/action/clearExcludedFr
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/clearExcludedFromScan/', params={
-
+r = requests.get('http://zap/JSON/script/view/globalVar/', params={
+  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/action/clearExcludedFromScan/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/script/view/globalVar/

-p JSON.parse(result) +

Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

- -

GET /JSON/ascan/action/clearExcludedFromScan/

+

Parameters

-

Clears the regexes of URLs excluded from the active scans.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
varKeyquerystringtruenone

Example responses

@@ -27617,11 +44204,12 @@ curl -X GET http://zap/JSON/ascan/action/clearExcludedFr

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27634,27 +44222,26 @@ curl -X GET http://zap/JSON/ascan/action/clearExcludedFr - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionExcludeFromScan

-

+

scriptViewGlobalVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/excludeFromScan/?regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/globalVars/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/excludeFromScan/?regex=string");
+
URL obj = new URL("http://zap/JSON/script/view/globalVars/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27670,55 +44257,17 @@ curl -X GET http://zap/JSON/ascan/action/excludeFromScan
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/excludeFromScan/', params={
-  'regex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/excludeFromScan/',
-  params: {
-  'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/script/view/globalVars/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/excludeFromScan/

- -

Adds a regex of URLs that should be excluded from the active scans.

- -

Parameters

+

GET /JSON/script/view/globalVars/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
regexquerystringtruenone
+

Gets all the global variables (key/value pairs).

Example responses

@@ -27726,11 +44275,12 @@ curl -X GET http://zap/JSON/ascan/action/excludeFromScan

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27743,27 +44293,26 @@ curl -X GET http://zap/JSON/ascan/action/excludeFromScan - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionEnableAllScanners

-

+

scriptViewListEngines

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/enableAllScanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/listEngines/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/enableAllScanners/");
+
URL obj = new URL("http://zap/JSON/script/view/listEngines/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27779,54 +44328,17 @@ curl -X GET http://zap/JSON/ascan/action/enableAllScanne
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/enableAllScanners/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/enableAllScanners/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/script/view/listEngines/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/enableAllScanners/

- -

Enables all scanners of the scan policy with the given name, or the default if none given.

- -

Parameters

+

GET /JSON/script/view/listEngines/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
+

Lists the script engines available

Example responses

@@ -27834,11 +44346,12 @@ curl -X GET http://zap/JSON/ascan/action/enableAllScanne

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27851,27 +44364,26 @@ curl -X GET http://zap/JSON/ascan/action/enableAllScanne - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionDisableAllScanners

-

+

scriptViewListScripts

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/disableAllScanners/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/listScripts/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/disableAllScanners/");
+
URL obj = new URL("http://zap/JSON/script/view/listScripts/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27887,54 +44399,17 @@ curl -X GET http://zap/JSON/ascan/action/disableAllScann
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/disableAllScanners/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/disableAllScanners/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/script/view/listScripts/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/disableAllScanners/

- -

Disables all scanners of the scan policy with the given name, or the default if none given.

- -

Parameters

+

GET /JSON/script/view/listScripts/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
scanPolicyNamequerystringfalsenone
+

Lists the scripts available, with its engine, name, description, type and error state.

Example responses

@@ -27942,11 +44417,12 @@ curl -X GET http://zap/JSON/ascan/action/disableAllScann

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -27959,27 +44435,26 @@ curl -X GET http://zap/JSON/ascan/action/disableAllScann - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionEnableScanners

-

+

scriptViewListTypes

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/enableScanners/?ids=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/listTypes/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/enableScanners/?ids=string");
+
URL obj = new URL("http://zap/JSON/script/view/listTypes/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -27995,62 +44470,17 @@ curl -X GET http://zap/JSON/ascan/action/enableScanners/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/enableScanners/', params={
-  'ids': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/enableScanners/',
-  params: {
-  'ids' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/script/view/listTypes/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/enableScanners/

- -

Enables the scanners with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

- -

Parameters

+

GET /JSON/script/view/listTypes/

- - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
idsquerystringtruenone
scanPolicyNamequerystringfalsenone
+

Lists the script types available.

Example responses

@@ -28058,11 +44488,12 @@ curl -X GET http://zap/JSON/ascan/action/enableScanners/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -28075,27 +44506,26 @@ curl -X GET http://zap/JSON/ascan/action/enableScanners/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionDisableScanners

-

+

scriptViewScriptCustomVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/disableScanners/?ids=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/scriptCustomVar/?scriptName=string&varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/disableScanners/?ids=string");
+
URL obj = new URL("http://zap/JSON/script/view/scriptCustomVar/?scriptName=string&varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28111,37 +44541,21 @@ curl -X GET http://zap/JSON/ascan/action/disableScanners
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/disableScanners/', params={
-  'ids': 'string'
+r = requests.get('http://zap/JSON/script/view/scriptCustomVar/', params={
+  'scriptName': 'string',  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/disableScanners/',
-  params: {
-  'ids' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/disableScanners/

+

GET /JSON/script/view/scriptCustomVar/

-

Disables the scanners with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

+

Gets the value (string representation) of a custom variable. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

-

Parameters

+

Parameters

@@ -28153,18 +44567,18 @@ curl -X GET http://zap/JSON/ascan/action/disableScanners - + - + - + - - + +
idsscriptName query string truenoneThe name of the script.
scanPolicyNamevarKey query stringfalsenonetrueThe key of the variable.
@@ -28174,11 +44588,12 @@ curl -X GET http://zap/JSON/ascan/action/disableScanners

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -28191,27 +44606,26 @@ curl -X GET http://zap/JSON/ascan/action/disableScanners - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetEnabledPolicies

-

+

scriptViewScriptCustomVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/scriptCustomVars/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string");
+
URL obj = new URL("http://zap/JSON/script/view/scriptCustomVars/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28227,35 +44641,21 @@ curl -X GET http://zap/JSON/ascan/action/setEnabledPolic
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setEnabledPolicies/', params={
-  'ids': 'string'
+r = requests.get('http://zap/JSON/script/view/scriptCustomVars/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setEnabledPolicies/',
-  params: {
-  'ids' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setEnabledPolicies/

+

GET /JSON/script/view/scriptCustomVars/

-

Parameters

+

Gets all the custom variables (key/value pairs, the value is the string representation) of a script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+ +

Parameters

@@ -28267,18 +44667,11 @@ curl -X GET http://zap/JSON/ascan/action/setEnabledPolic - + - - - - - - - - +
idsscriptName query string truenone
scanPolicyNamequerystringfalsenoneThe name of the script.
@@ -28288,11 +44681,12 @@ curl -X GET http://zap/JSON/ascan/action/setEnabledPolic

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -28305,27 +44699,26 @@ curl -X GET http://zap/JSON/ascan/action/setEnabledPolic - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetPolicyAttackStrength

-

+

scriptViewScriptVar

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=0&attackStrength=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=0&attackStrength=string");
+
URL obj = new URL("http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28341,36 +44734,21 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAttack
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setPolicyAttackStrength/', params={
-  'id': '0',  'attackStrength': 'string'
+r = requests.get('http://zap/JSON/script/view/scriptVar/', params={
+  'scriptName': 'string',  'varKey': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setPolicyAttackStrength/',
-  params: {
-  'id' => 'integer',
-'attackStrength' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setPolicyAttackStrength/

+

GET /JSON/script/view/scriptVar/

-

Parameters

+

Gets the value of the variable with the given key for the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

+ +

Parameters

@@ -28382,24 +44760,17 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAttack - - - - - - - - + - + - +
idqueryintegertruenone
attackStrengthscriptName query string true none
scanPolicyNamevarKey query stringfalsetrue none
@@ -28410,11 +44781,12 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAttack

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -28427,27 +44799,26 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAttack - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetPolicyAlertThreshold

-

+

scriptViewScriptVars

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=0&alertThreshold=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/script/view/scriptVars/?scriptName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=0&alertThreshold=string");
+
URL obj = new URL("http://zap/JSON/script/view/scriptVars/?scriptName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28463,36 +44834,21 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAlertT
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setPolicyAlertThreshold/', params={
-  'id': '0',  'alertThreshold': 'string'
+r = requests.get('http://zap/JSON/script/view/scriptVars/', params={
+  'scriptName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setPolicyAlertThreshold/',
-  params: {
-  'id' => 'integer',
-'alertThreshold' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setPolicyAlertThreshold/

+

GET /JSON/script/view/scriptVars/

-

Parameters

+

Gets all the variables (key/value pairs) of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+ +

Parameters

@@ -28504,26 +44860,12 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAlertT - - - - - - - - + - - - - - - -
idqueryintegertruenone
alertThresholdscriptName query string true none
scanPolicyNamequerystringfalsenone
@@ -28532,11 +44874,12 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAlertT

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -28549,27 +44892,28 @@ curl -X GET http://zap/JSON/ascan/action/setPolicyAlertT - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetScannerAttackStrength

-

+ +

search

+

searchOtherHarByHeaderRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setScannerAttackStrength/?id=0&attackStrength=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/search/other/harByHeaderRegex/?regex=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setScannerAttackStrength/?id=0&attackStrength=string");
+
URL obj = new URL("http://zap/OTHER/search/other/harByHeaderRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28585,36 +44929,21 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAttac
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setScannerAttackStrength/', params={
-  'id': '0',  'attackStrength': 'string'
+r = requests.get('http://zap/OTHER/search/other/harByHeaderRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setScannerAttackStrength/',
-  params: {
-  'id' => 'integer',
-'attackStrength' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/ascan/action/setScannerAttackStrength/

+

GET /OTHER/search/other/harByHeaderRegex/

-

Parameters

+

Returns the HTTP messages, in HAR format, that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -28626,21 +44955,28 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAttac - + - + - + - + - + + + + + + + + @@ -28650,15 +44986,9 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAttac

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

idregex queryintegerstring true none
attackStrengthbaseurl query stringtruefalse none
scanPolicyNamestartquerystringfalsenone
count query string false
@@ -28671,27 +45001,28 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAttac - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

ascanActionSetScannerAlertThreshold

-

+

searchOtherHarByRequestRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=0&alertThreshold=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/search/other/harByRequestRegex/?regex=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=0&alertThreshold=string");
+
URL obj = new URL("http://zap/OTHER/search/other/harByRequestRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28707,36 +45038,21 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAlert
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setScannerAlertThreshold/', params={
-  'id': '0',  'alertThreshold': 'string'
+r = requests.get('http://zap/OTHER/search/other/harByRequestRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setScannerAlertThreshold/',
-  params: {
-  'id' => 'integer',
-'alertThreshold' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/ascan/action/setScannerAlertThreshold/

+

GET /OTHER/search/other/harByRequestRegex/

-

Parameters

+

Returns the HTTP messages, in HAR format, that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -28748,21 +45064,28 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAlert - + - + - + - + - + + + + + + + + @@ -28772,15 +45095,9 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAlert

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

idregex queryintegerstring true none
alertThresholdbaseurl query stringtruefalse none
scanPolicyNamestartquerystringfalsenone
count query string false
@@ -28793,27 +45110,28 @@ curl -X GET http://zap/JSON/ascan/action/setScannerAlert - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

ascanActionAddScanPolicy

-

+

searchOtherHarByResponseRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/search/other/harByResponseRegex/?regex=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string");
+
URL obj = new URL("http://zap/OTHER/search/other/harByResponseRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28829,35 +45147,21 @@ curl -X GET http://zap/JSON/ascan/action/addScanPolicy/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/addScanPolicy/', params={
-  'scanPolicyName': 'string'
+r = requests.get('http://zap/OTHER/search/other/harByResponseRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/addScanPolicy/',
-  params: {
-  'scanPolicyName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/ascan/action/addScanPolicy/

+

GET /OTHER/search/other/harByResponseRegex/

-

Parameters

+

Returns the HTTP messages, in HAR format, that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -28869,21 +45173,28 @@ curl -X GET http://zap/JSON/ascan/action/addScanPolicy/? - + - + - + + + + + + + + @@ -28893,15 +45204,9 @@ curl -X GET http://zap/JSON/ascan/action/addScanPolicy/?

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

scanPolicyNameregex query string true none
alertThresholdbaseurl query string false none
attackStrengthstartquerystringfalsenone
count query string false
@@ -28914,27 +45219,28 @@ curl -X GET http://zap/JSON/ascan/action/addScanPolicy/? - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

ascanActionRemoveScanPolicy

-

+

searchOtherHarByUrlRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/OTHER/search/other/harByUrlRegex/?regex=string \
+  -H 'Accept: */*'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string");
+
URL obj = new URL("http://zap/OTHER/search/other/harByUrlRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -28950,35 +45256,21 @@ curl -X GET http://zap/JSON/ascan/action/removeScanPolic
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': '*/*'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/removeScanPolicy/', params={
-  'scanPolicyName': 'string'
+r = requests.get('http://zap/OTHER/search/other/harByUrlRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/removeScanPolicy/',
-  params: {
-  'scanPolicyName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.content)
 
 
-

GET /JSON/ascan/action/removeScanPolicy/

+

GET /OTHER/search/other/harByUrlRegex/

-

Parameters

+

Returns the HTTP messages, in HAR format, that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -28990,25 +45282,40 @@ curl -X GET http://zap/JSON/ascan/action/removeScanPolic - + + + + + + + + + + + + + + + + + + + + + +
scanPolicyNameregex query string true none
baseurlquerystringfalsenone
startquerystringfalsenone
countquerystringfalsenone

Example responses

- -

default Response

-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

+ +

Responses

@@ -29021,27 +45328,28 @@ curl -X GET http://zap/JSON/ascan/action/removeScanPolic - - + +
default Defaultunexpected errorErrorError of OTHER endpoints.None
+

Response Schema

+ -

ascanActionUpdateScanPolicy

-

+

searchViewMessagesByHeaderRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string");
+
URL obj = new URL("http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29057,35 +45365,21 @@ curl -X GET http://zap/JSON/ascan/action/updateScanPolic
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/updateScanPolicy/', params={
-  'scanPolicyName': 'string'
+r = requests.get('http://zap/JSON/search/view/messagesByHeaderRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/updateScanPolicy/',
-  params: {
-  'scanPolicyName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/updateScanPolicy/

+

GET /JSON/search/view/messagesByHeaderRegex/

-

Parameters

+

Returns the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -29097,21 +45391,28 @@ curl -X GET http://zap/JSON/ascan/action/updateScanPolic - + - + + + + + + + + - + @@ -29125,11 +45426,12 @@ curl -X GET http://zap/JSON/ascan/action/updateScanPolic

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scanPolicyNameregex query string true none
alertThresholdbaseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
start query string false none
attackStrengthcount query string false
@@ -29142,27 +45444,26 @@ curl -X GET http://zap/JSON/ascan/action/updateScanPolic - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionImportScanPolicy

-

+

searchViewMessagesByRequestRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/importScanPolicy/?path=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/messagesByRequestRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/importScanPolicy/?path=string");
+
URL obj = new URL("http://zap/JSON/search/view/messagesByRequestRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29178,37 +45479,21 @@ curl -X GET http://zap/JSON/ascan/action/importScanPolic
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/importScanPolicy/', params={
-  'path': 'string'
+r = requests.get('http://zap/JSON/search/view/messagesByRequestRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/importScanPolicy/',
-  params: {
-  'path' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/importScanPolicy/

+

GET /JSON/search/view/messagesByRequestRegex/

-

Imports a Scan Policy using the given file system path.

+

Returns the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

-

Parameters

+

Parameters

@@ -29220,12 +45505,33 @@ curl -X GET http://zap/JSON/ascan/action/importScanPolic - + + + + + + + + + + + + + + + + + + + + + +
pathregex query string true none
baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
startquerystringfalsenone
countquerystringfalsenone
@@ -29234,11 +45540,12 @@ curl -X GET http://zap/JSON/ascan/action/importScanPolic

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -29251,27 +45558,26 @@ curl -X GET http://zap/JSON/ascan/action/importScanPolic - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionAddExcludedParam

-

+

searchViewMessagesByResponseRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/addExcludedParam/?name=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/messagesByResponseRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/addExcludedParam/?name=string");
+
URL obj = new URL("http://zap/JSON/search/view/messagesByResponseRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29287,37 +45593,21 @@ curl -X GET http://zap/JSON/ascan/action/addExcludedPara
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/addExcludedParam/', params={
-  'name': 'string'
+r = requests.get('http://zap/JSON/search/view/messagesByResponseRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/addExcludedParam/',
-  params: {
-  'name' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/addExcludedParam/

+

GET /JSON/search/view/messagesByResponseRegex/

-

Adds a new parameter excluded from the scan, using the specified name. Optionally sets if the new entry applies to a specific URL (default, all URLs) and sets the ID of the type of the parameter (default, ID of any type). The type IDs can be obtained with the view excludedParamTypes.

+

Returns the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

-

Parameters

+

Parameters

@@ -29329,21 +45619,28 @@ curl -X GET http://zap/JSON/ascan/action/addExcludedPara - + - + + + + + + + + - + @@ -29357,11 +45654,12 @@ curl -X GET http://zap/JSON/ascan/action/addExcludedPara

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

nameregex query string true none
typebaseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
start query string false none
urlcount query string false
@@ -29374,27 +45672,26 @@ curl -X GET http://zap/JSON/ascan/action/addExcludedPara - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionModifyExcludedParam

-

+

searchViewMessagesByUrlRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/modifyExcludedParam/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/messagesByUrlRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/modifyExcludedParam/?idx=0");
+
URL obj = new URL("http://zap/JSON/search/view/messagesByUrlRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29410,37 +45707,21 @@ curl -X GET http://zap/JSON/ascan/action/modifyExcludedP
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/modifyExcludedParam/', params={
-  'idx': '0'
+r = requests.get('http://zap/JSON/search/view/messagesByUrlRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/modifyExcludedParam/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/modifyExcludedParam/

+

GET /JSON/search/view/messagesByUrlRegex/

-

Modifies a parameter excluded from the scan. Allows to modify the name, the URL and the type of parameter. The parameter is selected with its index, which can be obtained with the view excludedParams.

+

Returns the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

-

Parameters

+

Parameters

@@ -29452,28 +45733,28 @@ curl -X GET http://zap/JSON/ascan/action/modifyExcludedP - + - + - + - + - + - + @@ -29487,11 +45768,12 @@ curl -X GET http://zap/JSON/ascan/action/modifyExcludedP

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

idxregex queryintegerstring true none
namebaseurl query string falsenoneThe highest URL in the Sites tree under which messages should be included.
typestart query string false none
urlcount query string false
@@ -29504,27 +45786,26 @@ curl -X GET http://zap/JSON/ascan/action/modifyExcludedP - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionRemoveExcludedParam

-

+

searchViewUrlsByHeaderRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/removeExcludedParam/?idx=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/removeExcludedParam/?idx=0");
+
URL obj = new URL("http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29540,37 +45821,21 @@ curl -X GET http://zap/JSON/ascan/action/removeExcludedP
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/removeExcludedParam/', params={
-  'idx': '0'
+r = requests.get('http://zap/JSON/search/view/urlsByHeaderRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/removeExcludedParam/',
-  params: {
-  'idx' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/removeExcludedParam/

+

GET /JSON/search/view/urlsByHeaderRegex/

-

Removes a parameter excluded from the scan, with the given index. The index can be obtained with the view excludedParams.

+

Returns the URLs of the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

-

Parameters

+

Parameters

@@ -29582,12 +45847,33 @@ curl -X GET http://zap/JSON/ascan/action/removeExcludedP - + - + + + + + + + + + + + + + + + + + + + + + +
idxregex queryintegerstring true none
baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
startquerystringfalsenone
countquerystringfalsenone
@@ -29596,11 +45882,12 @@ curl -X GET http://zap/JSON/ascan/action/removeExcludedP

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -29613,27 +45900,26 @@ curl -X GET http://zap/JSON/ascan/action/removeExcludedP - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSkipScanner

-

+

searchViewUrlsByRequestRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/skipScanner/?scanId=0&scannerId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/urlsByRequestRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/skipScanner/?scanId=0&scannerId=0");
+
URL obj = new URL("http://zap/JSON/search/view/urlsByRequestRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29649,38 +45935,21 @@ curl -X GET http://zap/JSON/ascan/action/skipScanner/?sc
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/skipScanner/', params={
-  'scanId': '0',  'scannerId': '0'
+r = requests.get('http://zap/JSON/search/view/urlsByRequestRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/skipScanner/',
-  params: {
-  'scanId' => 'integer',
-'scannerId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/skipScanner/

+

GET /JSON/search/view/urlsByRequestRegex/

-

Skips the scanner using the given IDs of the scan and the scanner.

+

Returns the URLs of the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

-

Parameters

+

Parameters

@@ -29692,17 +45961,31 @@ curl -X GET http://zap/JSON/ascan/action/skipScanner/?sc - + - + - + - - + + + + + + + + + + + + + + + +
scanIdregex queryintegerstring true none
scannerIdbaseurl queryintegertruestringfalseThe highest URL in the Sites tree under which URLs should be included.
startquerystringfalsenone
countquerystringfalse none
@@ -29713,11 +45996,12 @@ curl -X GET http://zap/JSON/ascan/action/skipScanner/?sc

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -29730,27 +46014,26 @@ curl -X GET http://zap/JSON/ascan/action/skipScanner/?sc - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionAttackPolicy

-

+

searchViewUrlsByResponseRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/urlsByResponseRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string");
+
URL obj = new URL("http://zap/JSON/search/view/urlsByResponseRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29766,35 +46049,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAttack
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionAttackPolicy/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/search/view/urlsByResponseRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAttackPolicy/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionAttackPolicy/

+

GET /JSON/search/view/urlsByResponseRegex/

-

Parameters

+

Returns the URLs of the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -29806,12 +46075,33 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAttack - + + + + + + + + + + + + + + + + + + + + + +
Stringregex query string true none
baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
startquerystringfalsenone
countquerystringfalsenone
@@ -29820,11 +46110,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAttack

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -29837,27 +46128,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAttack - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionDefaultPolicy

-

+

searchViewUrlsByUrlRegex

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string");
+
URL obj = new URL("http://zap/JSON/search/view/urlsByUrlRegex/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29873,35 +46163,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDefaul
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionDefaultPolicy/', params={
-  'String': 'string'
+r = requests.get('http://zap/JSON/search/view/urlsByUrlRegex/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionDefaultPolicy/',
-  params: {
-  'String' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionDefaultPolicy/

+

GET /JSON/search/view/urlsByUrlRegex/

-

Parameters

+

Returns the URLs of the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

+ +

Parameters

@@ -29913,12 +46189,33 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDefaul - + + + + + + + + + + + + + + + + + + + + + +
Stringregex query string true none
baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
startquerystringfalsenone
countquerystringfalsenone
@@ -29927,11 +46224,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDefaul

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -29944,27 +46242,28 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDefaul - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionAddQueryParam

-

+ +

selenium

+

seleniumActionAddBrowserArgument

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/addBrowserArgument/?browser=string&argument=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/action/addBrowserArgument/?browser=string&argument=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -29980,37 +46279,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAddQue
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionAddQueryParam/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/selenium/action/addBrowserArgument/', params={
+  'browser': 'string',  'argument': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAddQueryParam/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionAddQueryParam/

+

GET /JSON/selenium/action/addBrowserArgument/

-

Sets whether or not the active scanner should add a query param to GET requests which do not have parameters to start with.

+

Adds a browser argument.

-

Parameters

+

Parameters

@@ -30022,11 +46305,25 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAddQue - + - + + + + + + + + + + + + + + +
Booleanbrowser query string truenoneThe browser, chrome or firefox.
argumentquerystringtrueThe argument.
enabledquerystringfalseThe enabled state, true or false.
@@ -30036,11 +46333,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAddQue

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -30053,27 +46351,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAddQue - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionAllowAttackOnStart

-

+

seleniumActionRemoveBrowserArgument

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/removeBrowserArgument/?browser=string&argument=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/action/removeBrowserArgument/?browser=string&argument=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30089,35 +46386,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAllowA
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/selenium/action/removeBrowserArgument/', params={
+  'browser': 'string',  'argument': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionAllowAttackOnStart/

+

GET /JSON/selenium/action/removeBrowserArgument/

-

Parameters

+

Removes a browser argument.

+ +

Parameters

@@ -30129,11 +46412,18 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAllowA - + - + + + + + + + +
Booleanbrowser query string truenoneThe browser, chrome or firefox.
argumentquerystringtrueThe argument.
@@ -30143,11 +46433,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAllowA

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -30160,27 +46451,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionAllowA - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionDelayInMs

-

+

seleniumActionSetBrowserArgumentEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setBrowserArgumentEnabled/?browser=string&argument=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setBrowserArgumentEnabled/?browser=string&argument=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30196,35 +46486,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDelayI
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionDelayInMs/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setBrowserArgumentEnabled/', params={
+  'browser': 'string',  'argument': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionDelayInMs/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionDelayInMs/

+

GET /JSON/selenium/action/setBrowserArgumentEnabled/

-

Parameters

+

Sets whether or not a browser argument is enabled.

+ +

Parameters

@@ -30236,11 +46512,25 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDelayI - + - + - + + + + + + + + + + + + + + +
Integerbrowser queryintegerstring truenoneThe browser, chrome or firefox.
argumentquerystringtrueThe argument.
enabledquerystringtrueThe enabled state, true or false.
@@ -30250,11 +46540,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDelayI

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -30267,27 +46558,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionDelayI - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionHandleAntiCSRFTokens

-

+

seleniumActionSetOptionChromeBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionChromeBinaryPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionChromeBinaryPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30303,35 +46593,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHandle
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/selenium/action/setOptionChromeBinaryPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionHandleAntiCSRFTokens/

+

GET /JSON/selenium/action/setOptionChromeBinaryPath/

-

Parameters

+

Sets the current path to Chrome binary

+ +

Parameters

@@ -30343,7 +46619,7 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHandle - + @@ -30357,11 +46633,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHandle

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

BooleanString query string true
@@ -30374,27 +46651,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHandle - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionHostPerScan

-

+

seleniumActionSetOptionChromeDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionChromeDriverPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionChromeDriverPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30410,35 +46686,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHostPe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionHostPerScan/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionChromeDriverPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionHostPerScan/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionHostPerScan/

+

GET /JSON/selenium/action/setOptionChromeDriverPath/

-

Parameters

+

Sets the current path to ChromeDriver

+ +

Parameters

@@ -30450,9 +46712,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHostPe - + - + @@ -30464,11 +46726,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHostPe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -30481,27 +46744,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionHostPe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionInjectPluginIdInHeader

-

+

seleniumActionSetOptionFirefoxBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30517,37 +46779,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionInject
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionInjectPluginIdInHeader/

+

GET /JSON/selenium/action/setOptionFirefoxBinaryPath/

-

Sets whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scanner that's sending the requests.

+

Sets the current path to Firefox binary

-

Parameters

+

Parameters

@@ -30559,7 +46805,7 @@ curl -X GET http://zap/JSON/ascan/action/setOptionInject - + @@ -30573,11 +46819,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionInject

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

BooleanString query string true
@@ -30590,27 +46837,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionInject - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionMaxChartTimeInMins

-

+

seleniumActionSetOptionFirefoxDefaultProfile

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30626,35 +46872,19 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxCha
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionMaxChartTimeInMins/

+

GET /JSON/selenium/action/setOptionFirefoxDefaultProfile/

-

Parameters

+

Parameters

@@ -30666,9 +46896,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxCha - + - + @@ -30680,11 +46910,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxCha

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -30697,27 +46928,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxCha - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionMaxResultsToList

-

+

seleniumActionSetOptionFirefoxDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30733,35 +46963,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRes
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionMaxResultsToList/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxResultsToList/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionMaxResultsToList/

+

GET /JSON/selenium/action/setOptionFirefoxDriverPath/

-

Parameters

+

Sets the current path to Firefox driver (geckodriver)

+ +

Parameters

@@ -30773,9 +46989,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRes - + - + @@ -30787,11 +47003,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRes

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -30804,27 +47021,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRes - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionMaxRuleDurationInMins

-

+

seleniumActionSetOptionIeDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionIeDriverPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionIeDriverPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30840,35 +47056,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRul
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionIeDriverPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionMaxRuleDurationInMins/

+

GET /JSON/selenium/action/setOptionIeDriverPath/

-

Parameters

+

Option no longer in effective use.

+ +

Parameters

@@ -30880,9 +47082,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRul - + - + @@ -30894,11 +47096,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRul

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -30911,27 +47114,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxRul - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionMaxScanDurationInMins

-

+

seleniumActionSetOptionLastDirectory

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionLastDirectory/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionLastDirectory/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -30947,35 +47149,19 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionLastDirectory/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionMaxScanDurationInMins/

+

GET /JSON/selenium/action/setOptionLastDirectory/

-

Parameters

+

Parameters

@@ -30987,9 +47173,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca - + - + @@ -31001,11 +47187,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -31018,27 +47205,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionMaxScansInUI

-

+

seleniumActionSetOptionPhantomJsBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31054,35 +47240,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScansInUI/', params={
-  'Integer': '0'
+r = requests.get('http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxScansInUI/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionMaxScansInUI/

+

GET /JSON/selenium/action/setOptionPhantomJsBinaryPath/

-

Parameters

+

Option no longer in effective use.

+ +

Parameters

@@ -31094,9 +47266,9 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca - + - + @@ -31108,11 +47280,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

IntegerString queryintegerstring true none
@@ -31125,27 +47298,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionMaxSca - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionPromptInAttackMode

-

+

seleniumViewGetBrowserArguments

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/getBrowserArguments/?browser=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/view/getBrowserArguments/?browser=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31161,35 +47333,21 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionPromptInAttackMode/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/selenium/view/getBrowserArguments/', params={
+  'browser': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionPromptInAttackMode/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionPromptInAttackMode/

+

GET /JSON/selenium/view/getBrowserArguments/

-

Parameters

+

Gets the browser arguments.

+ +

Parameters

@@ -31201,11 +47359,11 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt - + - +
Booleanbrowser query string truenoneThe browser, chrome or firefox.
@@ -31215,11 +47373,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31232,27 +47391,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionPromptToClearFinishedScans

-

+

seleniumViewOptionBrowserExtensions

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionBrowserExtensions/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionBrowserExtensions/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31268,53 +47426,15 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/', params={
-  'Boolean': 'string'
-}, headers = headers)
+r = requests.get('http://zap/JSON/selenium/view/optionBrowserExtensions/', headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionPromptToClearFinishedScans/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

GET /JSON/selenium/view/optionBrowserExtensions/

Example responses

@@ -31322,11 +47442,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31339,27 +47460,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionPrompt - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionRescanInAttackMode

-

+

seleniumViewOptionChromeBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionChromeBinaryPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionChromeBinaryPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31375,53 +47495,17 @@ curl -X GET http://zap/JSON/ascan/action/setOptionRescan
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionRescanInAttackMode/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+r = requests.get('http://zap/JSON/selenium/view/optionChromeBinaryPath/', headers = headers)
 
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionRescanInAttackMode/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionRescanInAttackMode/

+

GET /JSON/selenium/view/optionChromeBinaryPath/

-

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns the current path to Chrome binary

Example responses

@@ -31429,11 +47513,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionRescan

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31446,27 +47531,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionRescan - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionScanHeadersAllRequests

-

+

seleniumViewOptionChromeDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionChromeDriverPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionChromeDriverPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31482,55 +47566,17 @@ curl -X GET http://zap/JSON/ascan/action/setOptionScanHe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/selenium/view/optionChromeDriverPath/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionScanHeadersAllRequests/

+

GET /JSON/selenium/view/optionChromeDriverPath/

-

Sets whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns the current path to ChromeDriver

Example responses

@@ -31538,11 +47584,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionScanHe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31555,27 +47602,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionScanHe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionShowAdvancedDialog

-

+

seleniumViewOptionFirefoxBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionFirefoxBinaryPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxBinaryPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31591,53 +47637,17 @@ curl -X GET http://zap/JSON/ascan/action/setOptionShowAd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/', params={
-  'Boolean': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/selenium/view/optionFirefoxBinaryPath/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionShowAdvancedDialog/

- -

Parameters

+

GET /JSON/selenium/view/optionFirefoxBinaryPath/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Booleanquerystringtruenone
+

Returns the current path to Firefox binary

Example responses

@@ -31645,11 +47655,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionShowAd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31662,27 +47673,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionShowAd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionTargetParamsEnabledRPC

-

+

seleniumViewOptionFirefoxDefaultProfile

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31698,53 +47708,15 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionTargetParamsEnabledRPC/

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Integerqueryintegertruenone
+

GET /JSON/selenium/view/optionFirefoxDefaultProfile/

Example responses

@@ -31752,11 +47724,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31769,27 +47742,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionTargetParamsInjectable

-

+

seleniumViewOptionFirefoxDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionFirefoxDriverPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxDriverPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31805,53 +47777,17 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/selenium/view/optionFirefoxDriverPath/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ascan/action/setOptionTargetParamsInjectable/

- -

Parameters

+

GET /JSON/selenium/view/optionFirefoxDriverPath/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Integerqueryintegertruenone
+

Returns the current path to Firefox driver (geckodriver)

Example responses

@@ -31859,11 +47795,12 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31876,27 +47813,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionTarget - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ascanActionSetOptionThreadPerHost

-

+

seleniumViewOptionIeDriverPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionIeDriverPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionIeDriverPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -31912,65 +47848,99 @@ curl -X GET http://zap/JSON/ascan/action/setOptionThread
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ascan/action/setOptionThreadPerHost/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
+r = requests.get('http://zap/JSON/selenium/view/optionIeDriverPath/', headers = headers)
 
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/ascan/action/setOptionThreadPerHost/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+
+

GET /JSON/selenium/view/optionIeDriverPath/

-p JSON.parse(result) +

Option no longer in effective use.

- -

GET /JSON/ascan/action/setOptionThreadPerHost/

+
+

Example responses

-

Parameters

+

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
IntegerqueryintegertruenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

seleniumViewOptionLastDirectory

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/selenium/view/optionLastDirectory/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/selenium/view/optionLastDirectory/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/selenium/view/optionLastDirectory/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/selenium/view/optionLastDirectory/

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -31983,29 +47953,26 @@ curl -X GET http://zap/JSON/ascan/action/setOptionThread - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

context

-

contextViewContextList

-

+

seleniumViewOptionPhantomJsBinaryPath

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/contextList/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/contextList/");
+
URL obj = new URL("http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32021,34 +47988,17 @@ curl -X GET http://zap/JSON/context/view/contextList/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/view/contextList/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/view/contextList/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/contextList/

+

GET /JSON/selenium/view/optionPhantomJsBinaryPath/

-

List context names of current session

+

Option no longer in effective use.

Example responses

@@ -32056,11 +48006,12 @@ curl -X GET http://zap/JSON/context/view/contextList/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -32073,27 +48024,28 @@ curl -X GET http://zap/JSON/context/view/contextList/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewExcludeRegexs

-

+ +

sessionManagement

+

sessionManagementActionSetSessionManagementMethod

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/excludeRegexs/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=string&methodName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/excludeRegexs/?contextName=string");
+
URL obj = new URL("http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=string&methodName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32109,37 +48061,21 @@ curl -X GET http://zap/JSON/context/view/excludeRegexs/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/excludeRegexs/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/sessionManagement/action/setSessionManagementMethod/', params={
+  'contextId': 'string',  'methodName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/excludeRegexs/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/excludeRegexs/

+

GET /JSON/sessionManagement/action/setSessionManagementMethod/

-

List excluded regexs for context

+

Sets the session management method for the context with the given ID.

-

Parameters

+

Parameters

@@ -32151,12 +48087,26 @@ curl -X GET http://zap/JSON/context/view/excludeRegexs/? - + + + + + + + + + + + + + + +
contextNamecontextId query string true none
methodNamequerystringtruenone
methodConfigParamsquerystringfalsenone
@@ -32165,11 +48115,12 @@ curl -X GET http://zap/JSON/context/view/excludeRegexs/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -32182,27 +48133,26 @@ curl -X GET http://zap/JSON/context/view/excludeRegexs/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewIncludeRegexs

-

+

sessionManagementViewGetSessionManagementMethod

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/includeRegexs/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/includeRegexs/?contextName=string");
+
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32218,37 +48168,21 @@ curl -X GET http://zap/JSON/context/view/includeRegexs/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/includeRegexs/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethod/', params={
+  'contextId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/includeRegexs/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/includeRegexs/

+

GET /JSON/sessionManagement/view/getSessionManagementMethod/

-

List included regexs for context

+

Gets the name of the session management method for the context with the given ID.

-

Parameters

+

Parameters

@@ -32260,7 +48194,7 @@ curl -X GET http://zap/JSON/context/view/includeRegexs/? - + @@ -32274,11 +48208,12 @@ curl -X GET http://zap/JSON/context/view/includeRegexs/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamecontextId query string true
@@ -32291,27 +48226,26 @@ curl -X GET http://zap/JSON/context/view/includeRegexs/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewContext

-

+

sessionManagementViewGetSessionManagementMethodConfigParams

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/context/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/context/?contextName=string");
+
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32327,37 +48261,21 @@ curl -X GET http://zap/JSON/context/view/context/?contex
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/context/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/', params={
+  'methodName': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/context/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/context/

+

GET /JSON/sessionManagement/view/getSessionManagementMethodConfigParams/

-

List the information about the named context

+

Gets the configuration parameters for the session management method with the given name.

-

Parameters

+

Parameters

@@ -32369,7 +48287,7 @@ curl -X GET http://zap/JSON/context/view/context/?contex - + @@ -32383,11 +48301,12 @@ curl -X GET http://zap/JSON/context/view/context/?contex

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamemethodName query string true
@@ -32400,27 +48319,26 @@ curl -X GET http://zap/JSON/context/view/context/?contex - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewTechnologyList

-

+

sessionManagementViewGetSupportedSessionManagementMethods

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/technologyList/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/technologyList/");
+
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32436,34 +48354,17 @@ curl -X GET http://zap/JSON/context/view/technologyList/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/view/technologyList/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/view/technologyList/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/technologyList/

+

GET /JSON/sessionManagement/view/getSupportedSessionManagementMethods/

-

Lists the names of all built in technologies

+

Gets the name of the session management methods.

Example responses

@@ -32471,11 +48372,12 @@ curl -X GET http://zap/JSON/context/view/technologyList/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -32488,27 +48390,28 @@ curl -X GET http://zap/JSON/context/view/technologyList/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewIncludedTechnologyList

-

+ +

soap

+

soapActionImportFile

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/includedTechnologyList/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/soap/action/importFile/?file=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/includedTechnologyList/?contextName=string");
+
URL obj = new URL("http://zap/JSON/soap/action/importFile/?file=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32524,37 +48427,21 @@ curl -X GET http://zap/JSON/context/view/includedTechnol
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/includedTechnologyList/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/soap/action/importFile/', params={
+  'file': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/includedTechnologyList/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/includedTechnologyList/

+

GET /JSON/soap/action/importFile/

-

Lists the names of all technologies included in a context

+

Import a WSDL definition from local file.

-

Parameters

+

Parameters

@@ -32566,7 +48453,7 @@ curl -X GET http://zap/JSON/context/view/includedTechnol - + @@ -32580,11 +48467,12 @@ curl -X GET http://zap/JSON/context/view/includedTechnol

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamefile query string true
@@ -32597,27 +48485,26 @@ curl -X GET http://zap/JSON/context/view/includedTechnol - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewExcludedTechnologyList

-

+

soapActionImportUrl

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/excludedTechnologyList/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/soap/action/importUrl/?url=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/excludedTechnologyList/?contextName=string");
+
URL obj = new URL("http://zap/JSON/soap/action/importUrl/?url=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32633,37 +48520,21 @@ curl -X GET http://zap/JSON/context/view/excludedTechnol
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/excludedTechnologyList/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/soap/action/importUrl/', params={
+  'url': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/excludedTechnologyList/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/excludedTechnologyList/

+

GET /JSON/soap/action/importUrl/

-

Lists the names of all technologies excluded from a context

+

Import a WSDL definition from a URL.

-

Parameters

+

Parameters

@@ -32675,7 +48546,7 @@ curl -X GET http://zap/JSON/context/view/excludedTechnol - + @@ -32689,11 +48560,12 @@ curl -X GET http://zap/JSON/context/view/excludedTechnol

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNameurl query string true
@@ -32706,27 +48578,28 @@ curl -X GET http://zap/JSON/context/view/excludedTechnol - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextViewUrls

-

+ +

spider

+

spiderActionAddDomainAlwaysInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/view/urls/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/view/urls/?contextName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32742,37 +48615,21 @@ curl -X GET http://zap/JSON/context/view/urls/?contextNa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/view/urls/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/spider/action/addDomainAlwaysInScope/', params={
+  'value': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/view/urls/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/view/urls/

+

GET /JSON/spider/action/addDomainAlwaysInScope/

-

Lists the URLs accessed through/by ZAP, that belong to the context with the given name.

+

Adds a new domain that's always in scope, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

-

Parameters

+

Parameters

@@ -32784,12 +48641,26 @@ curl -X GET http://zap/JSON/context/view/urls/?contextNa - + + + + + + + + + + + + + + +
contextNamevalue query string true none
isRegexquerystringfalsenone
isEnabledquerystringfalsenone
@@ -32798,11 +48669,12 @@ curl -X GET http://zap/JSON/context/view/urls/?contextNa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -32815,27 +48687,26 @@ curl -X GET http://zap/JSON/context/view/urls/?contextNa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionExcludeFromContext

-

+

spiderActionClearExcludedFromScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/clearExcludedFromScan/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string");
+
URL obj = new URL("http://zap/JSON/spider/action/clearExcludedFromScan/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32851,75 +48722,172 @@ curl -X GET http://zap/JSON/context/action/excludeFromCo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/excludeFromContext/', params={
-  'contextName': 'string',  'regex': 'string'
-}, headers = headers)
+r = requests.get('http://zap/JSON/spider/action/clearExcludedFromScan/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/spider/action/clearExcludedFromScan/

+ +

Clears the regexes of URLs excluded from the spider scans.

+ +
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

+ + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchema
defaultDefaultError of JSON endpoints.ErrorJson
-print r.json() + +

spiderActionDisableAllDomainsAlwaysInScope

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/ \
+  -H 'Accept: application/json'
 
-
require 'rest-client'
-require 'json'
+
URL obj = new URL("http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
 
+
import requests
 headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/action/excludeFromContext/',
-  params: {
-  'contextName' => 'string',
-'regex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/excludeFromContext/

+

GET /JSON/spider/action/disableAllDomainsAlwaysInScope/

-

Add exclude regex to context

+

Disables all domains that are always in scope.

-

Parameters

+
+

Example responses

+ +

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - - - - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
contextNamequerystringtruenone
regexquerystringtruenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

spiderActionEnableAllDomainsAlwaysInScope

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/spider/action/enableAllDomainsAlwaysInScope/

+ +

Enables all domains that are always in scope.

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -32932,27 +48900,26 @@ curl -X GET http://zap/JSON/context/action/excludeFromCo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionIncludeInContext

-

+

spiderActionExcludeFromScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/excludeFromScan/?regex=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string");
+
URL obj = new URL("http://zap/JSON/spider/action/excludeFromScan/?regex=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -32968,38 +48935,21 @@ curl -X GET http://zap/JSON/context/action/includeInCont
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/includeInContext/', params={
-  'contextName': 'string',  'regex': 'string'
+r = requests.get('http://zap/JSON/spider/action/excludeFromScan/', params={
+  'regex': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/includeInContext/',
-  params: {
-  'contextName' => 'string',
-'regex' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/includeInContext/

+

GET /JSON/spider/action/excludeFromScan/

-

Add include regex to context

+

Adds a regex of URLs that should be excluded from the spider scans.

-

Parameters

+

Parameters

@@ -33011,13 +48961,6 @@ curl -X GET http://zap/JSON/context/action/includeInCont - - - - - - - @@ -33032,11 +48975,12 @@ curl -X GET http://zap/JSON/context/action/includeInCont

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamequerystringtruenone
regex query string
@@ -33049,27 +48993,26 @@ curl -X GET http://zap/JSON/context/action/includeInCont - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionSetContextRegexs

-

+

spiderActionModifyDomainAlwaysInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string");
+
URL obj = new URL("http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33085,39 +49028,21 @@ curl -X GET http://zap/JSON/context/action/setContextReg
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/setContextRegexs/', params={
-  'contextName': 'string',  'incRegexs': 'string',  'excRegexs': 'string'
+r = requests.get('http://zap/JSON/spider/action/modifyDomainAlwaysInScope/', params={
+  'idx': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/setContextRegexs/',
-  params: {
-  'contextName' => 'string',
-'incRegexs' => 'string',
-'excRegexs' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/setContextRegexs/

+

GET /JSON/spider/action/modifyDomainAlwaysInScope/

-

Set the regexs to include and exclude for a context, both supplied as JSON string arrays

+

Modifies a domain that's always in scope. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view domainsAlwaysInScope.

-

Parameters

+

Parameters

@@ -33129,24 +49054,31 @@ curl -X GET http://zap/JSON/context/action/setContextReg - + - + - + - + - + + + + + + + +
contextNameidx query string true none
incRegexsvalue query stringtruefalse none
excRegexsisRegex query stringtruefalsenone
isEnabledquerystringfalse none
@@ -33157,11 +49089,12 @@ curl -X GET http://zap/JSON/context/action/setContextReg

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -33174,27 +49107,26 @@ curl -X GET http://zap/JSON/context/action/setContextReg - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionNewContext

-

+

spiderActionPause

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/newContext/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/pause/?scanId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/newContext/?contextName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/pause/?scanId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33210,37 +49142,19 @@ curl -X GET http://zap/JSON/context/action/newContext/?c
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/newContext/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/spider/action/pause/', params={
+  'scanId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/newContext/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/newContext/

- -

Creates a new context with the given name in the current session

+

GET /JSON/spider/action/pause/

-

Parameters

+

Parameters

@@ -33252,7 +49166,7 @@ curl -X GET http://zap/JSON/context/action/newContext/?c - + @@ -33266,11 +49180,12 @@ curl -X GET http://zap/JSON/context/action/newContext/?c

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamescanId query string true
@@ -33283,27 +49198,26 @@ curl -X GET http://zap/JSON/context/action/newContext/?c - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionRemoveContext

-

+

spiderActionPauseAllScans

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/removeContext/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/pauseAllScans/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/removeContext/?contextName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/pauseAllScans/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33319,55 +49233,15 @@ curl -X GET http://zap/JSON/context/action/removeContext
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/action/removeContext/', params={
-  'contextName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/action/removeContext/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/action/pauseAllScans/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/removeContext/

- -

Removes a context in the current session

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextNamequerystringtruenone
+

GET /JSON/spider/action/pauseAllScans/

Example responses

@@ -33375,11 +49249,12 @@ curl -X GET http://zap/JSON/context/action/removeContext

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -33392,27 +49267,26 @@ curl -X GET http://zap/JSON/context/action/removeContext - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionExportContext

-

+

spiderActionRemoveAllScans

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/removeAllScans/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string");
+
URL obj = new URL("http://zap/JSON/spider/action/removeAllScans/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33428,63 +49302,15 @@ curl -X GET http://zap/JSON/context/action/exportContext
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/action/exportContext/', params={
-  'contextName': 'string',  'contextFile': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/action/exportContext/',
-  params: {
-  'contextName' => 'string',
-'contextFile' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/action/removeAllScans/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/exportContext/

- -

Exports the context with the given name to a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextNamequerystringtruenone
contextFilequerystringtruenone
+

GET /JSON/spider/action/removeAllScans/

Example responses

@@ -33492,11 +49318,12 @@ curl -X GET http://zap/JSON/context/action/exportContext

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -33509,27 +49336,26 @@ curl -X GET http://zap/JSON/context/action/exportContext - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionImportContext

-

+

spiderActionRemoveDomainAlwaysInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/importContext/?contextFile=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/importContext/?contextFile=string");
+
URL obj = new URL("http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33545,37 +49371,21 @@ curl -X GET http://zap/JSON/context/action/importContext
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/importContext/', params={
-  'contextFile': 'string'
+r = requests.get('http://zap/JSON/spider/action/removeDomainAlwaysInScope/', params={
+  'idx': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/importContext/',
-  params: {
-  'contextFile' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/importContext/

+

GET /JSON/spider/action/removeDomainAlwaysInScope/

-

Imports a context from a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

+

Removes a domain that's always in scope, with the given index. The index can be obtained with the view domainsAlwaysInScope.

-

Parameters

+

Parameters

@@ -33587,7 +49397,7 @@ curl -X GET http://zap/JSON/context/action/importContext - + @@ -33601,11 +49411,12 @@ curl -X GET http://zap/JSON/context/action/importContext

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextFileidx query string true
@@ -33618,27 +49429,26 @@ curl -X GET http://zap/JSON/context/action/importContext - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionIncludeContextTechnologies

-

+

spiderActionRemoveScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/removeScan/?scanId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string");
+
URL obj = new URL("http://zap/JSON/spider/action/removeScan/?scanId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33654,38 +49464,19 @@ curl -X GET http://zap/JSON/context/action/includeContex
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/includeContextTechnologies/', params={
-  'contextName': 'string',  'technologyNames': 'string'
+r = requests.get('http://zap/JSON/spider/action/removeScan/', params={
+  'scanId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/includeContextTechnologies/',
-  params: {
-  'contextName' => 'string',
-'technologyNames' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/includeContextTechnologies/

- -

Includes technologies with the given names, separated by a comma, to a context

+

GET /JSON/spider/action/removeScan/

-

Parameters

+

Parameters

@@ -33697,14 +49488,7 @@ curl -X GET http://zap/JSON/context/action/includeContex - - - - - - - - + @@ -33718,11 +49502,12 @@ curl -X GET http://zap/JSON/context/action/includeContex

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamequerystringtruenone
technologyNamesscanId query string true
@@ -33735,27 +49520,26 @@ curl -X GET http://zap/JSON/context/action/includeContex - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionIncludeAllContextTechnologies

-

+

spiderActionResume

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/resume/?scanId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/resume/?scanId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33771,37 +49555,19 @@ curl -X GET http://zap/JSON/context/action/includeAllCon
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/includeAllContextTechnologies/', params={
-  'contextName': 'string'
+r = requests.get('http://zap/JSON/spider/action/resume/', params={
+  'scanId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/includeAllContextTechnologies/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/includeAllContextTechnologies/

- -

Includes all built in technologies in to a context

+

GET /JSON/spider/action/resume/

-

Parameters

+

Parameters

@@ -33813,7 +49579,7 @@ curl -X GET http://zap/JSON/context/action/includeAllCon - + @@ -33827,11 +49593,12 @@ curl -X GET http://zap/JSON/context/action/includeAllCon

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextNamescanId query string true
@@ -33844,27 +49611,26 @@ curl -X GET http://zap/JSON/context/action/includeAllCon - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionExcludeContextTechnologies

-

+

spiderActionResumeAllScans

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/resumeAllScans/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string");
+
URL obj = new URL("http://zap/JSON/spider/action/resumeAllScans/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33880,63 +49646,15 @@ curl -X GET http://zap/JSON/context/action/excludeContex
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/action/excludeContextTechnologies/', params={
-  'contextName': 'string',  'technologyNames': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/action/excludeContextTechnologies/',
-  params: {
-  'contextName' => 'string',
-'technologyNames' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/action/resumeAllScans/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/excludeContextTechnologies/

- -

Excludes technologies with the given names, separated by a comma, from a context

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextNamequerystringtruenone
technologyNamesquerystringtruenone
+

GET /JSON/spider/action/resumeAllScans/

Example responses

@@ -33944,11 +49662,12 @@ curl -X GET http://zap/JSON/context/action/excludeContex

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -33961,27 +49680,26 @@ curl -X GET http://zap/JSON/context/action/excludeContex - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionExcludeAllContextTechnologies

-

+

spiderActionScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/scan/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/scan/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -33997,37 +49715,19 @@ curl -X GET http://zap/JSON/context/action/excludeAllCon
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/context/action/excludeAllContextTechnologies/', params={
-  'contextName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/context/action/excludeAllContextTechnologies/',
-  params: {
-  'contextName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/action/scan/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/excludeAllContextTechnologies/

+

GET /JSON/spider/action/scan/

-

Excludes all built in technologies from a context

+

Runs the spider against the given URL (or context). Optionally, the 'maxChildren' parameter can be set to limit the number of children scanned, the 'recurse' parameter can be used to prevent the spider from seeding recursively, the parameter 'contextName' can be used to constrain the scan to a Context and the parameter 'subtreeOnly' allows to restrict the spider under a site's subtree (using the specified 'url').

-

Parameters

+

Parameters

@@ -34039,10 +49739,38 @@ curl -X GET http://zap/JSON/context/action/excludeAllCon + + + + + + + + + + + + + + + + + + + + + - + + + + + + + +
urlquerystringfalsenone
maxChildrenquerystringfalsenone
recursequerystringfalsenone
contextName query stringtruefalsenone
subtreeOnlyquerystringfalse none
@@ -34053,11 +49781,12 @@ curl -X GET http://zap/JSON/context/action/excludeAllCon

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -34070,27 +49799,26 @@ curl -X GET http://zap/JSON/context/action/excludeAllCon - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

contextActionSetContextInScope

-

+

spiderActionScanAsUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/scanAsUser/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=true");
+
URL obj = new URL("http://zap/JSON/spider/action/scanAsUser/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34106,38 +49834,21 @@ curl -X GET http://zap/JSON/context/action/setContextInS
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/context/action/setContextInScope/', params={
-  'contextName': 'string',  'booleanInScope': 'true'
+r = requests.get('http://zap/JSON/spider/action/scanAsUser/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/context/action/setContextInScope/',
-  params: {
-  'contextName' => 'string',
-'booleanInScope' => 'boolean'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/context/action/setContextInScope/

+

GET /JSON/spider/action/scanAsUser/

-

Sets a context to in scope (contexts are in scope by default)

+

Runs the spider from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

-

Parameters

+

Parameters

@@ -34149,122 +49860,61 @@ curl -X GET http://zap/JSON/context/action/setContextInS - + - + - + -
contextNamecontextId query string true none
booleanInScopeuserId querybooleanstring true none
- -
-

Example responses

- -

default Response

-
-
{
-  "message": "string",
-  "code": 100
-}
-
-

Responses

- - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + + + +
StatusMeaningDescriptionSchemaurlquerystringfalsenone
defaultDefaultunexpected errorErrormaxChildrenquerystringfalsenone
recursequerystringfalsenone
subtreeOnlyquerystringfalsenone
- - -

httpSessions

-

httpSessionsViewSites

-

- -
-

Code samples

-
-
# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/view/sites/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
-
-
URL obj = new URL("http://zap/JSON/httpSessions/view/sites/");
-HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("GET");
-int responseCode = con.getResponseCode();
-BufferedReader in = new BufferedReader(
-    new InputStreamReader(con.getInputStream()));
-String inputLine;
-StringBuffer response = new StringBuffer();
-while ((inputLine = in.readLine()) != null) {
-    response.append(inputLine);
-}
-in.close();
-System.out.println(response.toString());
-
-
import requests
-headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/httpSessions/view/sites/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/view/sites/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
-
-
-

GET /JSON/httpSessions/view/sites/

- -

Gets all of the sites that have sessions.

-

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -34277,27 +49927,26 @@ curl -X GET http://zap/JSON/httpSessions/view/sites/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsViewSessions

-

+

spiderActionSetOptionAcceptCookies

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/view/sessions/?site=string&session=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/view/sessions/?site=string&session=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34313,38 +49962,21 @@ curl -X GET http://zap/JSON/httpSessions/view/sessions/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/view/sessions/', params={
-  'site': 'string',  'session': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionAcceptCookies/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/view/sessions/',
-  params: {
-  'site' => 'string',
-'session' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/view/sessions/

+

GET /JSON/spider/action/setOptionAcceptCookies/

-

Gets the sessions for the given site. Optionally returning just the session with the given name.

+

Sets whether or not a spider process should accept cookies while spidering.

-

Parameters

+

Parameters

@@ -34356,16 +49988,9 @@ curl -X GET http://zap/JSON/httpSessions/view/sessions/? - - - - - - - - + - + @@ -34377,11 +50002,12 @@ curl -X GET http://zap/JSON/httpSessions/view/sessions/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionBoolean querystringboolean true none
@@ -34394,27 +50020,26 @@ curl -X GET http://zap/JSON/httpSessions/view/sessions/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsViewActiveSession

-

+

spiderActionSetOptionHandleODataParametersVisited

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/view/activeSession/?site=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/view/activeSession/?site=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34430,37 +50055,19 @@ curl -X GET http://zap/JSON/httpSessions/view/activeSess
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/view/activeSession/', params={
-  'site': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/view/activeSession/',
-  params: {
-  'site' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/view/activeSession/

- -

Gets the name of the active session for the given site.

+

GET /JSON/spider/action/setOptionHandleODataParametersVisited/

-

Parameters

+

Parameters

@@ -34472,9 +50079,9 @@ curl -X GET http://zap/JSON/httpSessions/view/activeSess - + - + @@ -34486,11 +50093,12 @@ curl -X GET http://zap/JSON/httpSessions/view/activeSess

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

siteBoolean querystringboolean true none
@@ -34503,27 +50111,26 @@ curl -X GET http://zap/JSON/httpSessions/view/activeSess - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsViewSessionTokens

-

+

spiderActionSetOptionHandleParameters

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/view/sessionTokens/?site=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionHandleParameters/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/view/sessionTokens/?site=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleParameters/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34539,37 +50146,19 @@ curl -X GET http://zap/JSON/httpSessions/view/sessionTok
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/view/sessionTokens/', params={
-  'site': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionHandleParameters/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/view/sessionTokens/',
-  params: {
-  'site' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/view/sessionTokens/

- -

Gets the names of the session tokens for the given site.

+

GET /JSON/spider/action/setOptionHandleParameters/

-

Parameters

+

Parameters

@@ -34581,7 +50170,7 @@ curl -X GET http://zap/JSON/httpSessions/view/sessionTok - + @@ -34595,11 +50184,12 @@ curl -X GET http://zap/JSON/httpSessions/view/sessionTok

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

siteString query string true
@@ -34612,27 +50202,26 @@ curl -X GET http://zap/JSON/httpSessions/view/sessionTok - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsViewDefaultSessionTokens

-

+

spiderActionSetOptionMaxChildren

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/view/defaultSessionTokens/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/view/defaultSessionTokens/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34648,34 +50237,39 @@ curl -X GET http://zap/JSON/httpSessions/view/defaultSes
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/view/defaultSessionTokens/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionMaxChildren/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/httpSessions/view/defaultSessionTokens/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/spider/action/setOptionMaxChildren/

-p JSON.parse(result) +

Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

-
-

GET /JSON/httpSessions/view/defaultSessionTokens/

+

Parameters

-

Gets the default session tokens.

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone

Example responses

@@ -34683,11 +50277,12 @@ curl -X GET http://zap/JSON/httpSessions/view/defaultSes

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -34700,27 +50295,26 @@ curl -X GET http://zap/JSON/httpSessions/view/defaultSes - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionCreateEmptySession

-

+

spiderActionSetOptionMaxDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/createEmptySession/?site=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/createEmptySession/?site=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34736,37 +50330,21 @@ curl -X GET http://zap/JSON/httpSessions/action/createEm
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/createEmptySession/', params={
-  'site': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionMaxDepth/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/createEmptySession/',
-  params: {
-  'site' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/createEmptySession/

+

GET /JSON/spider/action/setOptionMaxDepth/

-

Creates an empty session for the given site. Optionally with the given name.

+

Sets the maximum depth the spider can crawl, 0 for unlimited depth.

-

Parameters

+

Parameters

@@ -34778,19 +50356,12 @@ curl -X GET http://zap/JSON/httpSessions/action/createEm - + - + - - - - - - -
siteInteger querystringinteger true none
sessionquerystringfalsenone
@@ -34799,11 +50370,12 @@ curl -X GET http://zap/JSON/httpSessions/action/createEm

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -34816,27 +50388,26 @@ curl -X GET http://zap/JSON/httpSessions/action/createEm - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionRemoveSession

-

+

spiderActionSetOptionMaxDuration

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34852,38 +50423,19 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/removeSession/', params={
-  'site': 'string',  'session': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionMaxDuration/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/removeSession/',
-  params: {
-  'site' => 'string',
-'session' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/removeSession/

- -

Removes the session from the given site.

+

GET /JSON/spider/action/setOptionMaxDuration/

-

Parameters

+

Parameters

@@ -34895,16 +50447,9 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe - - - - - - - - + - + @@ -34916,11 +50461,12 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionInteger querystringinteger true none
@@ -34933,27 +50479,26 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionSetActiveSession

-

+

spiderActionSetOptionMaxParseSizeBytes

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -34969,38 +50514,21 @@ curl -X GET http://zap/JSON/httpSessions/action/setActiv
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/setActiveSession/', params={
-  'site': 'string',  'session': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/setActiveSession/',
-  params: {
-  'site' => 'string',
-'session' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/setActiveSession/

+

GET /JSON/spider/action/setOptionMaxParseSizeBytes/

-

Sets the given session as active for the given site.

+

Sets the maximum size, in bytes, that a response might have to be parsed. This allows the spider to skip big responses/files.

-

Parameters

+

Parameters

@@ -35012,16 +50540,9 @@ curl -X GET http://zap/JSON/httpSessions/action/setActiv - - - - - - - - + - + @@ -35033,11 +50554,12 @@ curl -X GET http://zap/JSON/httpSessions/action/setActiv

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionInteger querystringinteger true none
@@ -35050,27 +50572,26 @@ curl -X GET http://zap/JSON/httpSessions/action/setActiv - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionUnsetActiveSession

-

+

spiderActionSetOptionMaxScansInUI

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35086,37 +50607,19 @@ curl -X GET http://zap/JSON/httpSessions/action/unsetAct
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/unsetActiveSession/', params={
-  'site': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionMaxScansInUI/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/unsetActiveSession/',
-  params: {
-  'site' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/unsetActiveSession/

- -

Unsets the active session of the given site.

+

GET /JSON/spider/action/setOptionMaxScansInUI/

-

Parameters

+

Parameters

@@ -35128,9 +50631,9 @@ curl -X GET http://zap/JSON/httpSessions/action/unsetAct - + - + @@ -35142,11 +50645,12 @@ curl -X GET http://zap/JSON/httpSessions/action/unsetAct

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

siteInteger querystringinteger true none
@@ -35159,27 +50663,26 @@ curl -X GET http://zap/JSON/httpSessions/action/unsetAct - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionAddSessionToken

-

+

spiderActionSetOptionParseComments

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseComments/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseComments/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35195,38 +50698,19 @@ curl -X GET http://zap/JSON/httpSessions/action/addSessi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/addSessionToken/', params={
-  'site': 'string',  'sessionToken': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseComments/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/addSessionToken/',
-  params: {
-  'site' => 'string',
-'sessionToken' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/addSessionToken/

- -

Adds the session token to the given site.

+

GET /JSON/spider/action/setOptionParseComments/

-

Parameters

+

Parameters

@@ -35238,16 +50722,9 @@ curl -X GET http://zap/JSON/httpSessions/action/addSessi - - - - - - - - + - + @@ -35259,11 +50736,12 @@ curl -X GET http://zap/JSON/httpSessions/action/addSessi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionTokenBoolean querystringboolean true none
@@ -35276,27 +50754,26 @@ curl -X GET http://zap/JSON/httpSessions/action/addSessi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionRemoveSessionToken

-

+

spiderActionSetOptionParseDsStore

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseDsStore/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseDsStore/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35312,38 +50789,19 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/removeSessionToken/', params={
-  'site': 'string',  'sessionToken': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseDsStore/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/removeSessionToken/',
-  params: {
-  'site' => 'string',
-'sessionToken' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/removeSessionToken/

+

GET /JSON/spider/action/setOptionParseDsStore/

-

Removes the session token from the given site.

- -

Parameters

+

Parameters

@@ -35355,16 +50813,9 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe - - - - - - - - + - + @@ -35376,11 +50827,12 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionTokenBoolean querystringboolean true none
@@ -35393,27 +50845,26 @@ curl -X GET http://zap/JSON/httpSessions/action/removeSe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionSetSessionTokenValue

-

+

spiderActionSetOptionParseGit

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseGit/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseGit/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35429,40 +50880,19 @@ curl -X GET http://zap/JSON/httpSessions/action/setSessi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/setSessionTokenValue/', params={
-  'site': 'string',  'session': 'string',  'sessionToken': 'string',  'tokenValue': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseGit/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/setSessionTokenValue/',
-  params: {
-  'site' => 'string',
-'session' => 'string',
-'sessionToken' => 'string',
-'tokenValue' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/setSessionTokenValue/

- -

Sets the value of the session token of the given session for the given site.

+

GET /JSON/spider/action/setOptionParseGit/

-

Parameters

+

Parameters

@@ -35474,30 +50904,9 @@ curl -X GET http://zap/JSON/httpSessions/action/setSessi - - - - - - - - - - - - - - - - - - - - - - + - + @@ -35509,11 +50918,12 @@ curl -X GET http://zap/JSON/httpSessions/action/setSessi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
sessionquerystringtruenone
sessionTokenquerystringtruenone
tokenValueBoolean querystringboolean true none
@@ -35526,27 +50936,26 @@ curl -X GET http://zap/JSON/httpSessions/action/setSessi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionRenameSession

-

+

spiderActionSetOptionParseRobotsTxt

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35562,39 +50971,19 @@ curl -X GET http://zap/JSON/httpSessions/action/renameSe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/renameSession/', params={
-  'site': 'string',  'oldSessionName': 'string',  'newSessionName': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseRobotsTxt/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/renameSession/',
-  params: {
-  'site' => 'string',
-'oldSessionName' => 'string',
-'newSessionName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/renameSession/

- -

Renames the session of the given site.

+

GET /JSON/spider/action/setOptionParseRobotsTxt/

-

Parameters

+

Parameters

@@ -35606,23 +50995,9 @@ curl -X GET http://zap/JSON/httpSessions/action/renameSe - - - - - - - - - - - - - - - + - + @@ -35634,11 +51009,12 @@ curl -X GET http://zap/JSON/httpSessions/action/renameSe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sitequerystringtruenone
oldSessionNamequerystringtruenone
newSessionNameBoolean querystringboolean true none
@@ -35651,27 +51027,26 @@ curl -X GET http://zap/JSON/httpSessions/action/renameSe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionAddDefaultSessionToken

-

+

spiderActionSetOptionParseSVNEntries

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35687,37 +51062,19 @@ curl -X GET http://zap/JSON/httpSessions/action/addDefau
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/addDefaultSessionToken/', params={
-  'sessionToken': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseSVNEntries/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/addDefaultSessionToken/',
-  params: {
-  'sessionToken' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/addDefaultSessionToken/

- -

Adds a default session token with the given name and enabled state.

+

GET /JSON/spider/action/setOptionParseSVNEntries/

-

Parameters

+

Parameters

@@ -35729,19 +51086,12 @@ curl -X GET http://zap/JSON/httpSessions/action/addDefau - + - + - - - - - - -
sessionTokenBoolean querystringboolean true none
tokenEnabledquerystringfalsenone
@@ -35750,11 +51100,12 @@ curl -X GET http://zap/JSON/httpSessions/action/addDefau

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -35767,27 +51118,26 @@ curl -X GET http://zap/JSON/httpSessions/action/addDefau - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionSetDefaultSessionTokenEnabled

-

+

spiderActionSetOptionParseSitemapXml

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35803,38 +51153,19 @@ curl -X GET http://zap/JSON/httpSessions/action/setDefau
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/', params={
-  'sessionToken': 'string',  'tokenEnabled': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionParseSitemapXml/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/',
-  params: {
-  'sessionToken' => 'string',
-'tokenEnabled' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/setDefaultSessionTokenEnabled/

- -

Sets whether or not the default session token with the given name is enabled.

+

GET /JSON/spider/action/setOptionParseSitemapXml/

-

Parameters

+

Parameters

@@ -35846,16 +51177,9 @@ curl -X GET http://zap/JSON/httpSessions/action/setDefau - - - - - - - - + - + @@ -35867,11 +51191,12 @@ curl -X GET http://zap/JSON/httpSessions/action/setDefau

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sessionTokenquerystringtruenone
tokenEnabledBoolean querystringboolean true none
@@ -35884,27 +51209,26 @@ curl -X GET http://zap/JSON/httpSessions/action/setDefau - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

httpSessionsActionRemoveDefaultSessionToken

-

+

spiderActionSetOptionPostForm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionPostForm/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionPostForm/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -35920,37 +51244,19 @@ curl -X GET http://zap/JSON/httpSessions/action/removeDe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/httpSessions/action/removeDefaultSessionToken/', params={
-  'sessionToken': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionPostForm/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/httpSessions/action/removeDefaultSessionToken/',
-  params: {
-  'sessionToken' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/httpSessions/action/removeDefaultSessionToken/

- -

Removes the default session token with the given name.

+

GET /JSON/spider/action/setOptionPostForm/

-

Parameters

+

Parameters

@@ -35962,9 +51268,9 @@ curl -X GET http://zap/JSON/httpSessions/action/removeDe - + - + @@ -35976,11 +51282,12 @@ curl -X GET http://zap/JSON/httpSessions/action/removeDe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

sessionTokenBoolean querystringboolean true none
@@ -35993,29 +51300,26 @@ curl -X GET http://zap/JSON/httpSessions/action/removeDe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

break

-

breakViewIsBreakAll

-

+

spiderActionSetOptionProcessForm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/view/isBreakAll/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/view/isBreakAll/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36031,34 +51335,37 @@ curl -X GET http://zap/JSON/break/view/isBreakAll/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/view/isBreakAll/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionProcessForm/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/view/isBreakAll/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/view/isBreakAll/

+

GET /JSON/spider/action/setOptionProcessForm/

-

Returns True if ZAP will break on both requests and responses

+

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone

Example responses

@@ -36066,11 +51373,12 @@ curl -X GET http://zap/JSON/break/view/isBreakAll/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36083,27 +51391,26 @@ curl -X GET http://zap/JSON/break/view/isBreakAll/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakViewIsBreakRequest

-

+

spiderActionSetOptionRequestWaitTime

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/view/isBreakRequest/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/view/isBreakRequest/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36119,34 +51426,37 @@ curl -X GET http://zap/JSON/break/view/isBreakRequest/ <
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/view/isBreakRequest/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionRequestWaitTime/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/view/isBreakRequest/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/view/isBreakRequest/

+

GET /JSON/spider/action/setOptionRequestWaitTime/

-

Returns True if ZAP will break on requests

+

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Integerqueryintegertruenone

Example responses

@@ -36154,11 +51464,12 @@ curl -X GET http://zap/JSON/break/view/isBreakRequest/ <

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36171,27 +51482,26 @@ curl -X GET http://zap/JSON/break/view/isBreakRequest/ < - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakViewIsBreakResponse

-

+

spiderActionSetOptionSendRefererHeader

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/view/isBreakResponse/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/view/isBreakResponse/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36207,34 +51517,39 @@ curl -X GET http://zap/JSON/break/view/isBreakResponse/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/view/isBreakResponse/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionSendRefererHeader/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/break/view/isBreakResponse/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/spider/action/setOptionSendRefererHeader/

-p JSON.parse(result) +

Sets whether or not the 'Referer' header should be sent while spidering.

-
-

GET /JSON/break/view/isBreakResponse/

+

Parameters

-

Returns True if ZAP will break on responses

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone

Example responses

@@ -36242,11 +51557,12 @@ curl -X GET http://zap/JSON/break/view/isBreakResponse/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36259,27 +51575,26 @@ curl -X GET http://zap/JSON/break/view/isBreakResponse/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakViewHttpMessage

-

+

spiderActionSetOptionShowAdvancedDialog

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/view/httpMessage/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/view/httpMessage/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36295,34 +51610,37 @@ curl -X GET http://zap/JSON/break/view/httpMessage/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/view/httpMessage/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionShowAdvancedDialog/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/view/httpMessage/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/view/httpMessage/

+

GET /JSON/spider/action/setOptionShowAdvancedDialog/

-

Returns the HTTP message currently intercepted (if any)

+

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Booleanquerybooleantruenone

Example responses

@@ -36330,11 +51648,12 @@ curl -X GET http://zap/JSON/break/view/httpMessage/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36347,27 +51666,26 @@ curl -X GET http://zap/JSON/break/view/httpMessage/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionBreak

-

+

spiderActionSetOptionSkipURLString

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/break/?type=string&state=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionSkipURLString/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/break/?type=string&state=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionSkipURLString/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36383,38 +51701,19 @@ curl -X GET http://zap/JSON/break/action/break/?type
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/action/break/', params={
-  'type': 'string',  'state': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionSkipURLString/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/action/break/',
-  params: {
-  'type' => 'string',
-'state' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/break/

- -

Controls the global break functionality. The type may be one of: http-all, http-request or http-response. The state may be true (for turning break on for the specified type) or false (for turning break off). Scope is not currently used.

+

GET /JSON/spider/action/setOptionSkipURLString/

-

Parameters

+

Parameters

@@ -36426,26 +51725,12 @@ curl -X GET http://zap/JSON/break/action/break/?type - - - - - - - - + - - - - - - -
typequerystringtruenone
stateString query string true none
scopequerystringfalsenone
@@ -36454,11 +51739,12 @@ curl -X GET http://zap/JSON/break/action/break/?typedefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36471,27 +51757,26 @@ curl -X GET http://zap/JSON/break/action/break/?type - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionSetHttpMessage

-

+

spiderActionSetOptionThreadCount

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/setHttpMessage/?httpHeader=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/setHttpMessage/?httpHeader=string");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36507,37 +51792,19 @@ curl -X GET http://zap/JSON/break/action/setHttpMessage/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/action/setHttpMessage/', params={
-  'httpHeader': 'string'
+r = requests.get('http://zap/JSON/spider/action/setOptionThreadCount/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/action/setHttpMessage/',
-  params: {
-  'httpHeader' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/setHttpMessage/

- -

Overwrites the currently intercepted message with the data provided

+

GET /JSON/spider/action/setOptionThreadCount/

-

Parameters

+

Parameters

@@ -36549,19 +51816,12 @@ curl -X GET http://zap/JSON/break/action/setHttpMessage/ - + - + - - - - - - -
httpHeaderInteger querystringinteger true none
httpBodyquerystringfalsenone
@@ -36570,11 +51830,12 @@ curl -X GET http://zap/JSON/break/action/setHttpMessage/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36587,27 +51848,26 @@ curl -X GET http://zap/JSON/break/action/setHttpMessage/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionContinue

-

+

spiderActionSetOptionUserAgent

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/continue/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/setOptionUserAgent/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/continue/");
+
URL obj = new URL("http://zap/JSON/spider/action/setOptionUserAgent/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36623,34 +51883,37 @@ curl -X GET http://zap/JSON/break/action/continue/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/break/action/continue/', params={
-
+r = requests.get('http://zap/JSON/spider/action/setOptionUserAgent/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/break/action/continue/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/continue/

+

GET /JSON/spider/action/setOptionUserAgent/

-

Submits the currently intercepted message and unsets the global request/response break points

+

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone

Example responses

@@ -36658,11 +51921,12 @@ curl -X GET http://zap/JSON/break/action/continue/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36675,27 +51939,26 @@ curl -X GET http://zap/JSON/break/action/continue/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionStep

-

+

spiderActionStop

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/step/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/stop/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/step/");
+
URL obj = new URL("http://zap/JSON/spider/action/stop/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36711,34 +51974,35 @@ curl -X GET http://zap/JSON/break/action/step/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/break/action/step/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/break/action/step/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/action/stop/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/step/

+

GET /JSON/spider/action/stop/

-

Submits the currently intercepted message, the next request or response will automatically be intercepted

+

Parameters

+ + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
scanIdquerystringfalsenone

Example responses

@@ -36746,11 +52010,12 @@ curl -X GET http://zap/JSON/break/action/step/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36763,27 +52028,26 @@ curl -X GET http://zap/JSON/break/action/step/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionDrop

-

+

spiderActionStopAllScans

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/drop/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/action/stopAllScans/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/drop/");
+
URL obj = new URL("http://zap/JSON/spider/action/stopAllScans/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36799,34 +52063,15 @@ curl -X GET http://zap/JSON/break/action/drop/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/break/action/drop/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/break/action/drop/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/action/stopAllScans/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/drop/

- -

Drops the currently intercepted message

+

GET /JSON/spider/action/stopAllScans/

Example responses

@@ -36834,11 +52079,12 @@ curl -X GET http://zap/JSON/break/action/drop/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36851,27 +52097,26 @@ curl -X GET http://zap/JSON/break/action/drop/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionAddHttpBreakpoint

-

+

spiderViewAddedNodes

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/addedNodes/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true");
+
URL obj = new URL("http://zap/JSON/spider/view/addedNodes/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -36887,84 +52132,34 @@ curl -X GET http://zap/JSON/break/action/addHttpBreakpoi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/break/action/addHttpBreakpoint/', params={
-  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'true',  'ignorecase': 'true'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/break/action/addHttpBreakpoint/',
-  params: {
-  'string' => 'string',
-'location' => 'string',
-'match' => 'string',
-'inverse' => 'boolean',
-'ignorecase' => 'boolean'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/addedNodes/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/addHttpBreakpoint/

- -

Adds a custom HTTP breakpoint. The string is the string to match. Location may be one of: url, request_header, request_body, response_header or response_body. Match may be: contains or regex. Inverse (match) may be true or false. Lastly, ignorecase (when matching the string) may be true or false.

+

GET /JSON/spider/view/addedNodes/

-

Parameters

+

Returns a list of the names of the nodes added to the Sites tree by the specified scan.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Parameters

+ +
NameInTypeRequiredDescription
stringquerystringtruenone
locationquerystringtruenone
matchquerystringtruenone
inversequerybooleantruenone
+ + + + + + + - + - - + +
NameInTypeRequiredDescription
ignorecasescanId querybooleantruestringfalse none
@@ -36975,11 +52170,12 @@ curl -X GET http://zap/JSON/break/action/addHttpBreakpoi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -36992,27 +52188,26 @@ curl -X GET http://zap/JSON/break/action/addHttpBreakpoi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

breakActionRemoveHttpBreakpoint

-

+

spiderViewAllUrls

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/allUrls/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true");
+
URL obj = new URL("http://zap/JSON/spider/view/allUrls/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37028,87 +52223,17 @@ curl -X GET http://zap/JSON/break/action/removeHttpBreak
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/break/action/removeHttpBreakpoint/', params={
-  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'true',  'ignorecase': 'true'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/break/action/removeHttpBreakpoint/',
-  params: {
-  'string' => 'string',
-'location' => 'string',
-'match' => 'string',
-'inverse' => 'boolean',
-'ignorecase' => 'boolean'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/allUrls/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/break/action/removeHttpBreakpoint/

- -

Removes the specified break point

- -

Parameters

+

GET /JSON/spider/view/allUrls/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
stringquerystringtruenone
locationquerystringtruenone
matchquerystringtruenone
inversequerybooleantruenone
ignorecasequerybooleantruenone
+

Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.

Example responses

@@ -37116,11 +52241,12 @@ curl -X GET http://zap/JSON/break/action/removeHttpBreak

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37133,29 +52259,26 @@ curl -X GET http://zap/JSON/break/action/removeHttpBreak - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

authentication

-

authenticationViewGetSupportedAuthenticationMethods

-

+

spiderViewDomainsAlwaysInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/domainsAlwaysInScope/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/");
+
URL obj = new URL("http://zap/JSON/spider/view/domainsAlwaysInScope/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37171,34 +52294,17 @@ curl -X GET http://zap/JSON/authentication/view/getSuppo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/view/domainsAlwaysInScope/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/view/getSupportedAuthenticationMethods/

+

GET /JSON/spider/view/domainsAlwaysInScope/

-

Gets the name of the authentication methods.

+

Gets all the domains that are always in scope. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

Example responses

@@ -37206,11 +52312,12 @@ curl -X GET http://zap/JSON/authentication/view/getSuppo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37223,27 +52330,26 @@ curl -X GET http://zap/JSON/authentication/view/getSuppo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationViewGetAuthenticationMethodConfigParams

-

+

spiderViewExcludedFromScan

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/excludedFromScan/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string");
+
URL obj = new URL("http://zap/JSON/spider/view/excludedFromScan/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37259,55 +52365,17 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/', params={
-  'authMethodName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/',
-  params: {
-  'authMethodName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/excludedFromScan/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/view/getAuthenticationMethodConfigParams/

- -

Gets the configuration parameters for the authentication method with the given name.

- -

Parameters

+

GET /JSON/spider/view/excludedFromScan/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
authMethodNamequerystringtruenone
+

Gets the regexes of URLs excluded from the spider scans.

Example responses

@@ -37315,11 +52383,12 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37332,27 +52401,26 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationViewGetAuthenticationMethod

-

+

spiderViewFullResults

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/fullResults/?scanId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/fullResults/?scanId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37368,37 +52436,19 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethod/', params={
-  'contextId': '0'
+r = requests.get('http://zap/JSON/spider/view/fullResults/', params={
+  'scanId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/authentication/view/getAuthenticationMethod/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/view/getAuthenticationMethod/

- -

Gets the name of the authentication method for the context with the given ID.

+

GET /JSON/spider/view/fullResults/

-

Parameters

+

Parameters

@@ -37410,9 +52460,9 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe - + - + @@ -37424,11 +52474,12 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextIdscanId queryintegerstring true none
@@ -37441,27 +52492,26 @@ curl -X GET http://zap/JSON/authentication/view/getAuthe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationViewGetLoggedInIndicator

-

+

spiderViewOptionAcceptCookies

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionAcceptCookies/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionAcceptCookies/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37477,55 +52527,17 @@ curl -X GET http://zap/JSON/authentication/view/getLogge
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/view/getLoggedInIndicator/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/view/getLoggedInIndicator/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionAcceptCookies/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/view/getLoggedInIndicator/

- -

Gets the logged in indicator for the context with the given ID.

- -

Parameters

+

GET /JSON/spider/view/optionAcceptCookies/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
+

Gets whether or not a spider process should accept cookies while spidering.

Example responses

@@ -37533,11 +52545,12 @@ curl -X GET http://zap/JSON/authentication/view/getLogge

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37550,27 +52563,26 @@ curl -X GET http://zap/JSON/authentication/view/getLogge - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationViewGetLoggedOutIndicator

-

+

spiderViewOptionDomainsAlwaysInScope

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScope/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScope/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37586,55 +52598,17 @@ curl -X GET http://zap/JSON/authentication/view/getLogge
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/view/getLoggedOutIndicator/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/view/getLoggedOutIndicator/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScope/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/view/getLoggedOutIndicator/

- -

Gets the logged out indicator for the context with the given ID.

- -

Parameters

+

GET /JSON/spider/view/optionDomainsAlwaysInScope/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
+

Use view domainsAlwaysInScope instead.

Example responses

@@ -37642,11 +52616,12 @@ curl -X GET http://zap/JSON/authentication/view/getLogge

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37659,27 +52634,26 @@ curl -X GET http://zap/JSON/authentication/view/getLogge - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationActionSetAuthenticationMethod

-

+

spiderViewOptionDomainsAlwaysInScopeEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=0&authMethodName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=0&authMethodName=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37695,70 +52669,17 @@ curl -X GET http://zap/JSON/authentication/action/setAut
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/action/setAuthenticationMethod/', params={
-  'contextId': '0',  'authMethodName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/action/setAuthenticationMethod/',
-  params: {
-  'contextId' => 'integer',
-'authMethodName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/action/setAuthenticationMethod/

- -

Sets the authentication method for the context with the given ID.

- -

Parameters

+

GET /JSON/spider/view/optionDomainsAlwaysInScopeEnabled/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
authMethodNamequerystringtruenone
authMethodConfigParamsquerystringfalsenone
+

Use view domainsAlwaysInScope instead.

Example responses

@@ -37766,11 +52687,12 @@ curl -X GET http://zap/JSON/authentication/action/setAut

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37783,27 +52705,26 @@ curl -X GET http://zap/JSON/authentication/action/setAut - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationActionSetLoggedInIndicator

-

+

spiderViewOptionHandleODataParametersVisited

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=0&loggedInIndicatorRegex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionHandleODataParametersVisited/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=0&loggedInIndicatorRegex=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionHandleODataParametersVisited/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37819,63 +52740,15 @@ curl -X GET http://zap/JSON/authentication/action/setLog
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/action/setLoggedInIndicator/', params={
-  'contextId': '0',  'loggedInIndicatorRegex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/action/setLoggedInIndicator/',
-  params: {
-  'contextId' => 'integer',
-'loggedInIndicatorRegex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionHandleODataParametersVisited/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/action/setLoggedInIndicator/

- -

Sets the logged in indicator for the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
loggedInIndicatorRegexquerystringtruenone
+

GET /JSON/spider/view/optionHandleODataParametersVisited/

Example responses

@@ -37883,11 +52756,12 @@ curl -X GET http://zap/JSON/authentication/action/setLog

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -37900,27 +52774,26 @@ curl -X GET http://zap/JSON/authentication/action/setLog - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authenticationActionSetLoggedOutIndicator

-

+

spiderViewOptionHandleParameters

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=0&loggedOutIndicatorRegex=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionHandleParameters/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=0&loggedOutIndicatorRegex=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionHandleParameters/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -37936,63 +52809,15 @@ curl -X GET http://zap/JSON/authentication/action/setLog
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authentication/action/setLoggedOutIndicator/', params={
-  'contextId': '0',  'loggedOutIndicatorRegex': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authentication/action/setLoggedOutIndicator/',
-  params: {
-  'contextId' => 'integer',
-'loggedOutIndicatorRegex' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionHandleParameters/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authentication/action/setLoggedOutIndicator/

- -

Sets the logged out indicator for the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
loggedOutIndicatorRegexquerystringtruenone
+

GET /JSON/spider/view/optionHandleParameters/

Example responses

@@ -38000,11 +52825,12 @@ curl -X GET http://zap/JSON/authentication/action/setLog

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38017,29 +52843,26 @@ curl -X GET http://zap/JSON/authentication/action/setLog - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

authorization

-

authorizationViewGetAuthorizationDetectionMethod

-

+

spiderViewOptionMaxChildren

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionMaxChildren/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionMaxChildren/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38055,55 +52878,17 @@ curl -X GET http://zap/JSON/authorization/view/getAuthor
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionMaxChildren/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/authorization/view/getAuthorizationDetectionMethod/

- -

Obtains all the configuration of the authorization detection method that is currently set for a context.

- -

Parameters

+

GET /JSON/spider/view/optionMaxChildren/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
+

Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

Example responses

@@ -38111,11 +52896,12 @@ curl -X GET http://zap/JSON/authorization/view/getAuthor

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38128,27 +52914,26 @@ curl -X GET http://zap/JSON/authorization/view/getAuthor - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

authorizationActionSetBasicAuthorizationDetectionMethod

-

+

spiderViewOptionMaxDepth

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionMaxDepth/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionMaxDepth/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38164,83 +52949,17 @@ curl -X GET http://zap/JSON/authorization/action/setBasi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
-
-
-

GET /JSON/authorization/action/setBasicAuthorizationDetectionMethod/

- -

Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".

- -

Parameters

+r = requests.get('http://zap/JSON/spider/view/optionMaxDepth/', headers = headers) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
headerRegexquerystringfalsenone
bodyRegexquerystringfalsenone
statusCodequerystringfalsenone
logicalOperatorquerystringfalsenone
+print(r.json()) + +
+

GET /JSON/spider/view/optionMaxDepth/

+ +

Gets the maximum depth the spider can crawl, 0 if unlimited.

Example responses

@@ -38248,11 +52967,12 @@ curl -X GET http://zap/JSON/authorization/action/setBasi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38265,29 +52985,26 @@ curl -X GET http://zap/JSON/authorization/action/setBasi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

localProxies

-

localProxiesViewAdditionalProxies

-

+

spiderViewOptionMaxDuration

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/localProxies/view/additionalProxies/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionMaxDuration/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/localProxies/view/additionalProxies/");
+
URL obj = new URL("http://zap/JSON/spider/view/optionMaxDuration/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38303,34 +53020,15 @@ curl -X GET http://zap/JSON/localProxies/view/additional
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/localProxies/view/additionalProxies/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/localProxies/view/additionalProxies/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionMaxDuration/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/localProxies/view/additionalProxies/

- -

Gets all of the additional proxies that have been configured.

+

GET /JSON/spider/view/optionMaxDuration/

Example responses

@@ -38338,11 +53036,12 @@ curl -X GET http://zap/JSON/localProxies/view/additional

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38355,27 +53054,26 @@ curl -X GET http://zap/JSON/localProxies/view/additional - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

localProxiesActionAddAdditionalProxy

-

+

spiderViewOptionMaxParseSizeBytes

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionMaxParseSizeBytes/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionMaxParseSizeBytes/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38391,84 +53089,17 @@ curl -X GET http://zap/JSON/localProxies/action/addAddit
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/localProxies/action/addAdditionalProxy/', params={
-  'address': 'string',  'port': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/localProxies/action/addAdditionalProxy/',
-  params: {
-  'address' => 'string',
-'port' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionMaxParseSizeBytes/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/localProxies/action/addAdditionalProxy/

- -

Adds an new proxy using the details supplied.

- -

Parameters

+

GET /JSON/spider/view/optionMaxParseSizeBytes/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
addressquerystringtruenone
portqueryintegertruenone
behindNatquerybooleanfalsenone
alwaysDecodeZipquerybooleanfalsenone
removeUnsupportedEncodingsquerybooleanfalsenone
+

Gets the maximum size, in bytes, that a response might have to be parsed.

Example responses

@@ -38476,11 +53107,12 @@ curl -X GET http://zap/JSON/localProxies/action/addAddit

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38493,27 +53125,26 @@ curl -X GET http://zap/JSON/localProxies/action/addAddit - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

localProxiesActionRemoveAdditionalProxy

-

+

spiderViewOptionMaxScansInUI

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionMaxScansInUI/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionMaxScansInUI/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38529,63 +53160,15 @@ curl -X GET http://zap/JSON/localProxies/action/removeAd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/localProxies/action/removeAdditionalProxy/', params={
-  'address': 'string',  'port': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/localProxies/action/removeAdditionalProxy/',
-  params: {
-  'address' => 'string',
-'port' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionMaxScansInUI/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/localProxies/action/removeAdditionalProxy/

- -

Removes the additional proxy with the specified address and port.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
addressquerystringtruenone
portqueryintegertruenone
+

GET /JSON/spider/view/optionMaxScansInUI/

Example responses

@@ -38593,11 +53176,12 @@ curl -X GET http://zap/JSON/localProxies/action/removeAd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38610,29 +53194,26 @@ curl -X GET http://zap/JSON/localProxies/action/removeAd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

ruleConfig

-

ruleConfigViewRuleConfigValue

-

+

spiderViewOptionParseComments

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseComments/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseComments/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38648,55 +53229,15 @@ curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigVa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ruleConfig/view/ruleConfigValue/', params={
-  'key': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ruleConfig/view/ruleConfigValue/',
-  params: {
-  'key' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionParseComments/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ruleConfig/view/ruleConfigValue/

- -

Show the specified rule configuration

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
keyquerystringtruenone
+

GET /JSON/spider/view/optionParseComments/

Example responses

@@ -38704,11 +53245,12 @@ curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigVa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38721,27 +53263,26 @@ curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigVa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ruleConfigViewAllRuleConfigs

-

+

spiderViewOptionParseDsStore

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfigs/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseDsStore/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ruleConfig/view/allRuleConfigs/");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseDsStore/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38757,34 +53298,15 @@ curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/ruleConfig/view/allRuleConfigs/', params={
+r = requests.get('http://zap/JSON/spider/view/optionParseDsStore/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/ruleConfig/view/allRuleConfigs/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ruleConfig/view/allRuleConfigs/

- -

Show all of the rule configurations

+

GET /JSON/spider/view/optionParseDsStore/

Example responses

@@ -38792,11 +53314,12 @@ curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38809,27 +53332,26 @@ curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ruleConfigActionResetRuleConfigValue

-

+

spiderViewOptionParseGit

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseGit/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseGit/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38845,55 +53367,15 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetRuleC
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ruleConfig/action/resetRuleConfigValue/', params={
-  'key': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ruleConfig/action/resetRuleConfigValue/',
-  params: {
-  'key' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionParseGit/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ruleConfig/action/resetRuleConfigValue/

- -

Reset the specified rule configuration, which must already exist

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
keyquerystringtruenone
+

GET /JSON/spider/view/optionParseGit/

Example responses

@@ -38901,11 +53383,12 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetRuleC

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -38918,27 +53401,26 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetRuleC - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ruleConfigActionResetAllRuleConfigValues

-

+

spiderViewOptionParseRobotsTxt

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseRobotsTxt/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseRobotsTxt/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -38954,34 +53436,15 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetAllRu
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionParseRobotsTxt/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ruleConfig/action/resetAllRuleConfigValues/

- -

Reset all of the rule configurations

+

GET /JSON/spider/view/optionParseRobotsTxt/

Example responses

@@ -38989,11 +53452,12 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetAllRu

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39006,27 +53470,26 @@ curl -X GET http://zap/JSON/ruleConfig/action/resetAllRu - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

ruleConfigActionSetRuleConfigValue

-

+

spiderViewOptionParseSVNEntries

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseSVNEntries/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseSVNEntries/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39042,62 +53505,15 @@ curl -X GET http://zap/JSON/ruleConfig/action/setRuleCon
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/ruleConfig/action/setRuleConfigValue/', params={
-  'key': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/ruleConfig/action/setRuleConfigValue/',
-  params: {
-  'key' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionParseSVNEntries/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/ruleConfig/action/setRuleConfigValue/

- -

Set the specified rule configuration, which must already exist

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
keyquerystringtruenone
valuequerystringfalsenone
+

GET /JSON/spider/view/optionParseSVNEntries/

Example responses

@@ -39105,11 +53521,12 @@ curl -X GET http://zap/JSON/ruleConfig/action/setRuleCon

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39122,29 +53539,26 @@ curl -X GET http://zap/JSON/ruleConfig/action/setRuleCon - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

sessionManagement

-

sessionManagementViewGetSupportedSessionManagementMethods

-

+

spiderViewOptionParseSitemapXml

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionParseSitemapXml/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/");
+
URL obj = new URL("http://zap/JSON/spider/view/optionParseSitemapXml/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39160,34 +53574,15 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSu
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionParseSitemapXml/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/sessionManagement/view/getSupportedSessionManagementMethods/

- -

Gets the name of the session management methods.

+

GET /JSON/spider/view/optionParseSitemapXml/

Example responses

@@ -39195,11 +53590,12 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSu

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39212,27 +53608,26 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSu - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

sessionManagementViewGetSessionManagementMethodConfigParams

-

+

spiderViewOptionPostForm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionPostForm/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionPostForm/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39248,55 +53643,15 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/', params={
-  'methodName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/',
-  params: {
-  'methodName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionPostForm/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/sessionManagement/view/getSessionManagementMethodConfigParams/

- -

Gets the configuration parameters for the session management method with the given name.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
methodNamequerystringtruenone
+

GET /JSON/spider/view/optionPostForm/

Example responses

@@ -39304,11 +53659,12 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39321,27 +53677,26 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

sessionManagementViewGetSessionManagementMethod

-

+

spiderViewOptionProcessForm

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionProcessForm/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionProcessForm/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39357,55 +53712,15 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethod/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSessionManagementMethod/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionProcessForm/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/sessionManagement/view/getSessionManagementMethod/

- -

Gets the name of the session management method for the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
+

GET /JSON/spider/view/optionProcessForm/

Example responses

@@ -39413,11 +53728,12 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39430,27 +53746,26 @@ curl -X GET http://zap/JSON/sessionManagement/view/getSe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

sessionManagementActionSetSessionManagementMethod

-

+

spiderViewOptionRequestWaitTime

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=0&methodName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionRequestWaitTime/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=0&methodName=string");
+
URL obj = new URL("http://zap/JSON/spider/view/optionRequestWaitTime/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39466,82 +53781,99 @@ curl -X GET http://zap/JSON/sessionManagement/action/set
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/sessionManagement/action/setSessionManagementMethod/', params={
-  'contextId': '0',  'methodName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/sessionManagement/action/setSessionManagementMethod/',
-  params: {
-  'contextId' => 'integer',
-'methodName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionRequestWaitTime/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/sessionManagement/action/setSessionManagementMethod/

+

GET /JSON/spider/view/optionRequestWaitTime/

-

Sets the session management method for the context with the given ID.

+
+

Example responses

-

Parameters

+

default Response

+
+
{
+  "code": "string",
+  "message": "string",
+  "detail": "string"
+}
+
+

Responses

- - - - + + + - - - - - - - - - - - - - - - - - - - + + + +
NameInTypeRequiredStatusMeaning DescriptionSchema
contextIdqueryintegertruenone
methodNamequerystringtruenone
methodConfigParamsquerystringfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
+ +

spiderViewOptionSendRefererHeader

+

+ +
+

Code samples

+
+
# You can also use wget
+curl -X GET http://zap/JSON/spider/view/optionSendRefererHeader/ \
+  -H 'Accept: application/json'
+
+
URL obj = new URL("http://zap/JSON/spider/view/optionSendRefererHeader/");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+    new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+    response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
import requests
+headers = {
+  'Accept': 'application/json'
+}
+
+r = requests.get('http://zap/JSON/spider/view/optionSendRefererHeader/', headers = headers)
+
+print(r.json())
+
+
+

GET /JSON/spider/view/optionSendRefererHeader/

+ +

Gets whether or not the 'Referer' header should be sent while spidering.

+

Example responses

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39554,29 +53886,26 @@ curl -X GET http://zap/JSON/sessionManagement/action/set - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

users

-

usersViewUsersList

-

+

spiderViewOptionShowAdvancedDialog

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/view/usersList/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionShowAdvancedDialog/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/view/usersList/");
+
URL obj = new URL("http://zap/JSON/spider/view/optionShowAdvancedDialog/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39592,54 +53921,15 @@ curl -X GET http://zap/JSON/users/view/usersList/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/view/usersList/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/view/usersList/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionShowAdvancedDialog/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/view/usersList/

- -

Gets a list of users that belong to the context with the given ID, or all users if none provided.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegerfalsenone
+

GET /JSON/spider/view/optionShowAdvancedDialog/

Example responses

@@ -39647,11 +53937,12 @@ curl -X GET http://zap/JSON/users/view/usersList/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39664,27 +53955,26 @@ curl -X GET http://zap/JSON/users/view/usersList/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersViewGetUserById

-

+

spiderViewOptionSkipURLString

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/view/getUserById/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionSkipURLString/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/view/getUserById/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionSkipURLString/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39700,63 +53990,15 @@ curl -X GET http://zap/JSON/users/view/getUserById/?cont
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/view/getUserById/', params={
-  'contextId': '0',  'userId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/view/getUserById/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionSkipURLString/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/view/getUserById/

- -

Gets the data of the user with the given ID that belongs to the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
userIdqueryintegertruenone
+

GET /JSON/spider/view/optionSkipURLString/

Example responses

@@ -39764,11 +54006,12 @@ curl -X GET http://zap/JSON/users/view/getUserById/?cont

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39781,27 +54024,26 @@ curl -X GET http://zap/JSON/users/view/getUserById/?cont - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersViewGetAuthenticationCredentialsConfigParams

-

+

spiderViewOptionThreadCount

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionThreadCount/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionThreadCount/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39817,55 +54059,15 @@ curl -X GET http://zap/JSON/users/view/getAuthentication
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/', params={
-  'contextId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionThreadCount/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/view/getAuthenticationCredentialsConfigParams/

- -

Gets the configuration parameters for the credentials of the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
+

GET /JSON/spider/view/optionThreadCount/

Example responses

@@ -39873,11 +54075,12 @@ curl -X GET http://zap/JSON/users/view/getAuthentication

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -39890,27 +54093,26 @@ curl -X GET http://zap/JSON/users/view/getAuthentication - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersViewGetAuthenticationCredentials

-

+

spiderViewOptionUserAgent

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/optionUserAgent/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/optionUserAgent/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -39926,63 +54128,15 @@ curl -X GET http://zap/JSON/users/view/getAuthentication
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentials/', params={
-  'contextId': '0',  'userId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/view/getAuthenticationCredentials/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/optionUserAgent/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/view/getAuthenticationCredentials/

- -

Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
userIdqueryintegertruenone
+

GET /JSON/spider/view/optionUserAgent/

Example responses

@@ -39990,11 +54144,12 @@ curl -X GET http://zap/JSON/users/view/getAuthentication

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40007,27 +54162,26 @@ curl -X GET http://zap/JSON/users/view/getAuthentication - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersActionNewUser

-

+

spiderViewResults

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/action/newUser/?contextId=0&name=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/results/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/action/newUser/?contextId=0&name=string");
+
URL obj = new URL("http://zap/JSON/spider/view/results/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40043,38 +54197,17 @@ curl -X GET http://zap/JSON/users/action/newUser/?contex
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/users/action/newUser/', params={
-  'contextId': '0',  'name': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/users/action/newUser/',
-  params: {
-  'contextId' => 'integer',
-'name' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/results/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/action/newUser/

- -

Creates a new user with the given name for the context with the given ID.

+

GET /JSON/spider/view/results/

-

Parameters

+

Parameters

@@ -40086,17 +54219,10 @@ curl -X GET http://zap/JSON/users/action/newUser/?contex - - - - - - - - + - +
contextIdqueryintegertruenone
namescanId query stringtruefalse none
@@ -40107,11 +54233,12 @@ curl -X GET http://zap/JSON/users/action/newUser/?contex

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40124,27 +54251,26 @@ curl -X GET http://zap/JSON/users/action/newUser/?contex - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersActionRemoveUser

-

+

spiderViewScans

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/action/removeUser/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/scans/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/action/removeUser/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/spider/view/scans/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40160,63 +54286,15 @@ curl -X GET http://zap/JSON/users/action/removeUser/?con
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/action/removeUser/', params={
-  'contextId': '0',  'userId': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/action/removeUser/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/scans/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/action/removeUser/

- -

Removes the user with the given ID that belongs to the context with the given ID.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
contextIdqueryintegertruenone
userIdqueryintegertruenone
+

GET /JSON/spider/view/scans/

Example responses

@@ -40224,11 +54302,12 @@ curl -X GET http://zap/JSON/users/action/removeUser/?con

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40241,27 +54320,26 @@ curl -X GET http://zap/JSON/users/action/removeUser/?con - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersActionSetUserEnabled

-

+

spiderViewStatus

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/action/setUserEnabled/?contextId=0&userId=0&enabled=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/spider/view/status/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/action/setUserEnabled/?contextId=0&userId=0&enabled=true");
+
URL obj = new URL("http://zap/JSON/spider/view/status/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40277,39 +54355,17 @@ curl -X GET http://zap/JSON/users/action/setUserEnabled/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/users/action/setUserEnabled/', params={
-  'contextId': '0',  'userId': '0',  'enabled': 'true'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/users/action/setUserEnabled/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer',
-'enabled' => 'boolean'
-}, headers: headers
+r = requests.get('http://zap/JSON/spider/view/status/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/action/setUserEnabled/

- -

Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.

+

GET /JSON/spider/view/status/

-

Parameters

+

Parameters

@@ -40321,24 +54377,10 @@ curl -X GET http://zap/JSON/users/action/setUserEnabled/ - - - - - - - - - - - - - - - + - - + +
contextIdqueryintegertruenone
userIdqueryintegertruenone
enabledscanId querybooleantruestringfalse none
@@ -40349,11 +54391,12 @@ curl -X GET http://zap/JSON/users/action/setUserEnabled/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40366,27 +54409,28 @@ curl -X GET http://zap/JSON/users/action/setUserEnabled/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersActionSetUserName

-

+ +

stats

+

statsActionClearStats

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/action/setUserName/?contextId=0&userId=0&name=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/action/clearStats/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/action/setUserName/?contextId=0&userId=0&name=string");
+
URL obj = new URL("http://zap/JSON/stats/action/clearStats/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40402,39 +54446,19 @@ curl -X GET http://zap/JSON/users/action/setUserName/?co
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/users/action/setUserName/', params={
-  'contextId': '0',  'userId': '0',  'name': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/users/action/setUserName/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer',
-'name' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/stats/action/clearStats/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/action/setUserName/

+

GET /JSON/stats/action/clearStats/

-

Renames the user with the given ID that belongs to the context with the given ID.

+

Clears all of the statistics

-

Parameters

+

Parameters

@@ -40446,24 +54470,10 @@ curl -X GET http://zap/JSON/users/action/setUserName/?co - - - - - - - - - - - - - - - + - +
contextIdqueryintegertruenone
userIdqueryintegertruenone
namekeyPrefix query stringtruefalse none
@@ -40474,11 +54484,12 @@ curl -X GET http://zap/JSON/users/action/setUserName/?co

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40491,27 +54502,26 @@ curl -X GET http://zap/JSON/users/action/setUserName/?co - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

usersActionSetAuthenticationCredentials

-

+

statsActionSetOptionInMemoryEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=true \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=true");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40527,38 +54537,21 @@ curl -X GET http://zap/JSON/users/action/setAuthenticati
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/users/action/setAuthenticationCredentials/', params={
-  'contextId': '0',  'userId': '0'
+r = requests.get('http://zap/JSON/stats/action/setOptionInMemoryEnabled/', params={
+  'Boolean': 'true'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/users/action/setAuthenticationCredentials/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/users/action/setAuthenticationCredentials/

+

GET /JSON/stats/action/setOptionInMemoryEnabled/

-

Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.

+

Sets whether in memory statistics are enabled

-

Parameters

+

Parameters

@@ -40570,26 +54563,12 @@ curl -X GET http://zap/JSON/users/action/setAuthenticati - - - - - - - - + - + - - - - - - -
contextIdqueryintegertruenone
userIdBoolean queryintegerboolean true none
authCredentialsConfigParamsquerystringfalsenone
@@ -40598,11 +54577,12 @@ curl -X GET http://zap/JSON/users/action/setAuthenticati

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40615,29 +54595,26 @@ curl -X GET http://zap/JSON/users/action/setAuthenticati - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

forcedUser

-

forcedUserViewIsForcedUserModeEnabled

-

+

statsActionSetOptionStatsdHost

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/action/setOptionStatsdHost/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/");
+
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdHost/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40653,34 +54630,39 @@ curl -X GET http://zap/JSON/forcedUser/view/isForcedUser
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/', params={
-
+r = requests.get('http://zap/JSON/stats/action/setOptionStatsdHost/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/stats/action/setOptionStatsdHost/

-p JSON.parse(result) +

Sets the Statsd service hostname, supply an empty string to stop using a Statsd service

-
-

GET /JSON/forcedUser/view/isForcedUserModeEnabled/

+

Parameters

-

Returns 'true' if 'forced user' mode is enabled, 'false' otherwise

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
Stringquerystringtruenone

Example responses

@@ -40688,11 +54670,12 @@ curl -X GET http://zap/JSON/forcedUser/view/isForcedUser

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -40705,27 +54688,26 @@ curl -X GET http://zap/JSON/forcedUser/view/isForcedUser - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

forcedUserViewGetForcedUser

-

+

statsActionSetOptionStatsdPort

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/forcedUser/view/getForcedUser/?contextId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0 \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/forcedUser/view/getForcedUser/?contextId=0");
+
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40741,37 +54723,21 @@ curl -X GET http://zap/JSON/forcedUser/view/getForcedUse
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/forcedUser/view/getForcedUser/', params={
-  'contextId': '0'
+r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPort/', params={
+  'Integer': '0'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/forcedUser/view/getForcedUser/',
-  params: {
-  'contextId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/forcedUser/view/getForcedUser/

+

GET /JSON/stats/action/setOptionStatsdPort/

-

Gets the user (ID) set as 'forced user' for the given context (ID)

+

Sets the Statsd service port

-

Parameters

+

Parameters

@@ -40783,7 +54749,7 @@ curl -X GET http://zap/JSON/forcedUser/view/getForcedUse - + @@ -40797,11 +54763,12 @@ curl -X GET http://zap/JSON/forcedUser/view/getForcedUse

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextIdInteger query integer true
@@ -40814,27 +54781,26 @@ curl -X GET http://zap/JSON/forcedUser/view/getForcedUse - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

forcedUserActionSetForcedUser

-

+

statsActionSetOptionStatsdPrefix

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/forcedUser/action/setForcedUser/?contextId=0&userId=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUser/?contextId=0&userId=0");
+
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40850,38 +54816,21 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/forcedUser/action/setForcedUser/', params={
-  'contextId': '0',  'userId': '0'
+r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPrefix/', params={
+  'String': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/forcedUser/action/setForcedUser/',
-  params: {
-  'contextId' => 'integer',
-'userId' => 'integer'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/forcedUser/action/setForcedUser/

+

GET /JSON/stats/action/setOptionStatsdPrefix/

-

Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)

+

Sets the prefix to be applied to all stats sent to the configured Statsd service

-

Parameters

+

Parameters

@@ -40893,16 +54842,9 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU - - - - - - - - + - + @@ -40914,11 +54856,12 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

contextIdqueryintegertruenone
userIdString queryintegerstring true none
@@ -40931,27 +54874,26 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

forcedUserActionSetForcedUserModeEnabled

-

+

statsViewAllSitesStats

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=true \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/allSitesStats/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=true");
+
URL obj = new URL("http://zap/JSON/stats/view/allSitesStats/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -40967,37 +54909,19 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/', params={
-  'boolean': 'true'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/',
-  params: {
-  'boolean' => 'boolean'
-}, headers: headers
+r = requests.get('http://zap/JSON/stats/view/allSitesStats/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/forcedUser/action/setForcedUserModeEnabled/

+

GET /JSON/stats/view/allSitesStats/

-

Sets if 'forced user' mode should be enabled or not

+

Gets all of the site based statistics, optionally filtered by a key prefix

-

Parameters

+

Parameters

@@ -41009,10 +54933,10 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU - + - - + +
booleankeyPrefix querybooleantruestringfalse none
@@ -41023,11 +54947,12 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41040,29 +54965,26 @@ curl -X GET http://zap/JSON/forcedUser/action/setForcedU - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

script

-

scriptViewListEngines

-

+

statsViewOptionInMemoryEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/listEngines/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/optionInMemoryEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/listEngines/");
+
URL obj = new URL("http://zap/JSON/stats/view/optionInMemoryEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41078,34 +55000,17 @@ curl -X GET http://zap/JSON/script/view/listEngines/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/view/listEngines/', params={
+r = requests.get('http://zap/JSON/stats/view/optionInMemoryEnabled/', headers = headers)
 
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/view/listEngines/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/listEngines/

+

GET /JSON/stats/view/optionInMemoryEnabled/

-

Lists the script engines available

+

Returns 'true' if in memory statistics are enabled, otherwise returns 'false'

Example responses

@@ -41113,11 +55018,12 @@ curl -X GET http://zap/JSON/script/view/listEngines/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41130,27 +55036,26 @@ curl -X GET http://zap/JSON/script/view/listEngines/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewListTypes

-

+

statsViewOptionStatsdEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/listTypes/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/optionStatsdEnabled/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/listTypes/");
+
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdEnabled/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41166,34 +55071,17 @@ curl -X GET http://zap/JSON/script/view/listTypes/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/script/view/listTypes/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/script/view/listTypes/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/stats/view/optionStatsdEnabled/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/listTypes/

+

GET /JSON/stats/view/optionStatsdEnabled/

-

Lists the script types available.

+

Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'

Example responses

@@ -41201,11 +55089,12 @@ curl -X GET http://zap/JSON/script/view/listTypes/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41218,27 +55107,26 @@ curl -X GET http://zap/JSON/script/view/listTypes/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewListScripts

-

+

statsViewOptionStatsdHost

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/listScripts/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/optionStatsdHost/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/listScripts/");
+
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdHost/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41254,34 +55142,17 @@ curl -X GET http://zap/JSON/script/view/listScripts/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/script/view/listScripts/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/script/view/listScripts/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/stats/view/optionStatsdHost/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/listScripts/

+

GET /JSON/stats/view/optionStatsdHost/

-

Lists the scripts available, with its engine, name, description, type and error state.

+

Gets the Statsd service hostname

Example responses

@@ -41289,11 +55160,12 @@ curl -X GET http://zap/JSON/script/view/listScripts/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41306,27 +55178,26 @@ curl -X GET http://zap/JSON/script/view/listScripts/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewGlobalVar

-

+

statsViewOptionStatsdPort

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/globalVar/?varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/optionStatsdPort/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/globalVar/?varKey=string");
+
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPort/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41342,55 +55213,17 @@ curl -X GET http://zap/JSON/script/view/globalVar/?varKe
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/script/view/globalVar/', params={
-  'varKey': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/script/view/globalVar/',
-  params: {
-  'varKey' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/stats/view/optionStatsdPort/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/globalVar/

- -

Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

- -

Parameters

+

GET /JSON/stats/view/optionStatsdPort/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
varKeyquerystringtruenone
+

Gets the Statsd service port

Example responses

@@ -41398,11 +55231,12 @@ curl -X GET http://zap/JSON/script/view/globalVar/?varKe

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41415,27 +55249,26 @@ curl -X GET http://zap/JSON/script/view/globalVar/?varKe - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewGlobalVars

-

+

statsViewOptionStatsdPrefix

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/globalVars/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/optionStatsdPrefix/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/globalVars/");
+
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPrefix/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41451,34 +55284,17 @@ curl -X GET http://zap/JSON/script/view/globalVars/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/script/view/globalVars/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/script/view/globalVars/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/stats/view/optionStatsdPrefix/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/globalVars/

+

GET /JSON/stats/view/optionStatsdPrefix/

-

Gets all the global variables (key/value pairs).

+

Gets the prefix to be applied to all stats sent to the configured Statsd service

Example responses

@@ -41486,11 +55302,12 @@ curl -X GET http://zap/JSON/script/view/globalVars/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41503,27 +55320,26 @@ curl -X GET http://zap/JSON/script/view/globalVars/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewScriptVar

-

+

statsViewSiteStats

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/siteStats/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string");
+
URL obj = new URL("http://zap/JSON/stats/view/siteStats/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41539,38 +55355,21 @@ curl -X GET http://zap/JSON/script/view/scriptVar/?scrip
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/view/scriptVar/', params={
-  'scriptName': 'string',  'varKey': 'string'
+r = requests.get('http://zap/JSON/stats/view/siteStats/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/view/scriptVar/',
-  params: {
-  'scriptName' => 'string',
-'varKey' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/scriptVar/

+

GET /JSON/stats/view/siteStats/

-

Gets the value of the variable with the given key for the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

+

Gets all of the global statistics, optionally filtered by a key prefix

-

Parameters

+

Parameters

@@ -41582,17 +55381,17 @@ curl -X GET http://zap/JSON/script/view/scriptVar/?scrip - + - + - +
scriptNamesite query string true none
varKeykeyPrefix query stringtruefalse none
@@ -41603,11 +55402,12 @@ curl -X GET http://zap/JSON/script/view/scriptVar/?scrip

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41620,27 +55420,26 @@ curl -X GET http://zap/JSON/script/view/scriptVar/?scrip - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptViewScriptVars

-

+

statsViewStats

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/view/scriptVars/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/stats/view/stats/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/view/scriptVars/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/stats/view/stats/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41656,37 +55455,19 @@ curl -X GET http://zap/JSON/script/view/scriptVars/?scri
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/script/view/scriptVars/', params={
-  'scriptName': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/script/view/scriptVars/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/stats/view/stats/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/view/scriptVars/

+

GET /JSON/stats/view/stats/

-

Gets all the variables (key/value pairs) of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+

Statistics

-

Parameters

+

Parameters

@@ -41698,10 +55479,10 @@ curl -X GET http://zap/JSON/script/view/scriptVars/?scri - + - +
scriptNamekeyPrefix query stringtruefalse none
@@ -41712,11 +55493,12 @@ curl -X GET http://zap/JSON/script/view/scriptVars/?scri

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41729,27 +55511,28 @@ curl -X GET http://zap/JSON/script/view/scriptVars/?scri - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionEnable

-

+ +

users

+

usersActionAuthenticateAsUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/enable/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/authenticateAsUser/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/enable/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/users/action/authenticateAsUser/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41765,37 +55548,21 @@ curl -X GET http://zap/JSON/script/action/enable/?script
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/enable/', params={
-  'scriptName': 'string'
+r = requests.get('http://zap/JSON/users/action/authenticateAsUser/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/enable/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/enable/

+

GET /JSON/users/action/authenticateAsUser/

-

Enables the script with the given name

+

Tries to authenticate as the identified user, returning the authentication request and whether it appears to have succeeded.

-

Parameters

+

Parameters

@@ -41807,11 +55574,18 @@ curl -X GET http://zap/JSON/script/action/enable/?script - + - + + + + + + + +
scriptNamecontextId query string truenoneThe Context ID
userIdquerystringtrueThe User ID
@@ -41821,11 +55595,12 @@ curl -X GET http://zap/JSON/script/action/enable/?script

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -41838,27 +55613,26 @@ curl -X GET http://zap/JSON/script/action/enable/?script - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionDisable

-

+

usersActionNewUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/disable/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/newUser/?contextId=string&name=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/disable/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/users/action/newUser/?contextId=string&name=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41874,37 +55648,21 @@ curl -X GET http://zap/JSON/script/action/disable/?scrip
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/disable/', params={
-  'scriptName': 'string'
+r = requests.get('http://zap/JSON/users/action/newUser/', params={
+  'contextId': 'string',  'name': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/disable/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/disable/

+

GET /JSON/users/action/newUser/

-

Disables the script with the given name

+

Creates a new user with the given name for the context with the given ID.

-

Parameters

+

Parameters

@@ -41916,7 +55674,14 @@ curl -X GET http://zap/JSON/script/action/disable/?scrip - + + + + + + + + @@ -41930,11 +55695,12 @@ curl -X GET http://zap/JSON/script/action/disable/?scrip

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scriptNamecontextIdquerystringtrueThe Context ID
name query string true
@@ -41947,27 +55713,26 @@ curl -X GET http://zap/JSON/script/action/disable/?scrip - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionLoad

-

+

usersActionPollAsUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/pollAsUser/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string");
+
URL obj = new URL("http://zap/JSON/users/action/pollAsUser/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -41983,40 +55748,21 @@ curl -X GET http://zap/JSON/script/action/load/?scriptNa
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/load/', params={
-  'scriptName': 'string',  'scriptType': 'string',  'scriptEngine': 'string',  'fileName': 'string'
+r = requests.get('http://zap/JSON/users/action/pollAsUser/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/load/',
-  params: {
-  'scriptName' => 'string',
-'scriptType' => 'string',
-'scriptEngine' => 'string',
-'fileName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/load/

+

GET /JSON/users/action/pollAsUser/

-

Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8859-1).

+

Tries to poll as the identified user, returning the authentication request and whether it appears to have succeeded. This will only work if the polling verification strategy has been configured.

-

Parameters

+

Parameters

@@ -42028,46 +55774,18 @@ curl -X GET http://zap/JSON/script/action/load/?scriptNa - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - +
scriptNamequerystringtruenone
scriptTypequerystringtruenone
scriptEnginecontextId query string truenoneThe Context ID
fileNameuserId query string truenone
scriptDescriptionquerystringfalsenone
charsetquerystringfalsenoneThe User ID
@@ -42077,11 +55795,12 @@ curl -X GET http://zap/JSON/script/action/load/?scriptNa

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42094,27 +55813,26 @@ curl -X GET http://zap/JSON/script/action/load/?scriptNa - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionRemove

-

+

usersActionRemoveUser

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/remove/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/removeUser/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/remove/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/users/action/removeUser/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42130,37 +55848,21 @@ curl -X GET http://zap/JSON/script/action/remove/?script
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/remove/', params={
-  'scriptName': 'string'
+r = requests.get('http://zap/JSON/users/action/removeUser/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/remove/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/remove/

+

GET /JSON/users/action/removeUser/

-

Removes the script with the given name

+

Removes the user with the given ID that belongs to the context with the given ID.

-

Parameters

+

Parameters

@@ -42172,11 +55874,18 @@ curl -X GET http://zap/JSON/script/action/remove/?script - + - + + + + + + + +
scriptNamecontextId query string truenoneThe Context ID
userIdquerystringtrueThe User ID
@@ -42186,11 +55895,12 @@ curl -X GET http://zap/JSON/script/action/remove/?script

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42203,27 +55913,26 @@ curl -X GET http://zap/JSON/script/action/remove/?script - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionRunStandAloneScript

-

+

usersActionSetAuthenticationCredentials

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/runStandAloneScript/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/runStandAloneScript/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42239,37 +55948,21 @@ curl -X GET http://zap/JSON/script/action/runStandAloneS
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/runStandAloneScript/', params={
-  'scriptName': 'string'
+r = requests.get('http://zap/JSON/users/action/setAuthenticationCredentials/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/runStandAloneScript/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/runStandAloneScript/

+

GET /JSON/users/action/setAuthenticationCredentials/

-

Runs the stand alone script with the given name

+

Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.

-

Parameters

+

Parameters

@@ -42281,10 +55974,24 @@ curl -X GET http://zap/JSON/script/action/runStandAloneS - + + + + + + + + + + + + + + +
scriptNamecontextIdquerystringtrueThe Context ID
userId query string trueThe User ID
authCredentialsConfigParamsquerystringfalse none
@@ -42295,11 +56002,12 @@ curl -X GET http://zap/JSON/script/action/runStandAloneS

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42312,27 +56020,26 @@ curl -X GET http://zap/JSON/script/action/runStandAloneS - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionClearGlobalVar

-

+

usersActionSetAuthenticationState

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/clearGlobalVar/?varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/setAuthenticationState/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/clearGlobalVar/?varKey=string");
+
URL obj = new URL("http://zap/JSON/users/action/setAuthenticationState/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42348,37 +56055,21 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/clearGlobalVar/', params={
-  'varKey': 'string'
+r = requests.get('http://zap/JSON/users/action/setAuthenticationState/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/clearGlobalVar/',
-  params: {
-  'varKey' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/clearGlobalVar/

+

GET /JSON/users/action/setAuthenticationState/

-

Clears the global variable with the given key.

+

Sets fields in the authentication state for the user identified by the Context and User Ids.

-

Parameters

+

Parameters

@@ -42390,11 +56081,39 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
varKeycontextId query string truenoneThe Context ID
userIdquerystringtrueThe User ID
lastPollResultquerystringfalseLast Poll Result - optional, should be 'true' or 'false'.
lastPollTimeInMsquerystringfalseLast Poll Time in Milliseconds - optional, should be a long or 'NOW' for the current time in ms.
requestsSinceLastPollquerystringfalseRequests Since Last Poll - optional, should be an integer.
@@ -42404,11 +56123,12 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42421,27 +56141,26 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionClearGlobalVars

-

+

usersActionSetCookie

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/clearGlobalVars/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/setCookie/?contextId=string&userId=string&domain=string&name=string&value=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/clearGlobalVars/");
+
URL obj = new URL("http://zap/JSON/users/action/setCookie/?contextId=string&userId=string&domain=string&name=string&value=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42457,34 +56176,81 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/clearGlobalVars/', params={
-
+r = requests.get('http://zap/JSON/users/action/setCookie/', params={
+  'contextId': 'string',  'userId': 'string',  'domain': 'string',  'name': 'string',  'value': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/script/action/clearGlobalVars/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/users/action/setCookie/

-p JSON.parse(result) +

Sets the specified cookie for the user identified by the Context and User Ids.

-
-

GET /JSON/script/action/clearGlobalVars/

+

Parameters

-

Clears the global variables.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringtrueThe Context ID
userIdquerystringtrueThe User ID
domainquerystringtrueThe Cookie Domain
namequerystringtrueThe Cookie Name
valuequerystringtrueThe Cookie Value
pathquerystringfalseThe Cookie Path - optional default no path
securequerystringfalseIf the Cookie is secure - optional default false

Example responses

@@ -42492,11 +56258,12 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42509,27 +56276,26 @@ curl -X GET http://zap/JSON/script/action/clearGlobalVar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionClearScriptVar

-

+

usersActionSetUserEnabled

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/setUserEnabled/?contextId=string&userId=string&enabled=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string");
+
URL obj = new URL("http://zap/JSON/users/action/setUserEnabled/?contextId=string&userId=string&enabled=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42545,38 +56311,21 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/clearScriptVar/', params={
-  'scriptName': 'string',  'varKey': 'string'
+r = requests.get('http://zap/JSON/users/action/setUserEnabled/', params={
+  'contextId': 'string',  'userId': 'string',  'enabled': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/clearScriptVar/',
-  params: {
-  'scriptName' => 'string',
-'varKey' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/clearScriptVar/

+

GET /JSON/users/action/setUserEnabled/

-

Clears the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+

Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.

-

Parameters

+

Parameters

@@ -42588,14 +56337,21 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar - + - + - + + + + + + + + @@ -42609,11 +56365,12 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scriptNamecontextId query string truenoneThe Context ID
varKeyuserIdquerystringtrueThe User ID
enabled query string true
@@ -42626,27 +56383,26 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionClearScriptVars

-

+

usersActionSetUserName

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/clearScriptVars/?scriptName=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/action/setUserName/?contextId=string&userId=string&name=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/clearScriptVars/?scriptName=string");
+
URL obj = new URL("http://zap/JSON/users/action/setUserName/?contextId=string&userId=string&name=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42662,37 +56418,21 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/clearScriptVars/', params={
-  'scriptName': 'string'
+r = requests.get('http://zap/JSON/users/action/setUserName/', params={
+  'contextId': 'string',  'userId': 'string',  'name': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/clearScriptVars/',
-  params: {
-  'scriptName' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/clearScriptVars/

+

GET /JSON/users/action/setUserName/

-

Clears the variables of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+

Renames the user with the given ID that belongs to the context with the given ID.

-

Parameters

+

Parameters

@@ -42704,7 +56444,21 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar - + + + + + + + + + + + + + + + @@ -42718,11 +56472,12 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

scriptNamecontextIdquerystringtrueThe Context ID
userIdquerystringtrueThe User ID
name query string true
@@ -42735,27 +56490,26 @@ curl -X GET http://zap/JSON/script/action/clearScriptVar - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionSetScriptVar

-

+

usersViewGetAuthenticationCredentials

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string");
+
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42771,38 +56525,21 @@ curl -X GET http://zap/JSON/script/action/setScriptVar/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/setScriptVar/', params={
-  'scriptName': 'string',  'varKey': 'string'
+r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentials/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/setScriptVar/',
-  params: {
-  'scriptName' => 'string',
-'varKey' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/setScriptVar/

+

GET /JSON/users/view/getAuthenticationCredentials/

-

Sets the value of the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

+

Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.

-

Parameters

+

Parameters

@@ -42814,25 +56551,18 @@ curl -X GET http://zap/JSON/script/action/setScriptVar/? - + - + - + - - - - - - - - +
scriptNamecontextId query string truenoneThe Context ID
varKeyuserId query string truenone
varValuequerystringfalsenonethe User ID
@@ -42842,11 +56572,12 @@ curl -X GET http://zap/JSON/script/action/setScriptVar/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42859,27 +56590,26 @@ curl -X GET http://zap/JSON/script/action/setScriptVar/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

scriptActionSetGlobalVar

-

+

usersViewGetAuthenticationCredentialsConfigParams

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/script/action/setGlobalVar/?varKey=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/script/action/setGlobalVar/?varKey=string");
+
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -42895,37 +56625,21 @@ curl -X GET http://zap/JSON/script/action/setGlobalVar/?
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/script/action/setGlobalVar/', params={
-  'varKey': 'string'
+r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/', params={
+  'contextId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/script/action/setGlobalVar/',
-  params: {
-  'varKey' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/script/action/setGlobalVar/

+

GET /JSON/users/view/getAuthenticationCredentialsConfigParams/

-

Sets the value of the global variable with the given key.

+

Gets the configuration parameters for the credentials of the context with the given ID.

-

Parameters

+

Parameters

@@ -42937,18 +56651,11 @@ curl -X GET http://zap/JSON/script/action/setGlobalVar/? - + - - - - - - - - +
varKeycontextId query string truenone
varValuequerystringfalsenoneThe Context ID
@@ -42958,11 +56665,12 @@ curl -X GET http://zap/JSON/script/action/setGlobalVar/?

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -42975,29 +56683,26 @@ curl -X GET http://zap/JSON/script/action/setGlobalVar/? - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
- -

stats

-

statsViewStats

-

+

usersViewGetAuthenticationSession

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/stats/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/getAuthenticationSession/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/stats/");
+
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationSession/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43013,36 +56718,21 @@ curl -X GET http://zap/JSON/stats/view/stats/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/stats/', params={
-
+r = requests.get('http://zap/JSON/users/view/getAuthenticationSession/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/view/stats/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/view/stats/

+

GET /JSON/users/view/getAuthenticationSession/

-

Statistics

+

Gets the authentication session information for the user identified by the Context and User Ids, e.g. cookies and realm credentials.

-

Parameters

+

Parameters

@@ -43054,11 +56744,18 @@ curl -X GET http://zap/JSON/stats/view/stats/ - + - - + + + + + + + + +
keyPrefixcontextId query stringfalsenonetrueThe Context ID
userIdquerystringtrueThe User ID
@@ -43068,11 +56765,12 @@ curl -X GET http://zap/JSON/stats/view/stats/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43085,27 +56783,26 @@ curl -X GET http://zap/JSON/stats/view/stats/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewAllSitesStats

-

+

usersViewGetAuthenticationState

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/allSitesStats/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/getAuthenticationState/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/allSitesStats/");
+
URL obj = new URL("http://zap/JSON/users/view/getAuthenticationState/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43121,36 +56818,21 @@ curl -X GET http://zap/JSON/stats/view/allSitesStats/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/allSitesStats/', params={
-
+r = requests.get('http://zap/JSON/users/view/getAuthenticationState/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/view/allSitesStats/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/view/allSitesStats/

+

GET /JSON/users/view/getAuthenticationState/

-

Gets all of the site based statistics, optionally filtered by a key prefix

+

Gets the authentication state information for the user identified by the Context and User Ids.

-

Parameters

+

Parameters

@@ -43162,11 +56844,18 @@ curl -X GET http://zap/JSON/stats/view/allSitesStats/ - + - - + + + + + + + + +
keyPrefixcontextId query stringfalsenonetrueThe Context ID
userIdquerystringtrueThe User ID
@@ -43176,11 +56865,12 @@ curl -X GET http://zap/JSON/stats/view/allSitesStats/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43193,27 +56883,26 @@ curl -X GET http://zap/JSON/stats/view/allSitesStats/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewSiteStats

-

+

usersViewGetUserById

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/siteStats/?site=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/getUserById/?contextId=string&userId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/siteStats/?site=string");
+
URL obj = new URL("http://zap/JSON/users/view/getUserById/?contextId=string&userId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43229,37 +56918,21 @@ curl -X GET http://zap/JSON/stats/view/siteStats/?site
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/siteStats/', params={
-  'site': 'string'
+r = requests.get('http://zap/JSON/users/view/getUserById/', params={
+  'contextId': 'string',  'userId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/view/siteStats/',
-  params: {
-  'site' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/view/siteStats/

+

GET /JSON/users/view/getUserById/

-

Gets all of the global statistics, optionally filtered by a key prefix

+

Gets the data of the user with the given ID that belongs to the context with the given ID.

-

Parameters

+

Parameters

@@ -43271,18 +56944,18 @@ curl -X GET http://zap/JSON/stats/view/siteStats/?site - + - + - + - - + +
sitecontextId query string truenoneThe Context ID
keyPrefixuserId query stringfalsenonetrueThe User ID
@@ -43292,11 +56965,12 @@ curl -X GET http://zap/JSON/stats/view/siteStats/?sitedefault Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43309,27 +56983,26 @@ curl -X GET http://zap/JSON/stats/view/siteStats/?site - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewOptionStatsdHost

-

+

usersViewUsersList

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/optionStatsdHost/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/users/view/usersList/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdHost/");
+
URL obj = new URL("http://zap/JSON/users/view/usersList/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43345,34 +57018,37 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdHost/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/optionStatsdHost/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
+r = requests.get('http://zap/JSON/users/view/usersList/', headers = headers)
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdHost/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/users/view/usersList/

-p JSON.parse(result) +

Gets a list of users that belong to the context with the given ID, or all users if none provided.

-
-

GET /JSON/stats/view/optionStatsdHost/

+

Parameters

-

Gets the Statsd service hostname

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
contextIdquerystringfalseThe Context ID

Example responses

@@ -43380,11 +57056,12 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdHost/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43397,27 +57074,28 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdHost/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewOptionStatsdPort

-

+ +

wappalyzer

+

wappalyzerViewListAll

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/optionStatsdPort/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/wappalyzer/view/listAll/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPort/");
+
URL obj = new URL("http://zap/JSON/wappalyzer/view/listAll/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43433,34 +57111,17 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPort/
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/stats/view/optionStatsdPort/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdPort/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/wappalyzer/view/listAll/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/view/optionStatsdPort/

+

GET /JSON/wappalyzer/view/listAll/

-

Gets the Statsd service port

+

Lists all sites and their associated applications (technologies).

Example responses

@@ -43468,11 +57129,12 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPort/

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43485,27 +57147,26 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPort/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewOptionStatsdPrefix

-

+

wappalyzerViewListSite

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/optionStatsdPrefix/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/wappalyzer/view/listSite/?site=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPrefix/");
+
URL obj = new URL("http://zap/JSON/wappalyzer/view/listSite/?site=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43521,34 +57182,39 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPrefi
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/optionStatsdPrefix/', params={
-
+r = requests.get('http://zap/JSON/wappalyzer/view/listSite/', params={
+  'site': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
+print(r.json())
 
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdPrefix/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/wappalyzer/view/listSite/

-p JSON.parse(result) +

Lists all the applications (technologies) associated with a specific site.

-
-

GET /JSON/stats/view/optionStatsdPrefix/

+

Parameters

-

Gets the prefix to be applied to all stats sent to the configured Statsd service

+ + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
sitequerystringtruenone

Example responses

@@ -43556,11 +57222,12 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPrefi

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43573,27 +57240,26 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdPrefi - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewOptionInMemoryEnabled

-

+

wappalyzerViewListSites

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/optionInMemoryEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/wappalyzer/view/listSites/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/optionInMemoryEnabled/");
+
URL obj = new URL("http://zap/JSON/wappalyzer/view/listSites/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43609,34 +57275,17 @@ curl -X GET http://zap/JSON/stats/view/optionInMemoryEna
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/stats/view/optionInMemoryEnabled/', params={
-
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/stats/view/optionInMemoryEnabled/',
-  params: {
-  }, headers: headers
+r = requests.get('http://zap/JSON/wappalyzer/view/listSites/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/view/optionInMemoryEnabled/

+

GET /JSON/wappalyzer/view/listSites/

-

Returns 'true' if in memory statistics are enabled, otherwise returns 'false'

+

Lists all the sites recognized by the wappalyzer addon.

Example responses

@@ -43644,11 +57293,12 @@ curl -X GET http://zap/JSON/stats/view/optionInMemoryEna

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43661,27 +57311,28 @@ curl -X GET http://zap/JSON/stats/view/optionInMemoryEna - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsViewOptionStatsdEnabled

-

+ +

websocket

+

websocketActionSendTextMessage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/view/optionStatsdEnabled/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/action/sendTextMessage/?channelId=string&outgoing=string&message=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/view/optionStatsdEnabled/");
+
URL obj = new URL("http://zap/JSON/websocket/action/sendTextMessage/?channelId=string&outgoing=string&message=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43697,34 +57348,53 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdEnabl
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/view/optionStatsdEnabled/', params={
-
+r = requests.get('http://zap/JSON/websocket/action/sendTextMessage/', params={
+  'channelId': 'string',  'outgoing': 'string',  'message': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
+print(r.json())
 
-result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdEnabled/',
-  params: {
-  }, headers: headers
+
+

GET /JSON/websocket/action/sendTextMessage/

-p JSON.parse(result) +

Sends the specified message on the channel specified by channelId, if outgoing is 'True' then the message will be sent to the server and if it is 'False' then it will be sent to the client

- -

GET /JSON/stats/view/optionStatsdEnabled/

+

Parameters

-

Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameInTypeRequiredDescription
channelIdquerystringtruenone
outgoingquerystringtruenone
messagequerystringtruenone

Example responses

@@ -43732,11 +57402,12 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdEnabl

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43749,27 +57420,26 @@ curl -X GET http://zap/JSON/stats/view/optionStatsdEnabl - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsActionClearStats

-

+

websocketActionSetBreakTextMessage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/action/clearStats/ \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/action/setBreakTextMessage/?message=string&outgoing=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/action/clearStats/");
+
URL obj = new URL("http://zap/JSON/websocket/action/setBreakTextMessage/?message=string&outgoing=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43785,36 +57455,21 @@ curl -X GET http://zap/JSON/stats/action/clearStats/ 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/action/clearStats/', params={
-
+r = requests.get('http://zap/JSON/websocket/action/setBreakTextMessage/', params={
+  'message': 'string',  'outgoing': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/action/clearStats/',
-  params: {
-  }, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/action/clearStats/

+

GET /JSON/websocket/action/setBreakTextMessage/

-

Clears all of the statistics

+

Sets the text message for an intercepted websockets message

-

Parameters

+

Parameters

@@ -43826,10 +57481,17 @@ curl -X GET http://zap/JSON/stats/action/clearStats/ - + - + + + + + + + +
keyPrefixmessage query stringfalsetruenone
outgoingquerystringtrue none
@@ -43840,11 +57502,12 @@ curl -X GET http://zap/JSON/stats/action/clearStats/ default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43857,27 +57520,26 @@ curl -X GET http://zap/JSON/stats/action/clearStats/ - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsActionSetOptionStatsdHost

-

+

websocketViewBreakTextMessage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/action/setOptionStatsdHost/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/view/breakTextMessage/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdHost/?String=string");
+
URL obj = new URL("http://zap/JSON/websocket/view/breakTextMessage/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -43893,55 +57555,17 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/stats/action/setOptionStatsdHost/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdHost/',
-  params: {
-  'String' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/websocket/view/breakTextMessage/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/action/setOptionStatsdHost/

- -

Sets the Statsd service hostname, supply an empty string to stop using a Statsd service

- -

Parameters

+

GET /JSON/websocket/view/breakTextMessage/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Returns a text representation of an intercepted websockets message

Example responses

@@ -43949,11 +57573,12 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -43966,27 +57591,26 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsActionSetOptionStatsdPrefix

-

+

websocketViewChannels

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/view/channels/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string");
+
URL obj = new URL("http://zap/JSON/websocket/view/channels/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -44002,55 +57626,17 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPrefix/', params={
-  'String': 'string'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdPrefix/',
-  params: {
-  'String' => 'string'
-}, headers: headers
+r = requests.get('http://zap/JSON/websocket/view/channels/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/action/setOptionStatsdPrefix/

- -

Sets the prefix to be applied to all stats sent to the configured Statsd service

- -

Parameters

+

GET /JSON/websocket/view/channels/

- - - - - - - - - - - - - - - - -
NameInTypeRequiredDescription
Stringquerystringtruenone
+

Returns all of the registered web socket channels

Example responses

@@ -44058,11 +57644,12 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -44075,27 +57662,26 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsActionSetOptionInMemoryEnabled

-

+

websocketViewMessage

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=string \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/view/message/?channelId=string&messageId=string \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=string");
+
URL obj = new URL("http://zap/JSON/websocket/view/message/?channelId=string&messageId=string");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -44111,37 +57697,21 @@ curl -X GET http://zap/JSON/stats/action/setOptionInMemo
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
+  'Accept': 'application/json'
 }
 
-r = requests.get('http://zap/JSON/stats/action/setOptionInMemoryEnabled/', params={
-  'Boolean': 'string'
+r = requests.get('http://zap/JSON/websocket/view/message/', params={
+  'channelId': 'string',  'messageId': 'string'
 }, headers = headers)
 
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
-}
-
-result = RestClient.get 'http://zap/JSON/stats/action/setOptionInMemoryEnabled/',
-  params: {
-  'Boolean' => 'string'
-}, headers: headers
-
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/action/setOptionInMemoryEnabled/

+

GET /JSON/websocket/view/message/

-

Sets whether in memory statistics are enabled

+

Returns full details of the message specified by the channelId and messageId

-

Parameters

+

Parameters

@@ -44153,7 +57723,14 @@ curl -X GET http://zap/JSON/stats/action/setOptionInMemo - + + + + + + + + @@ -44167,11 +57744,12 @@ curl -X GET http://zap/JSON/stats/action/setOptionInMemo

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

BooleanchannelIdquerystringtruenone
messageId query string true
@@ -44184,27 +57762,26 @@ curl -X GET http://zap/JSON/stats/action/setOptionInMemo - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
-

statsActionSetOptionStatsdPort

-

+

websocketViewMessages

+

Code samples

# You can also use wget
-curl -X GET http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0 \
-  -H 'Accept: application/json' \
-  -H 'X-ZAP-API-Key: API_KEY'
+curl -X GET http://zap/JSON/websocket/view/messages/ \
+  -H 'Accept: application/json'
 
-
URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0");
+
URL obj = new URL("http://zap/JSON/websocket/view/messages/");
 HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 con.setRequestMethod("GET");
 int responseCode = con.getResponseCode();
@@ -44220,37 +57797,19 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd
 
 
import requests
 headers = {
-  'Accept': 'application/json',
-  'X-ZAP-API-Key': 'API_KEY'
-}
-
-r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPort/', params={
-  'Integer': '0'
-}, headers = headers)
-
-print r.json()
-
-
require 'rest-client'
-require 'json'
-
-headers = {
-  'Accept' => 'application/json',
-  'X-ZAP-API-Key' => 'API_KEY'
+  'Accept': 'application/json'
 }
 
-result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdPort/',
-  params: {
-  'Integer' => 'integer'
-}, headers: headers
+r = requests.get('http://zap/JSON/websocket/view/messages/', headers = headers)
 
-p JSON.parse(result)
+print(r.json())
 
 
-

GET /JSON/stats/action/setOptionStatsdPort/

+

GET /JSON/websocket/view/messages/

-

Sets the Statsd service port

+

Returns a list of all of the messages that meet the given criteria (all optional), where channelId is a channel identifier, start is the offset to start returning messages from (starting from 0), count is the number of messages to return (default no limit) and payloadPreviewLength is the maximum number bytes to return for the payload contents

-

Parameters

+

Parameters

@@ -44262,10 +57821,31 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd - + - - + + + + + + + + + + + + + + + + + + + + + + +
IntegerchannelId queryintegertruestringfalsenone
startquerystringfalsenone
countquerystringfalsenone
payloadPreviewLengthquerystringfalse none
@@ -44276,11 +57856,12 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd

default Response

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
-

Responses

+

Responses

@@ -44293,22 +57874,26 @@ curl -X GET http://zap/JSON/stats/action/setOptionStatsd - - + +
default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson

Schemas

-

Error

+

ErrorJson

-

+

+ + +

{
+  "code": "string",
   "message": "string",
-  "code": 100
+  "detail": "string"
 }
 
 

Properties

@@ -44322,17 +57907,26 @@ apiKeyHeader, apiKeyQuery -message +code string true none none -code -integer +message +string true none none + +detail +string +false +none +none + + +

undefined

diff --git a/docs/api/index.html b/docs/api/index.html index 20f6dd2864..181c3f08f6 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -344,43 +344,25 @@ API Catalogue
  • - Authentication -
  • -
  • - alert + accessControl
  • acsrf -
  • -
  • - pscan - +
  • +
  • + ajaxSpider + -
  • -
  • - search - -
  • -
  • - autoupdate - +
  • +
  • + alert +
  • - spider + alertFilter +
  • +
  • + ascan + -
  • -
  • - core - +
  • +
  • + authentication + +
  • +
  • + authorization + +
  • +
  • + automation + +
  • +
  • + autoupdate + +
  • +
  • + break + +
  • +
  • + client +
  • - params + codedx
  • - ascan + context +
  • +
  • + core + -
  • -
  • - context - -
  • -
  • - httpSessions - +
  • +
  • + dev + +
  • +
  • + exim +
  • - break + forcedUser +
  • +
  • + graphql +
  • - authentication + httpSessions
  • - authorization + keyboard
  • localProxies
  • - ruleConfig + network -
  • -
  • - sessionManagement - -
  • -
  • - users -
  • - forcedUser + openapi +
  • +
  • + paramDigger + +
  • +
  • + pnh +
  • - script + postman +
  • +
  • + pscan +
  • - stats + quickstartlaunch +
  • +
  • + replacer + +
  • +
  • + reports + +
  • +
  • + retest + +
  • +
  • + reveal + +
  • +
  • + revisit +
  • - Schemas + ruleConfig -
  • +
  • + ruleConfigActionResetRuleConfigValue +
  • +
  • + ruleConfigActionSetRuleConfigValue +
  • +
  • + ruleConfigViewAllRuleConfigs +
  • +
  • + ruleConfigViewRuleConfigValue +
  • + + +
  • + script + +
  • +
  • + search + +
  • +
  • + selenium + +
  • +
  • + sessionManagement + +
  • +
  • + soap + +
  • +
  • + spider + +
  • +
  • + stats + +
  • +
  • + users + +
  • +
  • + wappalyzer + +
  • +
  • + websocket + +
  • +
  • + Schemas + +
  • -

    Formatting

    -
      -
    • Capitalization:

      +

      Returns True if ZAP will break on both requests and responses

      -
        -
      • Use the Chicago manual for capitalization rules for the documentation.
      • -
      • For titles of a section, Capitalize of the first letter of each word except for the closed-class words -such as determiners, pronouns, conjunctions, and prepositions. Use the following link for guidance. +
        +

        Example responses

        -
          -
        • Recommended: The Spider Tutorial with APIs
        • -
      • -
      • For normal sentences don't capitalize random words in the middle of the sentences.
      • -
    • -
    • Number formatting

      +

      default Response

      + +
      {
      +  "code": "string",
      +  "message": "string",
      +  "detail": "string"
      +}
      +
      +

      Responses

      -
        -
      • In general spell out the number if it starts a sentence or is less than ten or an ordinal number. + + + + + + + + + + + + + + +
        StatusMeaningDescriptionSchema
        defaultDefaultError of JSON endpoints.ErrorJson
        -
          -
        • Recommended: Seventeen requests has been intercepted by the passive scanner.
        • -
        • Recommended: The passive scan showed nine warnings.
        • -
        • Recommended: The fifth alert was a high priority alert.
        • -
      • -
      • Use numerals for numbers higher than ten or fractions or unit prices. + +

        breakViewIsBreakRequest

        +

        -
          -
        • Recommended: The active scanner detected 24 issues.
        • -
        • Recommended: The scanner took 23.4 seconds to complete the crawling.
        • -
      • -
    • -
    -

    Punctuation

    -
      -
    • Commas

      +
      +

      Code samples

      +
      +
      # You can also use wget
      +curl -X GET http://zap/JSON/break/view/isBreakRequest/ \
      +  -H 'Accept: application/json'
       
      -
        -
      • Use oxford commas when writing a list of three or more items +
      URL obj = new URL("http://zap/JSON/break/view/isBreakRequest/");
      +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
      +con.setRequestMethod("GET");
      +int responseCode = con.getResponseCode();
      +BufferedReader in = new BufferedReader(
      +    new InputStreamReader(con.getInputStream()));
      +String inputLine;
      +StringBuffer response = new StringBuffer();
      +while ((inputLine = in.readLine()) != null) {
      +    response.append(inputLine);
      +}
      +in.close();
      +System.out.println(response.toString());
       
      -
        -
      • Recommended: The API can return the results in XML, JSON, and HTML.
      • -
      • Not Recommended: The API can return the results in XML, JSON and HTML.
      • -
    • -
    -
  • Periods

    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
     
    -
      -
    • Do not add period to headings or titles.
    • -
    • Avoid using periods at the end of URLs. Try to modify the sentence so the URL can be in the middle of the sentence.
    • -
  • - -

    Markdown Syntax

    -

    The API docs are created using standard markdown files. This section contains information regarding the syntax and linting of the Markdown files. -Refer to the Slate documentation. Also refer to this -document to properly lint the Markdown files.

    -

    Writing Code

    -

    Inline Code

    +r = requests.get('http://zap/JSON/break/view/isBreakRequest/', headers = headers) -

    Put `backticks` around the following symbols when used in text:

    +print(r.json()) -
      -
    • Data types: json, xml, html
    • -
    • File name: test.py, /path-to-your-data/xml/example-name
    • -
    +
    +

    GET /JSON/break/view/isBreakRequest/

    -

    Code Block

    +

    Returns True if ZAP will break on requests

    -

    Use three back ticks to open and close a code block. Specify the programming language after the first backtick group. -The documentation currently supports python, java, and shell languages.

    +
    +

    Example responses

    -

    code_example

    -

    Troubleshooting

    -

    This section explains how to troubleshoot issues that might occur when interacting with the ZAP API.

    -

    Enable Useful Dev Options

    -

    While developing scripts/programs that interact with ZAP API it's recommended that the following ZAP API options -are enabled, to have more information about possible errors:

    +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    -
      -
    • Report permission errors via API
    • -
    • Report error details via API
    • -
    + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    -

    The API response will then contain the details about why the API request was rejected or was not successful. -

    -

    Common Errors

    Wrong API Key or Address Not Allowed

    //org.zaproxy.clientapi.core.ClientApiException: java.net.SocketException: Unexpected end of file from server
    -//  at org.zaproxy.clientapi.core.ClientApi.callApiDom(ClientApi.java:366)
    -//  at org.zaproxy.clientapi.core.ClientApi.callApi(ClientApi.java:350)
    -//  at org.zaproxy.clientapi.gen.Spider.scan(Spider.java:242)
    -
    requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=8080): Max retries exceeded with 
    -url: http://zap/JSON/spider/action/scan/?apikey=changeMe&url=https%3A%2F%2Fexample.com 
    -(Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))
    -
    -

    By default, ZAP will close the connection without a response if an API request is not from an allowed address or the API key is wrong. -If you get exceptions similar to the following ensure that the API client is using the correct API key and that the address is allowed.

    -

    No Connection to ZAP

    //org.zaproxy.clientapi.core.ClientApiException: java.net.ConnectException: Connection refused: connect
    -//  at org.zaproxy.clientapi.core.ClientApi.callApiDom(ClientApi.java:366)
    -//  at org.zaproxy.clientapi.core.ClientApi.callApi(ClientApi.java:350)
    -//  at org.zaproxy.clientapi.gen.Spider.scan(Spider.java:242)
    -//  at ZAP_tests.Spider.main(Spider.java:25)
    -
    requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=8080): Max retries exceeded with 
    -url: http://zap/JSON/spider/action/scan/?apikey=changeMe&url=https%3A%2F%2Fexample.com 
    -(Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 
    -0x101be78e0>: Failed to establish a new connection: [Errno 61] Connection refused')))
    -
    -

    There are several reasons that the API client might not be able to connect to ZAP:

    + +

    breakViewIsBreakResponse

    +

    -
      -
    • ZAP is not yet started, some clients might have methods to wait for ZAP;
    • -
    • ZAP is not listening on the address, for example, if the API client is connecting from an external machine then ZAP will have to listen on the external address (or all addresses 0.0.0.0)
    • -
    • The API client is not configured with correct address/port;
    • -
    -

    Error: No Implementor

    -

    If you come across the No Implementor Error while invoking the APIs: Check the necessary add-on or component is installed and enabled. -(For example if you receive "no_implementor" in relation to Ajax Spider calls, perhaps the Ajax Spider add-on isn't installed.)

    -

    API Catalogue

    -

    Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

    +

    Code samples

    +
    # You can also use wget
    +curl -X GET http://zap/JSON/break/view/isBreakResponse/ \
    +  -H 'Accept: application/json'
     
    -

    The HTTP API for controlling and accessing ZAP.

    +
    URL obj = new URL("http://zap/JSON/break/view/isBreakResponse/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
     
    -

    Base URLs:

    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
     
    -
      -
    • http://zap

    • -
    • http://{address}:{port}

      +r = requests.get('http://zap/JSON/break/view/isBreakResponse/', headers = headers) -
        -
      • address - The address ZAP is listening on. Default: 127.0.0.1
      • -
      • port - The port ZAP is bound to. Default: 8080
      • -
    • -
    +print(r.json()) -

    Email: ZAP User Group Web: ZAP User Group -License: Apache 2.0

    -

    Authentication

    -
      -
    • API Key (apiKeyHeader)

      +
    +

    GET /JSON/break/view/isBreakResponse/

    -
      -
    • Parameter Name: X-ZAP-API-Key, in: header.
    • -
    -
  • API Key (apiKeyQuery)

    +

    Returns True if ZAP will break on responses

    -
      -
    • Parameter Name: apikey, in: query.
    • -
  • - +
    +

    Example responses

    -

    alert

    -

    alertViewAlert

    -

    +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    + + + +

    client

    +

    clientActionReportEvent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/alert/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/client/action/reportEvent/?eventJson=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/alert/");
    +
    URL obj = new URL("http://zap/JSON/client/action/reportEvent/?eventJson=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -3704,36 +23400,19 @@ 

    alertViewAlert

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/alert/', params={
    -
    +r = requests.get('http://zap/JSON/client/action/reportEvent/', params={
    +  'eventJson': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/alert/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/alert/

    - -

    Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method

    +

    GET /JSON/client/action/reportEvent/

    -

    Parameters

    +

    Parameters

    @@ -3745,10 +23424,10 @@

    Parameters

    - + - - + +
    ideventJson queryintegerfalsestringtrue none
    @@ -3759,11 +23438,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -3776,27 +23456,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertViewAlerts

    -

    +

    clientActionReportObject

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/alerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/client/action/reportObject/?objectJson=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/alerts/");
    +
    URL obj = new URL("http://zap/JSON/client/action/reportObject/?objectJson=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -3812,36 +23491,19 @@ 

    alertViewAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/alerts/', params={
    -
    +r = requests.get('http://zap/JSON/client/action/reportObject/', params={
    +  'objectJson': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/alerts/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/alerts/

    - -

    Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts

    +

    GET /JSON/client/action/reportObject/

    -

    Parameters

    +

    Parameters

    @@ -3853,31 +23515,10 @@

    Parameters

    - + - - - - - - - - - - - - - - - - - - - - - - +
    baseurlobjectJson query stringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    riskIdquerystringfalsetrue none
    @@ -3888,11 +23529,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -3905,27 +23547,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertViewAlertsSummary

    -

    +

    clientActionReportZestScript

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/alertsSummary/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/client/action/reportZestScript/?scriptJson=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/alertsSummary/");
    +
    URL obj = new URL("http://zap/JSON/client/action/reportZestScript/?scriptJson=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -3941,36 +23582,19 @@ 

    alertViewAlertsSummary

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/alertsSummary/', params={
    -
    +r = requests.get('http://zap/JSON/client/action/reportZestScript/', params={
    +  'scriptJson': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/alertsSummary/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/alertsSummary/

    +

    GET /JSON/client/action/reportZestScript/

    -

    Gets number of alerts grouped by each risk level, optionally filtering by URL

    - -

    Parameters

    +

    Parameters

    @@ -3982,10 +23606,10 @@

    Parameters

    - + - +
    baseurlscriptJson query stringfalsetrue none
    @@ -3996,11 +23620,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -4013,27 +23638,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertViewNumberOfAlerts

    -

    +

    clientActionReportZestStatement

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/numberOfAlerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/client/action/reportZestStatement/?statementJson=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/numberOfAlerts/");
    +
    URL obj = new URL("http://zap/JSON/client/action/reportZestStatement/?statementJson=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4049,36 +23673,19 @@ 

    alertViewNumberOfAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/numberOfAlerts/', params={
    -
    +r = requests.get('http://zap/JSON/client/action/reportZestStatement/', params={
    +  'statementJson': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/numberOfAlerts/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/numberOfAlerts/

    +

    GET /JSON/client/action/reportZestStatement/

    -

    Gets the number of alerts, optionally filtering by URL or riskId

    - -

    Parameters

    +

    Parameters

    @@ -4090,17 +23697,10 @@

    Parameters

    - + - - - - - - - - +
    baseurlstatementJson query stringfalsenone
    riskIdquerystringfalsetrue none
    @@ -4111,11 +23711,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -4128,27 +23729,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertViewAlertsByRisk

    -

    + +

    codedx

    +

    codedxActionGenerateAndUpload

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/alertsByRisk/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/codedx/action/generateAndUpload/?serverUrl=string&codeDxApiKey=string&projectId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/alertsByRisk/");
    +
    URL obj = new URL("http://zap/JSON/codedx/action/generateAndUpload/?serverUrl=string&codeDxApiKey=string&projectId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4164,36 +23766,19 @@ 

    alertViewAlertsByRisk

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/alertsByRisk/', params={
    -
    +r = requests.get('http://zap/JSON/codedx/action/generateAndUpload/', params={
    +  'serverUrl': 'string',  'codeDxApiKey': 'string',  'projectId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/alertsByRisk/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/alertsByRisk/

    +

    GET /JSON/codedx/action/generateAndUpload/

    -

    Gets a summary of the alerts, optionally filtered by a 'url'. If 'recurse' is true then all alerts that apply to urls that start with the specified 'url' will be returned, otherwise only those on exactly the same 'url' (ignoring url parameters)

    - -

    Parameters

    +

    Parameters

    @@ -4205,16 +23790,37 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -4226,11 +23832,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    urlserverUrlquerystringtruenone
    codeDxApiKeyquerystringtruenone
    projectIdquerystringtruenone
    fingerprint query string false none
    recurseacceptPermanently querybooleanstring false none
    @@ -4243,27 +23850,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertViewAlertCountsByRisk

    -

    +

    codedxActionUploadReport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/view/alertCountsByRisk/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/codedx/action/uploadReport/?filePath=string&serverUrl=string&codeDxApiKey=string&projectId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/view/alertCountsByRisk/");
    +
    URL obj = new URL("http://zap/JSON/codedx/action/uploadReport/?filePath=string&serverUrl=string&codeDxApiKey=string&projectId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4279,36 +23885,19 @@ 

    alertViewAlertCountsByRisk

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/view/alertCountsByRisk/', params={
    -
    +r = requests.get('http://zap/JSON/codedx/action/uploadReport/', params={
    +  'filePath': 'string',  'serverUrl': 'string',  'codeDxApiKey': 'string',  'projectId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/view/alertCountsByRisk/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/view/alertCountsByRisk/

    +

    GET /JSON/codedx/action/uploadReport/

    -

    Gets a count of the alerts, optionally filtered as per alertsPerRisk

    - -

    Parameters

    +

    Parameters

    @@ -4320,16 +23909,44 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -4341,11 +23958,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    urlfilePathquerystringtruenone
    serverUrlquerystringtruenone
    codeDxApiKeyquerystringtruenone
    projectIdquerystringtruenone
    fingerprint query string false none
    recurseacceptPermanently querybooleanstring false none
    @@ -4358,27 +23976,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertActionDeleteAllAlerts

    -

    +

    codedxViewGenerateReport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/action/deleteAllAlerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/codedx/view/generateReport/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/action/deleteAllAlerts/");
    +
    URL obj = new URL("http://zap/JSON/codedx/view/generateReport/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4394,34 +24011,15 @@ 

    alertActionDeleteAllAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/alert/action/deleteAllAlerts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/alert/action/deleteAllAlerts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/codedx/view/generateReport/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/action/deleteAllAlerts/

    - -

    Deletes all alerts of the current session.

    +

    GET /JSON/codedx/view/generateReport/

    Example responses

    @@ -4429,11 +24027,12 @@

    alertActionDeleteAllAlerts

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -4446,27 +24045,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    alertActionDeleteAlert

    -

    + +

    context

    +

    contextActionExcludeAllContextTechnologies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/alert/action/deleteAlert/?id=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/alert/action/deleteAlert/?id=0");
    +
    URL obj = new URL("http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4482,37 +24082,21 @@ 

    alertActionDeleteAlert

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/alert/action/deleteAlert/', params={
    -  'id': '0'
    +r = requests.get('http://zap/JSON/context/action/excludeAllContextTechnologies/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/alert/action/deleteAlert/',
    -  params: {
    -  'id' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/alert/action/deleteAlert/

    +

    GET /JSON/context/action/excludeAllContextTechnologies/

    -

    Deletes the alert with the given ID.

    +

    Excludes all built in technologies from a context

    -

    Parameters

    +

    Parameters

    @@ -4524,11 +24108,11 @@

    Parameters

    - + - + - +
    idcontextName queryintegerstring truenoneThe name of the context
    @@ -4538,11 +24122,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -4555,29 +24140,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    acsrf

    -

    acsrfViewOptionTokensNames

    -

    +

    contextActionExcludeContextTechnologies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/acsrf/view/optionTokensNames/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/acsrf/view/optionTokensNames/");
    +
    URL obj = new URL("http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4593,34 +24175,46 @@ 

    acsrfViewOptionTokensNames

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/acsrf/view/optionTokensNames/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/excludeContextTechnologies/', params={
    +  'contextName': 'string',  'technologyNames': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/acsrf/view/optionTokensNames/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/excludeContextTechnologies/

    -p JSON.parse(result) +

    Excludes technologies with the given names, separated by a comma, from a context

    -
    -

    GET /JSON/acsrf/view/optionTokensNames/

    +

    Parameters

    -

    Lists the names of all anti-CSRF tokens

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context
    technologyNamesquerystringtruenone

    Example responses

    @@ -4628,11 +24222,12 @@

    acsrfViewOptionTokensNames

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -4645,27 +24240,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    acsrfActionAddOptionToken

    -

    +

    contextActionExcludeFromContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/acsrf/action/addOptionToken/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/acsrf/action/addOptionToken/?String=string");
    +
    URL obj = new URL("http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4681,37 +24275,21 @@ 

    acsrfActionAddOptionToken

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/acsrf/action/addOptionToken/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/context/action/excludeFromContext/', params={
    +  'contextName': 'string',  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/acsrf/action/addOptionToken/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/acsrf/action/addOptionToken/

    +

    GET /JSON/context/action/excludeFromContext/

    -

    Adds an anti-CSRF token with the given name, enabled by default

    +

    Add exclude regex to context

    -

    Parameters

    +

    Parameters

    @@ -4723,7 +24301,14 @@

    Parameters

    - + + + + + + + + @@ -4737,11 +24322,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    StringcontextNamequerystringtrueThe name of the context
    regex query string true
    @@ -4754,27 +24340,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    acsrfActionRemoveOptionToken

    -

    +

    contextActionExportContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/acsrf/action/removeOptionToken/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/acsrf/action/removeOptionToken/?String=string");
    +
    URL obj = new URL("http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4790,37 +24375,21 @@ 

    acsrfActionRemoveOptionToken

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/acsrf/action/removeOptionToken/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/context/action/exportContext/', params={
    +  'contextName': 'string',  'contextFile': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/acsrf/action/removeOptionToken/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/acsrf/action/removeOptionToken/

    +

    GET /JSON/context/action/exportContext/

    -

    Removes the anti-CSRF token with the given name

    +

    Exports the context with the given name to a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

    -

    Parameters

    +

    Parameters

    @@ -4832,7 +24401,14 @@

    Parameters

    - + + + + + + + + @@ -4846,11 +24422,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    StringcontextNamequerystringtrueThe name of the context
    contextFile query string true
    @@ -4863,27 +24440,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    acsrfOtherGenForm

    -

    +

    contextActionImportContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/acsrf/other/genForm/?hrefId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/importContext/?contextFile=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/acsrf/other/genForm/?hrefId=0");
    +
    URL obj = new URL("http://zap/JSON/context/action/importContext/?contextFile=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -4899,37 +24475,21 @@ 

    acsrfOtherGenForm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/acsrf/other/genForm/', params={
    -  'hrefId': '0'
    +r = requests.get('http://zap/JSON/context/action/importContext/', params={
    +  'contextFile': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/acsrf/other/genForm/',
    -  params: {
    -  'hrefId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/acsrf/other/genForm/

    +

    GET /JSON/context/action/importContext/

    -

    Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP

    +

    Imports a context from a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

    -

    Parameters

    +

    Parameters

    @@ -4941,9 +24501,9 @@

    Parameters

    - + - + @@ -4955,11 +24515,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    hrefIdcontextFile queryintegerstring true none
    @@ -4972,29 +24533,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    pscan

    -

    pscanViewScanOnlyInScope

    -

    +

    contextActionIncludeAllContextTechnologies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/view/scanOnlyInScope/");
    +
    URL obj = new URL("http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5010,34 +24568,39 @@ 

    pscanViewScanOnlyInScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/view/scanOnlyInScope/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/includeAllContextTechnologies/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/view/scanOnlyInScope/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/includeAllContextTechnologies/

    -p JSON.parse(result) +

    Includes all built in technologies in to a context

    - -

    GET /JSON/pscan/view/scanOnlyInScope/

    +

    Parameters

    -

    Tells whether or not the passive scan should be performed only on messages that are in scope.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context

    Example responses

    @@ -5045,11 +24608,12 @@

    pscanViewScanOnlyInScope

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5062,27 +24626,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanViewRecordsToScan

    -

    +

    contextActionIncludeContextTechnologies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/view/recordsToScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/view/recordsToScan/");
    +
    URL obj = new URL("http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5098,34 +24661,46 @@ 

    pscanViewRecordsToScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/view/recordsToScan/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/includeContextTechnologies/', params={
    +  'contextName': 'string',  'technologyNames': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/view/recordsToScan/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/includeContextTechnologies/

    -p JSON.parse(result) +

    Includes technologies with the given names, separated by a comma, to a context

    - -

    GET /JSON/pscan/view/recordsToScan/

    +

    Parameters

    -

    The number of records the passive scanner still has to scan

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context
    technologyNamesquerystringtruenone

    Example responses

    @@ -5133,11 +24708,12 @@

    pscanViewRecordsToScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5150,27 +24726,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanViewScanners

    -

    +

    contextActionIncludeInContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/view/scanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/view/scanners/");
    +
    URL obj = new URL("http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5186,34 +24761,46 @@ 

    pscanViewScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/view/scanners/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/includeInContext/', params={
    +  'contextName': 'string',  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/pscan/view/scanners/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/includeInContext/

    -p JSON.parse(result) +

    Add include regex to context

    - -

    GET /JSON/pscan/view/scanners/

    +

    Parameters

    -

    Lists all passive scanners with its ID, name, enabled state and alert threshold.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context
    regexquerystringtruenone

    Example responses

    @@ -5221,11 +24808,12 @@

    pscanViewScanners

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5238,27 +24826,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanViewCurrentRule

    -

    +

    contextActionNewContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/view/currentRule/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/newContext/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/view/currentRule/");
    +
    URL obj = new URL("http://zap/JSON/context/action/newContext/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5274,34 +24861,39 @@ 

    pscanViewCurrentRule

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/view/currentRule/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/newContext/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/view/currentRule/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/newContext/

    -p JSON.parse(result) +

    Creates a new context with the given name in the current session

    - -

    GET /JSON/pscan/view/currentRule/

    +

    Parameters

    -

    Show information about the passive scan rule currently being run (if any).

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context

    Example responses

    @@ -5309,11 +24901,12 @@

    pscanViewCurrentRule

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5326,27 +24919,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanViewMaxAlertsPerRule

    -

    +

    contextActionRemoveContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/removeContext/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/view/maxAlertsPerRule/");
    +
    URL obj = new URL("http://zap/JSON/context/action/removeContext/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5362,34 +24954,39 @@ 

    pscanViewMaxAlertsPerRule

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/view/maxAlertsPerRule/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/removeContext/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/view/maxAlertsPerRule/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/removeContext/

    -p JSON.parse(result) +

    Removes a context in the current session

    - -

    GET /JSON/pscan/view/maxAlertsPerRule/

    +

    Parameters

    -

    Gets the maximum number of alerts a passive scan rule should raise.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context

    Example responses

    @@ -5397,11 +24994,12 @@

    pscanViewMaxAlertsPerRule

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5414,27 +25012,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionSetEnabled

    -

    +

    contextActionSetContextCheckingStrategy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/setEnabled/?enabled=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/setContextCheckingStrategy/?contextName=string&checkingStrategy=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/setEnabled/?enabled=true");
    +
    URL obj = new URL("http://zap/JSON/context/action/setContextCheckingStrategy/?contextName=string&checkingStrategy=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5450,37 +25047,21 @@ 

    pscanActionSetEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/setEnabled/', params={
    -  'enabled': 'true'
    +r = requests.get('http://zap/JSON/context/action/setContextCheckingStrategy/', params={
    +  'contextName': 'string',  'checkingStrategy': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/action/setEnabled/',
    -  params: {
    -  'enabled' => 'boolean'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/setEnabled/

    +

    GET /JSON/context/action/setContextCheckingStrategy/

    -

    Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).

    +

    Set the checking strategy for a context - this defines how ZAP checks that a request is authenticated

    -

    Parameters

    +

    Parameters

    @@ -5492,11 +25073,53 @@

    Parameters

    - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    enabledcontextName querybooleanstring truenoneThe name of the context
    checkingStrategyquerystringtrueOne of EACH_RESP, EACH_REQ, EACH_REQ_RESP, POLL_URL
    pollUrlquerystringfalseThe URL for ZAP to poll, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
    pollDataquerystringfalseThe POST data to supply to the pollUrl, option and only takes effect if checkingStrategy = POLL_URL
    pollHeadersquerystringfalseAny additional headers that need to be added to the poll request, separated by '\n' characters, only takes effect if checkingStrategy = POLL_URL
    pollFrequencyquerystringfalseAn integer greater than zero, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
    pollFrequencyUnitsquerystringfalseOne of REQUESTS, SECONDS, must be supplied if checkingStrategy = POLL_URL, otherwise ignored
    @@ -5506,11 +25129,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5523,27 +25147,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionSetScanOnlyInScope

    -

    +

    contextActionSetContextInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=true");
    +
    URL obj = new URL("http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5559,37 +25182,21 @@ 

    pscanActionSetScanOnlyInScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/setScanOnlyInScope/', params={
    -  'onlyInScope': 'true'
    +r = requests.get('http://zap/JSON/context/action/setContextInScope/', params={
    +  'contextName': 'string',  'booleanInScope': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/action/setScanOnlyInScope/',
    -  params: {
    -  'onlyInScope' => 'boolean'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/setScanOnlyInScope/

    +

    GET /JSON/context/action/setContextInScope/

    -

    Sets whether or not the passive scan should be performed only on messages that are in scope.

    +

    Sets a context to in scope (contexts are in scope by default)

    -

    Parameters

    +

    Parameters

    @@ -5601,9 +25208,16 @@

    Parameters

    - + - + + + + + + + + @@ -5615,11 +25229,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    onlyInScopecontextName querybooleanstringtrueThe name of the context
    booleanInScopequerystring true none
    @@ -5632,27 +25247,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionEnableAllScanners

    -

    +

    contextActionSetContextRegexs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/enableAllScanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/enableAllScanners/");
    +
    URL obj = new URL("http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5668,34 +25282,53 @@ 

    pscanActionEnableAllScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/enableAllScanners/', params={
    -
    +r = requests.get('http://zap/JSON/context/action/setContextRegexs/', params={
    +  'contextName': 'string',  'incRegexs': 'string',  'excRegexs': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/pscan/action/enableAllScanners/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/action/setContextRegexs/

    -p JSON.parse(result) +

    Set the regexs to include and exclude for a context, both supplied as JSON string arrays

    - -

    GET /JSON/pscan/action/enableAllScanners/

    +

    Parameters

    -

    Enables all passive scanners

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context
    incRegexsquerystringtruenone
    excRegexsquerystringtruenone

    Example responses

    @@ -5703,11 +25336,12 @@

    pscanActionEnableAllScanners

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5720,27 +25354,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionDisableAllScanners

    -

    +

    contextViewContext

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/disableAllScanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/context/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/disableAllScanners/");
    +
    URL obj = new URL("http://zap/JSON/context/view/context/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5756,34 +25389,39 @@ 

    pscanActionDisableAllScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/disableAllScanners/', params={
    -
    +r = requests.get('http://zap/JSON/context/view/context/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/pscan/action/disableAllScanners/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/context/view/context/

    -p JSON.parse(result) +

    List the information about the named context

    - -

    GET /JSON/pscan/action/disableAllScanners/

    +

    Parameters

    -

    Disables all passive scanners

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextNamequerystringtrueThe name of the context

    Example responses

    @@ -5791,11 +25429,12 @@

    pscanActionDisableAllScanners

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5808,27 +25447,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionEnableScanners

    -

    +

    contextViewContextList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/enableScanners/?ids=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/contextList/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/enableScanners/?ids=0");
    +
    URL obj = new URL("http://zap/JSON/context/view/contextList/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5844,55 +25482,17 @@ 

    pscanActionEnableScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/pscan/action/enableScanners/', params={
    -  'ids': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/pscan/action/enableScanners/',
    -  params: {
    -  'ids' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/context/view/contextList/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/enableScanners/

    - -

    Enables all passive scanners with the given IDs (comma separated list of IDs)

    - -

    Parameters

    +

    GET /JSON/context/view/contextList/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idsqueryintegertruenone
    +

    List context names of current session

    Example responses

    @@ -5900,11 +25500,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -5917,27 +25518,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionDisableScanners

    -

    +

    contextViewExcludeRegexs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/disableScanners/?ids=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/excludeRegexs/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/disableScanners/?ids=0");
    +
    URL obj = new URL("http://zap/JSON/context/view/excludeRegexs/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -5953,37 +25553,21 @@ 

    pscanActionDisableScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/disableScanners/', params={
    -  'ids': '0'
    +r = requests.get('http://zap/JSON/context/view/excludeRegexs/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/action/disableScanners/',
    -  params: {
    -  'ids' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/disableScanners/

    +

    GET /JSON/context/view/excludeRegexs/

    -

    Disables all passive scanners with the given IDs (comma separated list of IDs)

    +

    List excluded regexs for context

    -

    Parameters

    +

    Parameters

    @@ -5995,11 +25579,11 @@

    Parameters

    - + - + - +
    idscontextName queryintegerstring truenoneThe name of the context
    @@ -6009,11 +25593,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6026,27 +25611,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionSetScannerAlertThreshold

    -

    +

    contextViewExcludedTechnologyList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=0&alertThreshold=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/excludedTechnologyList/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=0&alertThreshold=string");
    +
    URL obj = new URL("http://zap/JSON/context/view/excludedTechnologyList/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6062,38 +25646,21 @@ 

    pscanActionSetScannerAlertThreshold

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/setScannerAlertThreshold/', params={
    -  'id': '0',  'alertThreshold': 'string'
    +r = requests.get('http://zap/JSON/context/view/excludedTechnologyList/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/action/setScannerAlertThreshold/',
    -  params: {
    -  'id' => 'integer',
    -'alertThreshold' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/setScannerAlertThreshold/

    +

    GET /JSON/context/view/excludedTechnologyList/

    -

    Sets the alert threshold of the passive scanner with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH

    +

    Lists the names of all technologies excluded from a context

    -

    Parameters

    +

    Parameters

    @@ -6105,18 +25672,11 @@

    Parameters

    - - - - - - - - + - +
    idqueryintegertruenone
    alertThresholdcontextName query string truenoneThe name of the context
    @@ -6126,11 +25686,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6143,27 +25704,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    pscanActionSetMaxAlertsPerRule

    -

    +

    contextViewIncludeRegexs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/includeRegexs/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=0");
    +
    URL obj = new URL("http://zap/JSON/context/view/includeRegexs/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6179,37 +25739,21 @@ 

    pscanActionSetMaxAlertsPerRule

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/pscan/action/setMaxAlertsPerRule/', params={
    -  'maxAlerts': '0'
    +r = requests.get('http://zap/JSON/context/view/includeRegexs/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/pscan/action/setMaxAlertsPerRule/',
    -  params: {
    -  'maxAlerts' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/pscan/action/setMaxAlertsPerRule/

    +

    GET /JSON/context/view/includeRegexs/

    -

    Sets the maximum number of alerts a passive scan rule should raise.

    +

    List included regexs for context

    -

    Parameters

    +

    Parameters

    @@ -6221,11 +25765,11 @@

    Parameters

    - + - + - +
    maxAlertscontextName queryintegerstring truenoneThe name of the context
    @@ -6235,11 +25779,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6252,29 +25797,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    search

    -

    searchViewUrlsByUrlRegex

    -

    +

    contextViewIncludedTechnologyList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/includedTechnologyList/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/urlsByUrlRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/context/view/includedTechnologyList/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6290,37 +25832,21 @@ 

    searchViewUrlsByUrlRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/urlsByUrlRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/context/view/includedTechnologyList/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/search/view/urlsByUrlRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/urlsByUrlRegex/

    +

    GET /JSON/context/view/includedTechnologyList/

    -

    Returns the URLs of the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Lists the names of all technologies included in a context

    -

    Parameters

    +

    Parameters

    @@ -6332,32 +25858,11 @@

    Parameters

    - + - - - - - - - - - - - - - - - - - - - - - - +
    regexcontextName query string truenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenoneThe name of the context
    @@ -6367,11 +25872,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6384,27 +25890,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewUrlsByRequestRegex

    -

    +

    contextViewTechnologyList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/urlsByRequestRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/technologyList/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/urlsByRequestRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/context/view/technologyList/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6420,76 +25925,17 @@ 

    searchViewUrlsByRequestRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/search/view/urlsByRequestRegex/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/search/view/urlsByRequestRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/context/view/technologyList/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/urlsByRequestRegex/

    - -

    Returns the URLs of the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    - -

    Parameters

    +

    GET /JSON/context/view/technologyList/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    regexquerystringtruenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    +

    Lists the names of all built in technologies

    Example responses

    @@ -6497,11 +25943,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6514,27 +25961,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewUrlsByResponseRegex

    -

    +

    contextViewUrls

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/urlsByResponseRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/context/view/urls/?contextName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/urlsByResponseRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/context/view/urls/?contextName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6550,37 +25996,21 @@ 

    searchViewUrlsByResponseRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/urlsByResponseRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/context/view/urls/', params={
    +  'contextName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/search/view/urlsByResponseRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/urlsByResponseRegex/

    +

    GET /JSON/context/view/urls/

    -

    Returns the URLs of the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Lists the URLs accessed through/by ZAP, that belong to the context with the given name.

    -

    Parameters

    +

    Parameters

    @@ -6592,32 +26022,11 @@

    Parameters

    - + - - - - - - - - - - - - - - - - - - - - - - +
    regexcontextName query string truenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenoneThe name of the context
    @@ -6627,11 +26036,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6644,27 +26054,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewUrlsByHeaderRegex

    -

    + +

    core

    +

    coreActionAccessUrl

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/accessUrl/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/accessUrl/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6680,37 +26091,21 @@ 

    searchViewUrlsByHeaderRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/urlsByHeaderRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/core/action/accessUrl/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/search/view/urlsByHeaderRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/urlsByHeaderRegex/

    +

    GET /JSON/core/action/accessUrl/

    -

    Returns the URLs of the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Convenient and simple action to access a URL, optionally following redirections. Returns the request sent and response received and followed redirections, if any. Other actions are available which offer more control on what is sent, like, 'sendRequest' or 'sendHarRequest'.

    -

    Parameters

    +

    Parameters

    @@ -6722,33 +26117,19 @@

    Parameters

    - + - + - - - - - - - - - - - - - -
    regexurl query string true none
    baseurlfollowRedirects query string false none
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    @@ -6757,11 +26138,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -6774,27 +26156,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewMessagesByUrlRegex

    -

    +

    coreActionAddProxyChainExcludedDomain

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/messagesByUrlRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/messagesByUrlRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6810,37 +26191,21 @@ 

    searchViewMessagesByUrlRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/messagesByUrlRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/core/action/addProxyChainExcludedDomain/', params={
    +  'value': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/search/view/messagesByUrlRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/messagesByUrlRegex/

    +

    GET /JSON/core/action/addProxyChainExcludedDomain/

    -

    Returns the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Use the API endpoints in the 'network' component instead.

    -

    Parameters

    +

    Parameters

    @@ -6852,30 +26217,23 @@

    Parameters

    - + - + - - - - - - - - + - + @@ -6887,11 +26245,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    regexvalue query string true none
    baseurlisRegex query string false none
    startqueryintegerfalsenone
    countisEnabled queryintegerstring false none
    @@ -6904,27 +26263,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewMessagesByRequestRegex

    -

    +

    coreActionClearExcludedFromProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/messagesByRequestRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/clearExcludedFromProxy/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/messagesByRequestRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/clearExcludedFromProxy/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -6940,76 +26298,17 @@ 

    searchViewMessagesByRequestRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/messagesByRequestRegex/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +r = requests.get('http://zap/JSON/core/action/clearExcludedFromProxy/', headers = headers)
     
    -result = RestClient.get 'http://zap/JSON/search/view/messagesByRequestRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/messagesByRequestRegex/

    - -

    Returns the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    - -

    Parameters

    +

    GET /JSON/core/action/clearExcludedFromProxy/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    regexquerystringtruenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    +

    Clears the regexes of URLs excluded from the local proxies.

    Example responses

    @@ -7017,11 +26316,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7034,27 +26334,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewMessagesByResponseRegex

    -

    +

    coreActionDeleteAlert

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/messagesByResponseRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/deleteAlert/?id=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/messagesByResponseRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/deleteAlert/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7070,37 +26369,21 @@ 

    searchViewMessagesByResponseRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/search/view/messagesByResponseRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/core/action/deleteAlert/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/search/view/messagesByResponseRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/messagesByResponseRegex/

    +

    GET /JSON/core/action/deleteAlert/

    -

    Returns the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Use the API endpoint with the same name in the 'alert' component instead.

    -

    Parameters

    +

    Parameters

    @@ -7112,33 +26395,12 @@

    Parameters

    - + - - - - - - - - - - - - - - - - - - - - -
    regexid query string true none
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    @@ -7147,11 +26409,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7164,27 +26427,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchViewMessagesByHeaderRegex

    -

    +

    coreActionDeleteAllAlerts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/deleteAllAlerts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/deleteAllAlerts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7200,76 +26462,17 @@ 

    searchViewMessagesByHeaderRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/search/view/messagesByHeaderRegex/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/search/view/messagesByHeaderRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/action/deleteAllAlerts/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/search/view/messagesByHeaderRegex/

    - -

    Returns the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    - -

    Parameters

    +

    GET /JSON/core/action/deleteAllAlerts/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    regexquerystringtruenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    +

    Use the API endpoint with the same name in the 'alert' component instead.

    Example responses

    @@ -7277,11 +26480,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7294,27 +26498,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchOtherHarByUrlRegex

    -

    +

    coreActionDeleteSiteNode

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/search/other/harByUrlRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/deleteSiteNode/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/search/other/harByUrlRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/deleteSiteNode/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7330,37 +26533,21 @@ 

    searchOtherHarByUrlRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/search/other/harByUrlRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/core/action/deleteSiteNode/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/search/other/harByUrlRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/search/other/harByUrlRegex/

    +

    GET /JSON/core/action/deleteSiteNode/

    -

    Returns the HTTP messages, in HAR format, that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).

    -

    Parameters

    +

    Parameters

    @@ -7372,30 +26559,23 @@

    Parameters

    - + - + - - - - - - - - + - + @@ -7407,11 +26587,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    regexurl query string true none
    baseurlmethod query string false none
    startqueryintegerfalsenone
    countpostData queryintegerstring false none
    @@ -7424,27 +26605,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchOtherHarByRequestRegex

    -

    +

    coreActionDisableAllProxyChainExcludedDomains

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/search/other/harByRequestRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/search/other/harByRequestRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7460,76 +26640,17 @@ 

    searchOtherHarByRequestRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/OTHER/search/other/harByRequestRegex/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/OTHER/search/other/harByRequestRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/search/other/harByRequestRegex/

    - -

    Returns the HTTP messages, in HAR format, that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    - -

    Parameters

    +

    GET /JSON/core/action/disableAllProxyChainExcludedDomains/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    regexquerystringtruenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -7537,11 +26658,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7554,27 +26676,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchOtherHarByResponseRegex

    -

    +

    coreActionDisableClientCertificate

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/search/other/harByResponseRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/disableClientCertificate/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/search/other/harByResponseRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/disableClientCertificate/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7590,88 +26711,101 @@ 

    searchOtherHarByResponseRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/OTHER/search/other/harByResponseRegex/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/OTHER/search/other/harByResponseRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/action/disableClientCertificate/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/search/other/harByResponseRegex/

    +

    GET /JSON/core/action/disableClientCertificate/

    -

    Returns the HTTP messages, in HAR format, that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Use the API endpoints in the 'network' component instead.

    -

    Parameters

    +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    regexquerystringtruenone
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    coreActionEnableAllProxyChainExcludedDomains

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/core/action/enableAllProxyChainExcludedDomains/

    + +

    Use the API endpoints in the 'network' component instead.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7684,27 +26818,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    searchOtherHarByHeaderRegex

    -

    +

    coreActionEnablePKCS12ClientCertificate

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/search/other/harByHeaderRegex/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/search/other/harByHeaderRegex/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7720,37 +26853,21 @@ 

    searchOtherHarByHeaderRegex

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/search/other/harByHeaderRegex/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/core/action/enablePKCS12ClientCertificate/', params={
    +  'filePath': 'string',  'password': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/search/other/harByHeaderRegex/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/search/other/harByHeaderRegex/

    +

    GET /JSON/core/action/enablePKCS12ClientCertificate/

    -

    Returns the HTTP messages, in HAR format, that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    +

    Use the API endpoints in the 'network' component instead.

    -

    Parameters

    +

    Parameters

    @@ -7762,30 +26879,23 @@

    Parameters

    - + - + - - - - - - - - + - + - + @@ -7797,11 +26907,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    regexfilePath query string true none
    baseurlpassword query stringfalsenone
    startqueryintegerfalsetrue none
    countindex queryintegerstring false none
    @@ -7814,29 +26925,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    autoupdate

    -

    autoupdateViewLatestVersionNumber

    -

    +

    coreActionExcludeFromProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/latestVersionNumber/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/excludeFromProxy/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/latestVersionNumber/");
    +
    URL obj = new URL("http://zap/JSON/core/action/excludeFromProxy/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7852,34 +26960,39 @@ 

    autoupdateViewLatestVersionNumber

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/latestVersionNumber/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/excludeFromProxy/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/latestVersionNumber/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/excludeFromProxy/

    -p JSON.parse(result) +

    Adds a regex of URLs that should be excluded from the local proxies.

    -
    -

    GET /JSON/autoupdate/view/latestVersionNumber/

    +

    Parameters

    -

    Returns the latest version number

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    regexquerystringtruenone

    Example responses

    @@ -7887,11 +27000,12 @@

    autoupdateViewLatestVersionNumber

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7904,27 +27018,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewIsLatestVersion

    -

    +

    coreActionGenerateRootCA

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/isLatestVersion/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/generateRootCA/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/isLatestVersion/");
    +
    URL obj = new URL("http://zap/JSON/core/action/generateRootCA/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -7940,34 +27053,17 @@ 

    autoupdateViewIsLatestVersion

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/autoupdate/view/isLatestVersion/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/isLatestVersion/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/action/generateRootCA/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/view/isLatestVersion/

    +

    GET /JSON/core/action/generateRootCA/

    -

    Returns 'true' if ZAP is on the latest version

    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -7975,11 +27071,12 @@

    autoupdateViewIsLatestVersion

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -7992,27 +27089,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewInstalledAddons

    -

    +

    coreActionLoadSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/installedAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/loadSession/?name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/installedAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/loadSession/?name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8028,34 +27124,39 @@ 

    autoupdateViewInstalledAddons

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/installedAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/loadSession/', params={
    +  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/installedAddons/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/loadSession/

    -p JSON.parse(result) +

    Loads the session with the given name. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    -
    -

    GET /JSON/autoupdate/view/installedAddons/

    +

    Parameters

    -

    Return a list of all of the installed add-ons

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    namequerystringtruenone

    Example responses

    @@ -8063,11 +27164,12 @@

    autoupdateViewInstalledAddons

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8080,27 +27182,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewLocalAddons

    -

    +

    coreActionModifyProxyChainExcludedDomain

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/localAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/localAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8116,34 +27217,60 @@ 

    autoupdateViewLocalAddons

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/localAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/modifyProxyChainExcludedDomain/', params={
    +  'idx': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/localAddons/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/modifyProxyChainExcludedDomain/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/autoupdate/view/localAddons/

    +

    Parameters

    -

    Returns a list with all local add-ons, installed or not.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idxquerystringtruenone
    valuequerystringfalsenone
    isRegexquerystringfalsenone
    isEnabledquerystringfalsenone

    Example responses

    @@ -8151,11 +27278,12 @@

    autoupdateViewLocalAddons

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8168,27 +27296,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewNewAddons

    -

    +

    coreActionNewSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/newAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/newSession/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/newAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/newSession/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8204,34 +27331,44 @@ 

    autoupdateViewNewAddons

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/newAddons/', params={
    +r = requests.get('http://zap/JSON/core/action/newSession/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/newAddons/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/newSession/

    -p JSON.parse(result) +

    Creates a new session, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    - -

    GET /JSON/autoupdate/view/newAddons/

    +

    Parameters

    -

    Return a list of any add-ons that have been added to the Marketplace since the last check for updates

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    namequerystringfalsenone
    overwritequerystringfalsenone

    Example responses

    @@ -8239,11 +27376,12 @@

    autoupdateViewNewAddons

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8256,27 +27394,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewUpdatedAddons

    -

    +

    coreActionRemoveProxyChainExcludedDomain

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/updatedAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/updatedAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8292,34 +27429,39 @@ 

    autoupdateViewUpdatedAddons

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/updatedAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/removeProxyChainExcludedDomain/', params={
    +  'idx': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/updatedAddons/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/removeProxyChainExcludedDomain/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/autoupdate/view/updatedAddons/

    +

    Parameters

    -

    Return a list of any add-ons that have been changed in the Marketplace since the last check for updates

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idxquerystringtruenone

    Example responses

    @@ -8327,11 +27469,12 @@

    autoupdateViewUpdatedAddons

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8344,27 +27487,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewMarketplaceAddons

    -

    +

    coreActionRunGarbageCollection

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/marketplaceAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/runGarbageCollection/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/marketplaceAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/runGarbageCollection/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8380,34 +27522,15 @@ 

    autoupdateViewMarketplaceAddons

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/autoupdate/view/marketplaceAddons/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/marketplaceAddons/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/action/runGarbageCollection/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/view/marketplaceAddons/

    - -

    Return a list of all of the add-ons on the ZAP Marketplace (this information is read once and then cached)

    +

    GET /JSON/core/action/runGarbageCollection/

    Example responses

    @@ -8415,11 +27538,12 @@

    autoupdateViewMarketplaceAddons

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8432,27 +27556,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionAddonDirectories

    -

    +

    coreActionSaveSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionAddonDirectories/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/saveSession/?name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionAddonDirectories/");
    +
    URL obj = new URL("http://zap/JSON/core/action/saveSession/?name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8468,32 +27591,46 @@ 

    autoupdateViewOptionAddonDirectori

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionAddonDirectories/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/saveSession/', params={
    +  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/saveSession/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionAddonDirectories/', - params: { - }, headers: headers +

    Saves the session.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionAddonDirectories/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    namequerystringtrueThe name (or path) of the session. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.
    overwritequerystringfalseIf existing files should be overwritten, attempting to overwrite the files of the session already in use/saved will lead to an error ("already_exists").

    Example responses

    @@ -8501,11 +27638,12 @@

    autoupdateViewOptionAddonDirectori

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8518,27 +27656,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionDayLastChecked

    -

    +

    coreActionSendRequest

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionDayLastChecked/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/sendRequest/?request=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastChecked/");
    +
    URL obj = new URL("http://zap/JSON/core/action/sendRequest/?request=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8554,32 +27691,46 @@ 

    autoupdateViewOptionDayLastChecked

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastChecked/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/sendRequest/', params={
    +  'request': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/sendRequest/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastChecked/', - params: { - }, headers: headers +

    Sends the HTTP request, optionally following redirections. Returns the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/autoupdate/view/optionDayLastChecked/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    requestquerystringtruenone
    followRedirectsquerystringfalsenone

    Example responses

    @@ -8587,11 +27738,12 @@

    autoupdateViewOptionDayLastCheckeddefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8604,27 +27756,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionDayLastInstallWarned

    -

    +

    coreActionSetHomeDirectory

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setHomeDirectory/?dir=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setHomeDirectory/?dir=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8640,32 +27791,37 @@ 

    autoupdateViewOptionDayLastIns

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setHomeDirectory/', params={
    +  'dir': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastInstallWarned/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/setHomeDirectory/

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionDayLastInstallWarned/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    dirquerystringtruenone

    Example responses

    @@ -8673,11 +27829,12 @@

    autoupdateViewOptionDayLastIns

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8690,27 +27847,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionDayLastUpdateWarned

    -

    +

    coreActionSetMode

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setMode/?mode=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setMode/?mode=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8726,32 +27882,39 @@ 

    autoupdateViewOptionDayLastUpda

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setMode/', params={
    +  'mode': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setMode/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDayLastUpdateWarned/', - params: { - }, headers: headers +

    Sets the mode, which may be one of [safe, protect, standard, attack]

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionDayLastUpdateWarned/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    modequerystringtruenone

    Example responses

    @@ -8759,11 +27922,12 @@

    autoupdateViewOptionDayLastUpda

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8776,27 +27940,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionDownloadDirectory

    -

    +

    coreActionSetOptionAlertOverridesFilePath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionDownloadDirectory/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionAlertOverridesFilePath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadDirectory/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionAlertOverridesFilePath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8812,32 +27975,37 @@ 

    autoupdateViewOptionDownloadDirec

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadDirectory/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/core/action/setOptionAlertOverridesFilePath/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionAlertOverridesFilePath/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDownloadDirectory/', - params: { - }, headers: headers +

    Sets (or clears, if empty) the path to the file with alert overrides.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionDownloadDirectory/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    filePathquerystringfalsenone

    Example responses

    @@ -8845,11 +28013,12 @@

    autoupdateViewOptionDownloadDirec

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8862,27 +28031,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionCheckAddonUpdates

    -

    +

    coreActionSetOptionDefaultUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8898,32 +28066,39 @@ 

    autoupdateViewOptionCheckAddonUpd

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionDefaultUserAgent/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionDefaultUserAgent/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionCheckAddonUpdates/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionCheckAddonUpdates/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Stringquerystringtruenone

    Example responses

    @@ -8931,11 +28106,12 @@

    autoupdateViewOptionCheckAddonUpd

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -8948,27 +28124,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionCheckOnStart

    -

    +

    coreActionSetOptionDnsTtlSuccessfulQueries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionCheckOnStart/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionCheckOnStart/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -8984,32 +28159,39 @@ 

    autoupdateViewOptionCheckOnStart

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionCheckOnStart/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionDnsTtlSuccessfulQueries/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionCheckOnStart/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionCheckOnStart/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Integerqueryintegertruenone

    Example responses

    @@ -9017,11 +28199,12 @@

    autoupdateViewOptionCheckOnStart

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9034,27 +28217,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionDownloadNewRelease

    -

    +

    coreActionSetOptionHttpStateEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionDownloadNewRelease/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionDownloadNewRelease/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9070,32 +28252,39 @@ 

    autoupdateViewOptionDownloadNewR

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionDownloadNewRelease/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionHttpStateEnabled/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionHttpStateEnabled/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionDownloadNewRelease/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionDownloadNewRelease/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Booleanquerybooleantruenone

    Example responses

    @@ -9103,11 +28292,12 @@

    autoupdateViewOptionDownloadNewR

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9120,27 +28310,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionInstallAddonUpdates

    -

    +

    coreActionSetOptionMaximumAlertInstances

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9156,32 +28345,39 @@ 

    autoupdateViewOptionInstallAddo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionMaximumAlertInstances/', params={
    +  'numberOfInstances': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionMaximumAlertInstances/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionInstallAddonUpdates/', - params: { - }, headers: headers +

    Sets the maximum number of alert instances to include in a report. A value of zero is treated as unlimited.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionInstallAddonUpdates/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    numberOfInstancesquerystringtruenone

    Example responses

    @@ -9189,11 +28385,12 @@

    autoupdateViewOptionInstallAddo

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9206,27 +28403,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionInstallScannerRules

    -

    +

    coreActionSetOptionMergeRelatedAlerts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionInstallScannerRules/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionInstallScannerRules/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9242,32 +28438,39 @@ 

    autoupdateViewOptionInstallScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionInstallScannerRules/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionMergeRelatedAlerts/', params={
    +  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionMergeRelatedAlerts/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionInstallScannerRules/', - params: { - }, headers: headers +

    Sets whether or not related alerts will be merged in any reports generated.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionInstallScannerRules/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    enabledquerystringtruenone

    Example responses

    @@ -9275,11 +28478,12 @@

    autoupdateViewOptionInstallScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9292,27 +28496,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionReportAlphaAddons

    -

    +

    coreActionSetOptionProxyChainName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionReportAlphaAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainName/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportAlphaAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainName/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9328,32 +28531,39 @@ 

    autoupdateViewOptionReportAlphaAd

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionReportAlphaAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainName/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionProxyChainName/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportAlphaAddons/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionReportAlphaAddons/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Stringquerystringtruenone

    Example responses

    @@ -9361,11 +28571,12 @@

    autoupdateViewOptionReportAlphaAd

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9378,27 +28589,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionReportBetaAddons

    -

    +

    coreActionSetOptionProxyChainPassword

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionReportBetaAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportBetaAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9414,32 +28624,39 @@ 

    autoupdateViewOptionReportBetaAddo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionReportBetaAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPassword/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionProxyChainPassword/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportBetaAddons/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionReportBetaAddons/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Stringquerystringtruenone

    Example responses

    @@ -9447,11 +28664,12 @@

    autoupdateViewOptionReportBetaAddo

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9464,27 +28682,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateViewOptionReportReleaseAddons

    -

    +

    coreActionSetOptionProxyChainPort

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/view/optionReportReleaseAddons/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/view/optionReportReleaseAddons/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9500,32 +28717,39 @@ 

    autoupdateViewOptionReportRelea

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/view/optionReportReleaseAddons/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPort/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/action/setOptionProxyChainPort/

    -result = RestClient.get 'http://zap/JSON/autoupdate/view/optionReportReleaseAddons/', - params: { - }, headers: headers +

    Use the API endpoints in the 'network' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/autoupdate/view/optionReportReleaseAddons/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Integerqueryintegertruenone

    Example responses

    @@ -9533,11 +28757,12 @@

    autoupdateViewOptionReportRelea

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9550,27 +28775,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionDownloadLatestRelease

    -

    +

    coreActionSetOptionProxyChainPrompt

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/downloadLatestRelease/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/downloadLatestRelease/");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9586,34 +28810,39 @@ 

    autoupdateActionDownloadLatestRel

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/downloadLatestRelease/', params={
    -
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPrompt/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/downloadLatestRelease/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/action/setOptionProxyChainPrompt/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/autoupdate/action/downloadLatestRelease/

    +

    Parameters

    -

    Downloads the latest release, if any

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Booleanquerybooleantruenone

    Example responses

    @@ -9621,11 +28850,12 @@

    autoupdateActionDownloadLatestRel

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -9638,27 +28868,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionInstallAddon

    -

    +

    coreActionSetOptionProxyChainRealm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/installAddon/?id=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/installAddon/?id=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9674,37 +28903,21 @@ 

    autoupdateActionInstallAddon

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/installAddon/', params={
    -  'id': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainRealm/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/installAddon/',
    -  params: {
    -  'id' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/installAddon/

    +

    GET /JSON/core/action/setOptionProxyChainRealm/

    -

    Installs or updates the specified add-on, returning when complete (ie not asynchronously)

    +

    Use the API endpoints in the 'network' component instead.

    -

    Parameters

    +

    Parameters

    @@ -9716,7 +28929,7 @@

    Parameters

    - + @@ -9730,11 +28943,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    idString query string true
    @@ -9747,27 +28961,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionInstallLocalAddon

    -

    +

    coreActionSetOptionProxyChainSkipName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/installLocalAddon/?file=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/installLocalAddon/?file=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9783,35 +28996,21 @@ 

    autoupdateActionInstallLocalAddon

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/installLocalAddon/', params={
    -  'file': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainSkipName/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/installLocalAddon/',
    -  params: {
    -  'file' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/installLocalAddon/

    +

    GET /JSON/core/action/setOptionProxyChainSkipName/

    -

    Parameters

    +

    Option no longer in effective use.

    + +

    Parameters

    @@ -9823,7 +29022,7 @@

    Parameters

    - + @@ -9837,11 +29036,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    fileString query string true
    @@ -9854,27 +29054,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionUninstallAddon

    -

    +

    coreActionSetOptionProxyChainUserName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/uninstallAddon/?id=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/uninstallAddon/?id=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9890,37 +29089,21 @@ 

    autoupdateActionUninstallAddon

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/uninstallAddon/', params={
    -  'id': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionProxyChainUserName/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/uninstallAddon/',
    -  params: {
    -  'id' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/uninstallAddon/

    +

    GET /JSON/core/action/setOptionProxyChainUserName/

    -

    Uninstalls the specified add-on

    +

    Use the API endpoints in the 'network' component instead.

    -

    Parameters

    +

    Parameters

    @@ -9932,7 +29115,7 @@

    Parameters

    - + @@ -9946,11 +29129,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    idString query string true
    @@ -9963,27 +29147,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionCheckAddonUpdates

    -

    +

    coreActionSetOptionSingleCookieRequestHeader

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -9999,35 +29182,21 @@ 

    autoupdateActionSetOptionChe

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionCheckAddonUpdates/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionCheckAddonUpdates/

    +

    GET /JSON/core/action/setOptionSingleCookieRequestHeader/

    -

    Parameters

    +

    Option no longer in effective use.

    + +

    Parameters

    @@ -10041,7 +29210,7 @@

    Parameters

    - + @@ -10053,11 +29222,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    Boolean querystringboolean true none
    @@ -10070,27 +29240,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionCheckOnStart

    -

    +

    coreActionSetOptionTimeoutInSecs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionCheckOnStart/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10106,35 +29275,21 @@ 

    autoupdateActionSetOptionCheckOnS

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionCheckOnStart/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionTimeoutInSecs/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionCheckOnStart/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionCheckOnStart/

    +

    GET /JSON/core/action/setOptionTimeoutInSecs/

    -

    Parameters

    +

    Use the API endpoints in the 'network' component instead.

    + +

    Parameters

    @@ -10146,9 +29301,9 @@

    Parameters

    - + - + @@ -10160,11 +29315,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanInteger querystringinteger true none
    @@ -10177,27 +29333,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionDownloadNewRelease

    -

    +

    coreActionSetOptionUseProxyChain

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10213,35 +29368,21 @@ 

    autoupdateActionSetOptionDo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChain/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionDownloadNewRelease/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionDownloadNewRelease/

    +

    GET /JSON/core/action/setOptionUseProxyChain/

    -

    Parameters

    +

    Use the API endpoints in the 'network' component instead.

    + +

    Parameters

    @@ -10255,7 +29396,7 @@

    Parameters

    - + @@ -10267,11 +29408,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    Boolean querystringboolean true none
    @@ -10284,27 +29426,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionInstallAddonUpdates

    -

    +

    coreActionSetOptionUseProxyChainAuth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10320,35 +29461,21 @@ 

    autoupdateActionSetOptionI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChainAuth/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionInstallAddonUpdates/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionInstallAddonUpdates/

    +

    GET /JSON/core/action/setOptionUseProxyChainAuth/

    -

    Parameters

    +

    Use the API endpoints in the 'network' component instead.

    + +

    Parameters

    @@ -10362,7 +29489,7 @@

    Parameters

    - + @@ -10374,11 +29501,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    Boolean querystringboolean true none
    @@ -10391,27 +29519,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionInstallScannerRules

    -

    +

    coreActionSetOptionUseSocksProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/setOptionUseSocksProxy/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/setOptionUseSocksProxy/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10427,35 +29554,21 @@ 

    autoupdateActionSetOptionI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/core/action/setOptionUseSocksProxy/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionInstallScannerRules/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionInstallScannerRules/

    +

    GET /JSON/core/action/setOptionUseSocksProxy/

    -

    Parameters

    +

    Use the API endpoints in the 'network' component instead.

    + +

    Parameters

    @@ -10469,9 +29582,9 @@

    Parameters

    - + - +
    Boolean querystringboolean truenonetrue if the SOCKS proxy should be used, false otherwise.
    @@ -10481,11 +29594,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -10498,27 +29612,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionReportAlphaAddons

    -

    +

    coreActionShutdown

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/shutdown/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/shutdown/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10534,53 +29647,17 @@ 

    autoupdateActionSetOptionRep

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportAlphaAddons/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/action/shutdown/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionReportAlphaAddons/

    - -

    Parameters

    +

    GET /JSON/core/action/shutdown/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    Shuts down ZAP

    Example responses

    @@ -10588,11 +29665,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -10605,27 +29683,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionReportBetaAddons

    -

    +

    coreActionSnapshotSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/action/snapshotSession/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/core/action/snapshotSession/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10641,35 +29718,19 @@ 

    autoupdateActionSetOptionRepo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportBetaAddons/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/action/snapshotSession/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/autoupdate/action/setOptionReportBetaAddons/

    +

    GET /JSON/core/action/snapshotSession/

    -

    Parameters

    +

    Snapshots the session, optionally with the given name, and overwriting existing files. If no name is specified the name of the current session with a timestamp appended is used. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    + +

    Parameters

    @@ -10681,10 +29742,17 @@

    Parameters

    - + - + + + + + + + +
    Booleanname query stringtruefalsenone
    overwritequerystringfalse none
    @@ -10695,11 +29763,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -10712,27 +29781,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    autoupdateActionSetOptionReportReleaseAddons

    -

    +

    coreOtherFileDownload

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/fileDownload/?fileName=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/?Boolean=string");
    +
    URL obj = new URL("http://zap/OTHER/core/other/fileDownload/?fileName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10748,35 +29816,21 @@ 

    autoupdateActionSetOptionR

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/OTHER/core/other/fileDownload/', params={
    +  'fileName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/autoupdate/action/setOptionReportReleaseAddons/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/autoupdate/action/setOptionReportReleaseAddons/

    +

    GET /OTHER/core/other/fileDownload/

    -

    Parameters

    +

    Download a file from the transfer directory

    + +

    Parameters

    @@ -10788,25 +29842,19 @@

    Parameters

    - + - +
    BooleanfileName query string truenoneThe name of the file, may include subdirectories

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -10819,29 +29867,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + - -

    spider

    -

    spiderViewStatus

    -

    +

    coreOtherFileUpload

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/status/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/fileUpload/?fileName=string&fileContents=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/status/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/fileUpload/?fileName=string&fileContents=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10857,34 +29904,21 @@ 

    spiderViewStatus

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/status/', params={
    -
    +r = requests.get('http://zap/OTHER/core/other/fileUpload/', params={
    +  'fileName': 'string',  'fileContents': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/view/status/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/status/

    +

    GET /OTHER/core/other/fileUpload/

    -

    Parameters

    +

    Upload a file to the transfer directory. Only POST requests accepted with encodings of "multipart/form-data" or "application/x-www-form-urlencoded".

    + +

    Parameters

    @@ -10896,25 +29930,26 @@

    Parameters

    - + - - - + + + + + + + + + +
    scanIdfileName queryintegerfalsenonestringtrueThe name of the file, may include subdirectories.
    fileContentsquerystringtrueThe contents of the file.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -10927,27 +29962,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewResults

    -

    +

    coreOtherHtmlreport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/results/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/htmlreport/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/results/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/htmlreport/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -10963,64 +29999,23 @@ 

    spiderViewResults

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/results/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/results/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/core/other/htmlreport/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/results/

    - -

    Parameters

    +

    GET /OTHER/core/other/htmlreport/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegerfalsenone
    +

    Use the 'generate' API endpoint the 'reports' component instead.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11033,27 +30028,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewFullResults

    -

    +

    coreOtherJsonreport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/fullResults/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/jsonreport/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/fullResults/?scanId=0");
    +
    URL obj = new URL("http://zap/OTHER/core/other/jsonreport/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11069,65 +30065,23 @@ 

    spiderViewFullResults

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/fullResults/', params={
    -  'scanId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/fullResults/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/OTHER/core/other/jsonreport/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/fullResults/

    - -

    Parameters

    +

    GET /OTHER/core/other/jsonreport/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegertruenone
    +

    Use the 'generate' API endpoint the 'reports' component instead.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11140,27 +30094,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewScans

    -

    +

    coreOtherMdreport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/scans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/mdreport/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/scans/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/mdreport/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11176,44 +30131,23 @@ 

    spiderViewScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/scans/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/scans/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/core/other/mdreport/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/scans/

    +

    GET /OTHER/core/other/mdreport/

    + +

    Use the 'generate' API endpoint the 'reports' component instead.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11226,27 +30160,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewExcludedFromScan

    -

    +

    coreOtherMessageHar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/excludedFromScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/messageHar/?id=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/excludedFromScan/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/messageHar/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11262,46 +30197,45 @@ 

    spiderViewExcludedFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/excludedFromScan/', params={
    -
    +r = requests.get('http://zap/OTHER/core/other/messageHar/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.content)
     
    -result = RestClient.get 'http://zap/JSON/spider/view/excludedFromScan/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /OTHER/core/other/messageHar/

    -p JSON.parse(result) +

    Use the API endpoints in the 'exim' add-on instead.

    -
    -

    GET /JSON/spider/view/excludedFromScan/

    +

    Parameters

    -

    Gets the regexes of URLs excluded from the spider scans.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idquerystringtruenone

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11314,27 +30248,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewAllUrls

    -

    +

    coreOtherMessagesHar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/allUrls/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/messagesHar/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/allUrls/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/messagesHar/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11350,46 +30285,57 @@ 

    spiderViewAllUrls

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/allUrls/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/OTHER/core/other/messagesHar/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.content)
     
    -result = RestClient.get 'http://zap/JSON/spider/view/allUrls/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /OTHER/core/other/messagesHar/

    -p JSON.parse(result) +

    Use the API endpoints in the 'exim' add-on instead.

    - -

    GET /JSON/spider/view/allUrls/

    +

    Parameters

    -

    Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalsenone
    startquerystringfalsenone
    countquerystringfalsenone

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11402,27 +30348,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewAddedNodes

    -

    +

    coreOtherMessagesHarById

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/addedNodes/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/messagesHarById/?ids=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/addedNodes/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/messagesHarById/?ids=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11438,36 +30385,21 @@ 

    spiderViewAddedNodes

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/addedNodes/', params={
    -
    +r = requests.get('http://zap/OTHER/core/other/messagesHarById/', params={
    +  'ids': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/view/addedNodes/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/addedNodes/

    +

    GET /OTHER/core/other/messagesHarById/

    -

    Returns a list of the names of the nodes added to the Sites tree by the specified scan.

    +

    Use the API endpoints in the 'exim' add-on instead.

    -

    Parameters

    +

    Parameters

    @@ -11479,25 +30411,19 @@

    Parameters

    - + - - + +
    scanIdids queryintegerfalsestringtrue none

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11510,27 +30436,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewDomainsAlwaysInScope

    -

    +

    coreOtherProxy.pac

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/domainsAlwaysInScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/proxy.pac/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/domainsAlwaysInScope/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/proxy.pac/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11546,46 +30473,89 @@ 

    spiderViewDomainsAlwaysInScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/domainsAlwaysInScope/', params={
    +r = requests.get('http://zap/OTHER/core/other/proxy.pac/', headers = headers)
     
    -}, headers = headers)
    +print(r.content)
    +
    +
    +

    GET /OTHER/core/other/proxy.pac/

    + +

    Use the API endpoints in the 'network' component instead.

    + +
    +

    Example responses

    +
    + +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of OTHER endpoints.None
    + +

    Response Schema

    + + +

    coreOtherRootcert

    +

    -print r.json() +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/OTHER/core/other/rootcert/ \
    +  -H 'Accept: */*'
     
    -
    require 'rest-client'
    -require 'json'
    +
    URL obj = new URL("http://zap/OTHER/core/other/rootcert/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
     
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/domainsAlwaysInScope/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/core/other/rootcert/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/domainsAlwaysInScope/

    +

    GET /OTHER/core/other/rootcert/

    -

    Gets all the domains that are always in scope. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11598,27 +30568,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewOptionDomainsAlwaysInScope

    -

    +

    coreOtherSendHarRequest

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/sendHarRequest/?request=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScope/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/sendHarRequest/?request=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11634,46 +30605,52 @@ 

    spiderViewOptionDomainsAlwaysInSco

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScope/', params={
    -
    +r = requests.get('http://zap/OTHER/core/other/sendHarRequest/', params={
    +  'request': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.content)
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionDomainsAlwaysInScope/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /OTHER/core/other/sendHarRequest/

    -p JSON.parse(result) +

    Use the API endpoints in the 'exim' add-on instead.

    - -

    GET /JSON/spider/view/optionDomainsAlwaysInScope/

    +

    Parameters

    -

    Use view domainsAlwaysInScope instead.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    requestquerystringtruenone
    followRedirectsquerystringfalsenone

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11686,27 +30663,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewOptionDomainsAlwaysInScopeEnabled

    -

    +

    coreOtherSetproxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/setproxy/?proxy=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/setproxy/?proxy=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11722,46 +30700,45 @@ 

    spiderViewOptionDomainsAlwa

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/', params={
    -
    +r = requests.get('http://zap/OTHER/core/other/setproxy/', params={
    +  'proxy': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.content)
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /OTHER/core/other/setproxy/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/spider/view/optionDomainsAlwaysInScopeEnabled/

    +

    Parameters

    -

    Use view domainsAlwaysInScope instead.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    proxyquerystringtruenone

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11774,27 +30751,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewOptionHandleParameters

    -

    +

    coreOtherXmlreport

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionHandleParameters/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/core/other/xmlreport/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionHandleParameters/");
    +
    URL obj = new URL("http://zap/OTHER/core/other/xmlreport/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11810,44 +30788,23 @@ 

    spiderViewOptionHandleParameters

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionHandleParameters/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionHandleParameters/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/core/other/xmlreport/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/view/optionHandleParameters/

    +

    GET /OTHER/core/other/xmlreport/

    + +

    Use the 'generate' API endpoint the 'reports' component instead.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -11860,27 +30817,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderViewOptionMaxChildren

    -

    +

    coreViewAlert

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionMaxChildren/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/alert/?id=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxChildren/");
    +
    URL obj = new URL("http://zap/JSON/core/view/alert/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11896,34 +30854,39 @@ 

    spiderViewOptionMaxChildren

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionMaxChildren/', params={
    -
    +r = requests.get('http://zap/JSON/core/view/alert/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/view/optionMaxChildren/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/view/alert/

    -p JSON.parse(result) +

    Use the API endpoint with the same name in the 'alert' component instead.

    - -

    GET /JSON/spider/view/optionMaxChildren/

    +

    Parameters

    -

    Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idquerystringtruenone

    Example responses

    @@ -11931,11 +30894,12 @@

    spiderViewOptionMaxChildren

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -11948,27 +30912,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionMaxDepth

    -

    +

    coreViewAlerts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionMaxDepth/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/alerts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxDepth/");
    +
    URL obj = new URL("http://zap/JSON/core/view/alerts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11984,34 +30947,58 @@ 

    spiderViewOptionMaxDepth

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionMaxDepth/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +r = requests.get('http://zap/JSON/core/view/alerts/', headers = headers)
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionMaxDepth/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/view/alerts/

    -p JSON.parse(result) +

    Use the API endpoint with the same name in the 'alert' component instead.

    - -

    GET /JSON/spider/view/optionMaxDepth/

    +

    Parameters

    -

    Gets the maximum depth the spider can crawl, 0 if unlimited.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    riskIdquerystringfalsenone

    Example responses

    @@ -12019,11 +31006,12 @@

    spiderViewOptionMaxDepth

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12036,27 +31024,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionMaxDuration

    -

    +

    coreViewAlertsSummary

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionMaxDuration/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/alertsSummary/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxDuration/");
    +
    URL obj = new URL("http://zap/JSON/core/view/alertsSummary/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12072,32 +31059,37 @@ 

    spiderViewOptionMaxDuration

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionMaxDuration/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/core/view/alertsSummary/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/view/alertsSummary/

    -result = RestClient.get 'http://zap/JSON/spider/view/optionMaxDuration/', - params: { - }, headers: headers +

    Use the API endpoint with the same name in the 'alert' component instead.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/spider/view/optionMaxDuration/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.

    Example responses

    @@ -12105,11 +31097,12 @@

    spiderViewOptionMaxDuration

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12122,27 +31115,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionMaxParseSizeBytes

    -

    +

    coreViewChildNodes

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionMaxParseSizeBytes/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/childNodes/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxParseSizeBytes/");
    +
    URL obj = new URL("http://zap/JSON/core/view/childNodes/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12158,34 +31150,37 @@ 

    spiderViewOptionMaxParseSizeBytes

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionMaxParseSizeBytes/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/core/view/childNodes/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionMaxParseSizeBytes/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/view/childNodes/

    -p JSON.parse(result) +

    Gets the child nodes underneath the specified URL in the Sites tree

    -
    -

    GET /JSON/spider/view/optionMaxParseSizeBytes/

    +

    Parameters

    -

    Gets the maximum size, in bytes, that a response might have to be parsed.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    urlquerystringfalsenone

    Example responses

    @@ -12193,11 +31188,12 @@

    spiderViewOptionMaxParseSizeBytes

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12210,27 +31206,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionMaxScansInUI

    -

    +

    coreViewExcludedFromProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionMaxScansInUI/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/excludedFromProxy/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxScansInUI/");
    +
    URL obj = new URL("http://zap/JSON/core/view/excludedFromProxy/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12246,32 +31241,17 @@ 

    spiderViewOptionMaxScansInUI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionMaxScansInUI/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionMaxScansInUI/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/excludedFromProxy/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionMaxScansInUI/

    +

    GET /JSON/core/view/excludedFromProxy/

    + +

    Gets the regular expressions, applied to URLs, to exclude from the local proxies.

    Example responses

    @@ -12279,11 +31259,12 @@

    spiderViewOptionMaxScansInUI

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12296,27 +31277,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionRequestWaitTime

    -

    +

    coreViewHomeDirectory

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionRequestWaitTime/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/homeDirectory/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionRequestWaitTime/");
    +
    URL obj = new URL("http://zap/JSON/core/view/homeDirectory/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12332,32 +31312,15 @@ 

    spiderViewOptionRequestWaitTime

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionRequestWaitTime/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionRequestWaitTime/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/homeDirectory/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionRequestWaitTime/

    +

    GET /JSON/core/view/homeDirectory/

    Example responses

    @@ -12365,11 +31328,12 @@

    spiderViewOptionRequestWaitTime

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12382,27 +31346,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionScope

    -

    +

    coreViewHosts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/hosts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionScope/");
    +
    URL obj = new URL("http://zap/JSON/core/view/hosts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12418,32 +31381,17 @@ 

    spiderViewOptionScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionScope/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionScope/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/hosts/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionScope/

    +

    GET /JSON/core/view/hosts/

    + +

    Gets the name of the hosts accessed through/by ZAP

    Example responses

    @@ -12451,11 +31399,12 @@

    spiderViewOptionScope

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12468,27 +31417,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionScopeText

    -

    +

    coreViewMessage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionScopeText/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/message/?id=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionScopeText/");
    +
    URL obj = new URL("http://zap/JSON/core/view/message/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12504,32 +31452,39 @@ 

    spiderViewOptionScopeText

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionScopeText/', params={
    -
    +r = requests.get('http://zap/JSON/core/view/message/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/view/message/

    -result = RestClient.get 'http://zap/JSON/spider/view/optionScopeText/', - params: { - }, headers: headers +

    Gets the HTTP message with the given ID. Returns the ID, request/response headers and bodies, cookies, note, type, RTT, and timestamp.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/spider/view/optionScopeText/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idquerystringtruenone

    Example responses

    @@ -12537,11 +31492,12 @@

    spiderViewOptionScopeText

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12554,27 +31510,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionSkipURLString

    -

    +

    coreViewMessages

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionSkipURLString/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/messages/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionSkipURLString/");
    +
    URL obj = new URL("http://zap/JSON/core/view/messages/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12590,32 +31545,51 @@ 

    spiderViewOptionSkipURLString

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionSkipURLString/', params={
    +r = requests.get('http://zap/JSON/core/view/messages/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/view/messages/

    -result = RestClient.get 'http://zap/JSON/spider/view/optionSkipURLString/', - params: { - }, headers: headers +

    Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messages

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/spider/view/optionSkipURLString/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
    startquerystringfalsenone
    countquerystringfalsenone

    Example responses

    @@ -12623,11 +31597,12 @@

    spiderViewOptionSkipURLString

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12640,27 +31615,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionThreadCount

    -

    +

    coreViewMessagesById

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionThreadCount/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/messagesById/?ids=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionThreadCount/");
    +
    URL obj = new URL("http://zap/JSON/core/view/messagesById/?ids=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12676,32 +31650,39 @@ 

    spiderViewOptionThreadCount

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionThreadCount/', params={
    -
    +r = requests.get('http://zap/JSON/core/view/messagesById/', params={
    +  'ids': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/view/messagesById/

    -result = RestClient.get 'http://zap/JSON/spider/view/optionThreadCount/', - params: { - }, headers: headers +

    Gets the HTTP messages with the given IDs.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/spider/view/optionThreadCount/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idsquerystringtruenone

    Example responses

    @@ -12709,11 +31690,12 @@

    spiderViewOptionThreadCount

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12726,27 +31708,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionUserAgent

    -

    +

    coreViewMode

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionUserAgent/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/mode/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionUserAgent/");
    +
    URL obj = new URL("http://zap/JSON/core/view/mode/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12762,32 +31743,17 @@ 

    spiderViewOptionUserAgent

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionUserAgent/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionUserAgent/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/mode/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionUserAgent/

    +

    GET /JSON/core/view/mode/

    + +

    Gets the mode

    Example responses

    @@ -12795,11 +31761,12 @@

    spiderViewOptionUserAgent

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12812,27 +31779,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionAcceptCookies

    -

    +

    coreViewNumberOfAlerts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionAcceptCookies/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/numberOfAlerts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionAcceptCookies/");
    +
    URL obj = new URL("http://zap/JSON/core/view/numberOfAlerts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12848,34 +31814,44 @@ 

    spiderViewOptionAcceptCookies

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionAcceptCookies/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +r = requests.get('http://zap/JSON/core/view/numberOfAlerts/', headers = headers)
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionAcceptCookies/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/view/numberOfAlerts/

    -p JSON.parse(result) +

    Use the API endpoint with the same name in the 'alert' component instead.

    - -

    GET /JSON/spider/view/optionAcceptCookies/

    +

    Parameters

    -

    Gets whether or not a spider process should accept cookies while spidering.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which alerts should be included.
    riskIdquerystringfalsenone

    Example responses

    @@ -12883,11 +31859,12 @@

    spiderViewOptionAcceptCookies

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12900,27 +31877,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionHandleODataParametersVisited

    -

    +

    coreViewNumberOfMessages

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionHandleODataParametersVisited/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/numberOfMessages/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionHandleODataParametersVisited/");
    +
    URL obj = new URL("http://zap/JSON/core/view/numberOfMessages/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -12936,32 +31912,37 @@ 

    spiderViewOptionHandleODat

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionHandleODataParametersVisited/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/core/view/numberOfMessages/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/core/view/numberOfMessages/

    -result = RestClient.get 'http://zap/JSON/spider/view/optionHandleODataParametersVisited/', - params: { - }, headers: headers +

    Gets the number of messages, optionally filtering by URL

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/spider/view/optionHandleODataParametersVisited/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.

    Example responses

    @@ -12969,11 +31950,12 @@

    spiderViewOptionHandleODat

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -12986,27 +31968,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionParseComments

    -

    +

    coreViewOptionAlertOverridesFilePath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionParseComments/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionAlertOverridesFilePath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionParseComments/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionAlertOverridesFilePath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13022,32 +32003,17 @@ 

    spiderViewOptionParseComments

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionParseComments/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionParseComments/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionAlertOverridesFilePath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionParseComments/

    +

    GET /JSON/core/view/optionAlertOverridesFilePath/

    + +

    Gets the path to the file with alert overrides.

    Example responses

    @@ -13055,11 +32021,12 @@

    spiderViewOptionParseComments

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13072,27 +32039,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionParseGit

    -

    +

    coreViewOptionDefaultUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionParseGit/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionDefaultUserAgent/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionParseGit/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionDefaultUserAgent/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13108,32 +32074,17 @@ 

    spiderViewOptionParseGit

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionParseGit/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionParseGit/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionDefaultUserAgent/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionParseGit/

    +

    GET /JSON/core/view/optionDefaultUserAgent/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13141,11 +32092,12 @@

    spiderViewOptionParseGit

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13158,27 +32110,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionParseRobotsTxt

    -

    +

    coreViewOptionDnsTtlSuccessfulQueries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionParseRobotsTxt/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionParseRobotsTxt/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13194,32 +32145,17 @@ 

    spiderViewOptionParseRobotsTxt

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionParseRobotsTxt/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionParseRobotsTxt/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionParseRobotsTxt/

    +

    GET /JSON/core/view/optionDnsTtlSuccessfulQueries/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13227,11 +32163,12 @@

    spiderViewOptionParseRobotsTxt

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13244,27 +32181,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionParseSVNEntries

    -

    +

    coreViewOptionHttpState

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionParseSVNEntries/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionHttpState/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionParseSVNEntries/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionHttpState/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13280,32 +32216,17 @@ 

    spiderViewOptionParseSVNEntries

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionParseSVNEntries/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionParseSVNEntries/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionHttpState/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionParseSVNEntries/

    +

    GET /JSON/core/view/optionHttpState/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13313,11 +32234,12 @@

    spiderViewOptionParseSVNEntries

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13330,27 +32252,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionParseSitemapXml

    -

    +

    coreViewOptionHttpStateEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionParseSitemapXml/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionHttpStateEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionParseSitemapXml/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionHttpStateEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13366,32 +32287,17 @@ 

    spiderViewOptionParseSitemapXml

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionParseSitemapXml/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionParseSitemapXml/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionHttpStateEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionParseSitemapXml/

    +

    GET /JSON/core/view/optionHttpStateEnabled/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13399,11 +32305,12 @@

    spiderViewOptionParseSitemapXml

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13416,27 +32323,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionPostForm

    -

    +

    coreViewOptionMaximumAlertInstances

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionPostForm/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionMaximumAlertInstances/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionPostForm/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionMaximumAlertInstances/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13452,32 +32358,17 @@ 

    spiderViewOptionPostForm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/view/optionPostForm/', params={
    +r = requests.get('http://zap/JSON/core/view/optionMaximumAlertInstances/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/view/optionPostForm/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionPostForm/

    +

    GET /JSON/core/view/optionMaximumAlertInstances/

    + +

    Gets the maximum number of alert instances to include in a report.

    Example responses

    @@ -13485,11 +32376,12 @@

    spiderViewOptionPostForm

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13502,27 +32394,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionProcessForm

    -

    +

    coreViewOptionMergeRelatedAlerts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionProcessForm/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionMergeRelatedAlerts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionProcessForm/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionMergeRelatedAlerts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13538,32 +32429,17 @@ 

    spiderViewOptionProcessForm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionProcessForm/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionProcessForm/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionMergeRelatedAlerts/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionProcessForm/

    +

    GET /JSON/core/view/optionMergeRelatedAlerts/

    + +

    Gets whether or not related alerts will be merged in any reports generated.

    Example responses

    @@ -13571,11 +32447,12 @@

    spiderViewOptionProcessForm

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13588,27 +32465,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionSendRefererHeader

    -

    +

    coreViewOptionProxyChainName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionSendRefererHeader/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainName/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionSendRefererHeader/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainName/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13624,34 +32500,17 @@ 

    spiderViewOptionSendRefererHeader

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionSendRefererHeader/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionSendRefererHeader/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainName/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionSendRefererHeader/

    +

    GET /JSON/core/view/optionProxyChainName/

    -

    Gets whether or not the 'Referer' header should be sent while spidering.

    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13659,11 +32518,12 @@

    spiderViewOptionSendRefererHeader

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13676,27 +32536,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderViewOptionShowAdvancedDialog

    -

    +

    coreViewOptionProxyChainPassword

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/view/optionShowAdvancedDialog/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainPassword/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/view/optionShowAdvancedDialog/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPassword/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13712,32 +32571,17 @@ 

    spiderViewOptionShowAdvancedDialog

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/view/optionShowAdvancedDialog/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/view/optionShowAdvancedDialog/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainPassword/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/view/optionShowAdvancedDialog/

    +

    GET /JSON/core/view/optionProxyChainPassword/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13745,11 +32589,12 @@

    spiderViewOptionShowAdvancedDialogdefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13762,27 +32607,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionScan

    -

    +

    coreViewOptionProxyChainPort

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/scan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainPort/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/scan/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPort/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13798,82 +32642,17 @@ 

    spiderActionScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/scan/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/scan/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainPort/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/scan/

    - -

    Runs the spider against the given URL (or context). Optionally, the 'maxChildren' parameter can be set to limit the number of children scanned, the 'recurse' parameter can be used to prevent the spider from seeding recursively, the parameter 'contextName' can be used to constrain the scan to a Context and the parameter 'subtreeOnly' allows to restrict the spider under a site's subtree (using the specified 'url').

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyChainPort/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    urlquerystringfalsenone
    maxChildrenqueryintegerfalsenone
    recursequerybooleanfalsenone
    contextNamequerystringfalsenone
    subtreeOnlyquerybooleanfalsenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -13881,11 +32660,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -13898,27 +32678,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionScanAsUser

    -

    +

    coreViewOptionProxyChainPrompt

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/scanAsUser/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainPrompt/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/scanAsUser/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPrompt/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -13934,91 +32713,17 @@ 

    spiderActionScanAsUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/scanAsUser/', params={
    -  'contextId': '0',  'userId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/scanAsUser/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainPrompt/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/scanAsUser/

    - -

    Runs the spider from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyChainPrompt/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    urlquerystringfalsenone
    maxChildrenqueryintegerfalsenone
    recursequerybooleanfalsenone
    subtreeOnlyquerybooleanfalsenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14026,11 +32731,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14043,27 +32749,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionPause

    -

    +

    coreViewOptionProxyChainRealm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/pause/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainRealm/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/pause/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainRealm/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14079,53 +32784,17 @@ 

    spiderActionPause

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/pause/', params={
    -  'scanId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/pause/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainRealm/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/pause/

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyChainRealm/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegertruenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14133,11 +32802,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14150,27 +32820,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionResume

    -

    +

    coreViewOptionProxyChainSkipName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/resume/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainSkipName/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/resume/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainSkipName/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14186,53 +32855,17 @@ 

    spiderActionResume

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/resume/', params={
    -  'scanId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/resume/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainSkipName/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/resume/

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyChainSkipName/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegertruenone
    +

    Use view proxyChainExcludedDomains instead.

    Example responses

    @@ -14240,11 +32873,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14257,27 +32891,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionStop

    -

    +

    coreViewOptionProxyChainUserName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/stop/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyChainUserName/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/stop/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainUserName/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14293,52 +32926,17 @@ 

    spiderActionStop

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/stop/', params={
    +r = requests.get('http://zap/JSON/core/view/optionProxyChainUserName/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/stop/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/stop/

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyChainUserName/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegerfalsenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14346,11 +32944,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14363,27 +32962,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionRemoveScan

    -

    +

    coreViewOptionProxyExcludedDomains

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/removeScan/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomains/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/removeScan/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomains/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14399,53 +32997,17 @@ 

    spiderActionRemoveScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/removeScan/', params={
    -  'scanId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/removeScan/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomains/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/removeScan/

    - -

    Parameters

    +

    GET /JSON/core/view/optionProxyExcludedDomains/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanIdqueryintegertruenone
    +

    Use view proxyChainExcludedDomains instead.

    Example responses

    @@ -14453,11 +33015,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14470,27 +33033,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionPauseAllScans

    -

    +

    coreViewOptionProxyExcludedDomainsEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/pauseAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/pauseAllScans/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14506,32 +33068,17 @@ 

    spiderActionPauseAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/pauseAllScans/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/pauseAllScans/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/pauseAllScans/

    +

    GET /JSON/core/view/optionProxyExcludedDomainsEnabled/

    + +

    Use view proxyChainExcludedDomains instead.

    Example responses

    @@ -14539,11 +33086,12 @@

    spiderActionPauseAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14556,27 +33104,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionResumeAllScans

    -

    +

    coreViewOptionSingleCookieRequestHeader

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/resumeAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionSingleCookieRequestHeader/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/resumeAllScans/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionSingleCookieRequestHeader/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14592,32 +33139,17 @@ 

    spiderActionResumeAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/resumeAllScans/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/resumeAllScans/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionSingleCookieRequestHeader/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/resumeAllScans/

    +

    GET /JSON/core/view/optionSingleCookieRequestHeader/

    + +

    Option no longer in effective use.

    Example responses

    @@ -14625,11 +33157,12 @@

    spiderActionResumeAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14642,27 +33175,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionStopAllScans

    -

    +

    coreViewOptionTimeoutInSecs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/stopAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionTimeoutInSecs/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/stopAllScans/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionTimeoutInSecs/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14678,32 +33210,17 @@ 

    spiderActionStopAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/stopAllScans/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/stopAllScans/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionTimeoutInSecs/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/stopAllScans/

    +

    GET /JSON/core/view/optionTimeoutInSecs/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14711,11 +33228,12 @@

    spiderActionStopAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14728,27 +33246,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionRemoveAllScans

    -

    +

    coreViewOptionUseProxyChain

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/removeAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionUseProxyChain/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/removeAllScans/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChain/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14764,32 +33281,17 @@ 

    spiderActionRemoveAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/removeAllScans/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/removeAllScans/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionUseProxyChain/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/removeAllScans/

    +

    GET /JSON/core/view/optionUseProxyChain/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14797,11 +33299,12 @@

    spiderActionRemoveAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14814,27 +33317,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionClearExcludedFromScan

    -

    +

    coreViewOptionUseProxyChainAuth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/clearExcludedFromScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionUseProxyChainAuth/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/clearExcludedFromScan/");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChainAuth/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14850,34 +33352,17 @@ 

    spiderActionClearExcludedFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/clearExcludedFromScan/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/clearExcludedFromScan/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionUseProxyChainAuth/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/clearExcludedFromScan/

    +

    GET /JSON/core/view/optionUseProxyChainAuth/

    -

    Clears the regexes of URLs excluded from the spider scans.

    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14885,11 +33370,12 @@

    spiderActionClearExcludedFromScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -14902,27 +33388,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionExcludeFromScan

    -

    +

    coreViewOptionUseSocksProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/excludeFromScan/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/optionUseSocksProxy/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/excludeFromScan/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/core/view/optionUseSocksProxy/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -14938,55 +33423,17 @@ 

    spiderActionExcludeFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/excludeFromScan/', params={
    -  'regex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/excludeFromScan/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/optionUseSocksProxy/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/excludeFromScan/

    - -

    Adds a regex of URLs that should be excluded from the spider scans.

    - -

    Parameters

    +

    GET /JSON/core/view/optionUseSocksProxy/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    regexquerystringtruenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -14994,11 +33441,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15011,27 +33459,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionAddDomainAlwaysInScope

    -

    +

    coreViewProxyChainExcludedDomains

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/proxyChainExcludedDomains/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string");
    +
    URL obj = new URL("http://zap/JSON/core/view/proxyChainExcludedDomains/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15047,69 +33494,17 @@ 

    spiderActionAddDomainAlwaysInScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/addDomainAlwaysInScope/', params={
    -  'value': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/addDomainAlwaysInScope/',
    -  params: {
    -  'value' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/proxyChainExcludedDomains/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/addDomainAlwaysInScope/

    - -

    Adds a new domain that's always in scope, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

    - -

    Parameters

    +

    GET /JSON/core/view/proxyChainExcludedDomains/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    valuequerystringtruenone
    isRegexquerybooleanfalsenone
    isEnabledquerybooleanfalsenone
    +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -15117,11 +33512,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15134,27 +33530,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionModifyDomainAlwaysInScope

    -

    +

    coreViewSessionLocation

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/sessionLocation/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/sessionLocation/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15170,76 +33565,17 @@ 

    spiderActionModifyDomainAlwaysInS

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/modifyDomainAlwaysInScope/', params={
    -  'idx': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/modifyDomainAlwaysInScope/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/sessionLocation/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/modifyDomainAlwaysInScope/

    - -

    Modifies a domain that's always in scope. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view domainsAlwaysInScope.

    - -

    Parameters

    +

    GET /JSON/core/view/sessionLocation/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idxqueryintegertruenone
    valuequerystringfalsenone
    isRegexquerybooleanfalsenone
    isEnabledquerybooleanfalsenone
    +

    Gets the location of the current session file

    Example responses

    @@ -15247,11 +33583,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15264,27 +33601,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionRemoveDomainAlwaysInScope

    -

    +

    coreViewSites

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/sites/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/core/view/sites/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15300,55 +33636,17 @@ 

    spiderActionRemoveDomainAlwaysInS

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/removeDomainAlwaysInScope/', params={
    -  'idx': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/removeDomainAlwaysInScope/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/sites/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/removeDomainAlwaysInScope/

    - -

    Removes a domain that's always in scope, with the given index. The index can be obtained with the view domainsAlwaysInScope.

    - -

    Parameters

    +

    GET /JSON/core/view/sites/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idxqueryintegertruenone
    +

    Gets the sites accessed through/by ZAP (scheme and domain)

    Example responses

    @@ -15356,11 +33654,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15373,27 +33672,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionEnableAllDomainsAlwaysInScope

    -

    +

    coreViewUrls

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/urls/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/");
    +
    URL obj = new URL("http://zap/JSON/core/view/urls/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15409,34 +33707,37 @@ 

    spiderActionEnableAllDomainsA

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/', params={
    +r = requests.get('http://zap/JSON/core/view/urls/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/core/view/urls/

    -p JSON.parse(result) +

    Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.

    -
    -

    GET /JSON/spider/action/enableAllDomainsAlwaysInScope/

    +

    Parameters

    -

    Enables all domains that are always in scope.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.

    Example responses

    @@ -15444,11 +33745,12 @@

    spiderActionEnableAllDomainsA

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15461,27 +33763,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionDisableAllDomainsAlwaysInScope

    -

    +

    coreViewVersion

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/version/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/");
    +
    URL obj = new URL("http://zap/JSON/core/view/version/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15497,34 +33798,17 @@ 

    spiderActionDisableAllDomain

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/core/view/version/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/disableAllDomainsAlwaysInScope/

    +

    GET /JSON/core/view/version/

    -

    Disables all domains that are always in scope.

    +

    Gets ZAP version

    Example responses

    @@ -15532,11 +33816,12 @@

    spiderActionDisableAllDomain

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15549,27 +33834,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionHandleParameters

    -

    +

    coreViewZapHomePath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionHandleParameters/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/core/view/zapHomePath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleParameters/?String=string");
    +
    URL obj = new URL("http://zap/JSON/core/view/zapHomePath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15585,53 +33869,17 @@ 

    spiderActionSetOptionHandleParame

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/setOptionHandleParameters/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionHandleParameters/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/core/view/zapHomePath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionHandleParameters/

    - -

    Parameters

    +

    GET /JSON/core/view/zapHomePath/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the path to ZAP's home directory.

    Example responses

    @@ -15639,11 +33887,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -15656,27 +33905,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionScopeString

    -

    + +

    dev

    +

    devOtherOpenapi

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionScopeString/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/dev/other/openapi/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionScopeString/?String=string");
    +
    URL obj = new URL("http://zap/OTHER/dev/other/openapi/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15692,67 +33942,23 @@ 

    spiderActionSetOptionScopeString

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/spider/action/setOptionScopeString/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionScopeString/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/OTHER/dev/other/openapi/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/action/setOptionScopeString/

    - -

    Use actions [add|modify|remove]DomainAlwaysInScope instead.

    +

    GET /OTHER/dev/other/openapi/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Provides the OpenAPI definition of the ZAP API, in YAML format.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -15765,27 +33971,30 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderActionSetOptionSkipURLString

    -

    + +

    exim

    +

    eximActionImportHar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionSkipURLString/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/exim/action/importHar/?filePath=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionSkipURLString/?String=string");
    +
    URL obj = new URL("http://zap/JSON/exim/action/importHar/?filePath=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15801,35 +34010,21 @@ 

    spiderActionSetOptionSkipURLString

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionSkipURLString/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/exim/action/importHar/', params={
    +  'filePath': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionSkipURLString/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionSkipURLString/

    +

    GET /JSON/exim/action/importHar/

    -

    Parameters

    +

    Imports a HAR file.

    + +

    Parameters

    @@ -15841,7 +34036,7 @@

    Parameters

    - + @@ -15855,11 +34050,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    StringfilePath query string true
    @@ -15872,27 +34068,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionUserAgent

    -

    +

    eximActionImportModsec2Logs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionUserAgent/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/exim/action/importModsec2Logs/?filePath=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionUserAgent/?String=string");
    +
    URL obj = new URL("http://zap/JSON/exim/action/importModsec2Logs/?filePath=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -15908,35 +34103,21 @@ 

    spiderActionSetOptionUserAgent

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionUserAgent/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/exim/action/importModsec2Logs/', params={
    +  'filePath': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionUserAgent/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionUserAgent/

    +

    GET /JSON/exim/action/importModsec2Logs/

    -

    Parameters

    +

    Imports ModSecurity2 logs from the file with the given file system path.

    + +

    Parameters

    @@ -15948,7 +34129,7 @@

    Parameters

    - + @@ -15962,11 +34143,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    StringfilePath query string true
    @@ -15979,27 +34161,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionAcceptCookies

    -

    +

    eximActionImportUrls

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/exim/action/importUrls/?filePath=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/exim/action/importUrls/?filePath=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16015,37 +34196,21 @@ 

    spiderActionSetOptionAcceptCookies

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionAcceptCookies/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/exim/action/importUrls/', params={
    +  'filePath': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionAcceptCookies/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionAcceptCookies/

    +

    GET /JSON/exim/action/importUrls/

    -

    Sets whether or not a spider process should accept cookies while spidering.

    +

    Imports URLs (one per line) from the file with the given file system path.

    -

    Parameters

    +

    Parameters

    @@ -16057,7 +34222,7 @@

    Parameters

    - + @@ -16071,11 +34236,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanfilePath query string true
    @@ -16088,27 +34254,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionHandleODataParametersVisited

    -

    +

    eximActionImportZapLogs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/exim/action/importZapLogs/?filePath=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/exim/action/importZapLogs/?filePath=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16124,35 +34289,21 @@ 

    spiderActionSetOption

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/exim/action/importZapLogs/', params={
    +  'filePath': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionHandleODataParametersVisited/

    +

    GET /JSON/exim/action/importZapLogs/

    -

    Parameters

    +

    Imports previously exported ZAP messages from the file with the given file system path.

    + +

    Parameters

    @@ -16164,7 +34315,7 @@

    Parameters

    - + @@ -16178,11 +34329,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanfilePath query string true
    @@ -16195,27 +34347,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionMaxChildren

    -

    +

    eximOtherExportHar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/exim/other/exportHar/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0");
    +
    URL obj = new URL("http://zap/OTHER/exim/other/exportHar/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16231,37 +34382,19 @@ 

    spiderActionSetOptionMaxChildren

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionMaxChildren/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/OTHER/exim/other/exportHar/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxChildren/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/action/setOptionMaxChildren/

    +

    GET /OTHER/exim/other/exportHar/

    -

    Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

    +

    Gets the HTTP messages sent through/by ZAP, in HAR format, optionally filtered by URL and paginated with 'start' position and 'count' of messages

    -

    Parameters

    +

    Parameters

    @@ -16273,25 +34406,33 @@

    Parameters

    - + - - - + + + + + + + + + + + + + + + + +
    Integerbaseurl queryintegertruenonestringfalseThe URL below which messages should be included.
    startquerystringfalseThe position (or offset) within the results to use as a starting position for the information returned.
    countquerystringfalseThe number of results to return.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -16304,27 +34445,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderActionSetOptionMaxDepth

    -

    +

    eximOtherExportHarById

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/exim/other/exportHarById/?ids=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0");
    +
    URL obj = new URL("http://zap/OTHER/exim/other/exportHarById/?ids=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16340,37 +34482,21 @@ 

    spiderActionSetOptionMaxDepth

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionMaxDepth/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/OTHER/exim/other/exportHarById/', params={
    +  'ids': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxDepth/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/action/setOptionMaxDepth/

    +

    GET /OTHER/exim/other/exportHarById/

    -

    Sets the maximum depth the spider can crawl, 0 for unlimited depth.

    +

    Gets the HTTP messages with the given IDs, in HAR format.

    -

    Parameters

    +

    Parameters

    @@ -16382,25 +34508,19 @@

    Parameters

    - + - + - +
    Integerids queryintegerstring truenoneThe ID (number(s)) of the message(s) to be returned.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -16413,27 +34533,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderActionSetOptionMaxDuration

    -

    +

    eximOtherSendHarRequest

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/exim/other/sendHarRequest/?request=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0");
    +
    URL obj = new URL("http://zap/OTHER/exim/other/sendHarRequest/?request=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16449,35 +34570,21 @@ 

    spiderActionSetOptionMaxDuration

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionMaxDuration/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/OTHER/exim/other/sendHarRequest/', params={
    +  'request': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxDuration/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/spider/action/setOptionMaxDuration/

    +

    GET /OTHER/exim/other/sendHarRequest/

    -

    Parameters

    +

    Sends the first HAR request entry, optionally following redirections. Returns, in HAR format, the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

    + +

    Parameters

    @@ -16489,25 +34596,26 @@

    Parameters

    - + - + - + + + + + + + +
    Integerrequest queryintegerstring truenoneThe raw JSON of a HAR request.
    followRedirectsquerystringfalseTrue if redirects should be followed, false otherwise.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -16520,27 +34628,30 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    spiderActionSetOptionMaxParseSizeBytes

    -

    + +

    forcedUser

    +

    forcedUserActionSetForcedUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/forcedUser/action/setForcedUser/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUser/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16556,37 +34667,21 @@ 

    spiderActionSetOptionMaxParseSiz

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/forcedUser/action/setForcedUser/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionMaxParseSizeBytes/

    +

    GET /JSON/forcedUser/action/setForcedUser/

    -

    Sets the maximum size, in bytes, that a response might have to be parsed. This allows the spider to skip big responses/files.

    +

    Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)

    -

    Parameters

    +

    Parameters

    @@ -16598,9 +34693,16 @@

    Parameters

    - + - + + + + + + + + @@ -16612,11 +34714,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegercontextId queryintegerstringtruenone
    userIdquerystring true none
    @@ -16629,27 +34732,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionMaxScansInUI

    -

    +

    forcedUserActionSetForcedUserModeEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16665,35 +34767,21 @@ 

    spiderActionSetOptionMaxScansInUI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionMaxScansInUI/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/', params={
    +  'boolean': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionMaxScansInUI/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionMaxScansInUI/

    +

    GET /JSON/forcedUser/action/setForcedUserModeEnabled/

    -

    Parameters

    +

    Sets if 'forced user' mode should be enabled or not

    + +

    Parameters

    @@ -16705,9 +34793,9 @@

    Parameters

    - + - + @@ -16719,11 +34807,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    Integerboolean queryintegerstring true none
    @@ -16736,27 +34825,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionParseComments

    -

    +

    forcedUserViewGetForcedUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionParseComments/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/forcedUser/view/getForcedUser/?contextId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseComments/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/forcedUser/view/getForcedUser/?contextId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16772,35 +34860,21 @@ 

    spiderActionSetOptionParseComments

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionParseComments/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/forcedUser/view/getForcedUser/', params={
    +  'contextId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseComments/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionParseComments/

    +

    GET /JSON/forcedUser/view/getForcedUser/

    -

    Parameters

    +

    Gets the user (ID) set as 'forced user' for the given context (ID)

    + +

    Parameters

    @@ -16812,7 +34886,7 @@

    Parameters

    - + @@ -16826,11 +34900,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleancontextId query string true
    @@ -16843,27 +34918,99 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionParseGit

    -

    +

    forcedUserViewIsForcedUserModeEnabled

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/forcedUser/view/isForcedUserModeEnabled/

    + +

    Returns 'true' if 'forced user' mode is enabled, 'false' otherwise

    + +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    + + + +

    graphql

    +

    graphqlActionImportFile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionParseGit/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/importFile/?endurl=string&file=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseGit/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/importFile/?endurl=string&file=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16879,35 +35026,21 @@ 

    spiderActionSetOptionParseGit

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionParseGit/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/importFile/', params={
    +  'endurl': 'string',  'file': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseGit/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionParseGit/

    +

    GET /JSON/graphql/action/importFile/

    -

    Parameters

    +

    Imports a GraphQL Schema from a File.

    + +

    Parameters

    @@ -16919,11 +35052,18 @@

    Parameters

    - + - + + + + + + + +
    Booleanendurl query string truenoneThe Endpoint URL.
    filequerystringtrueThe File That Contains the GraphQL Schema.
    @@ -16933,11 +35073,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -16950,27 +35091,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionParseRobotsTxt

    -

    +

    graphqlActionImportUrl

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/importUrl/?endurl=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/importUrl/?endurl=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -16986,35 +35126,21 @@ 

    spiderActionSetOptionParseRobotsTxt

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionParseRobotsTxt/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/importUrl/', params={
    +  'endurl': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseRobotsTxt/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionParseRobotsTxt/

    +

    GET /JSON/graphql/action/importUrl/

    -

    Parameters

    +

    Imports a GraphQL Schema from a URL.

    + +

    Parameters

    @@ -17026,11 +35152,18 @@

    Parameters

    - + - + + + + + + + +
    Booleanendurl query string truenoneThe Endpoint URL.
    urlquerystringfalseThe URL Locating the GraphQL Schema.
    @@ -17040,11 +35173,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17057,27 +35191,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionParseSVNEntries

    -

    +

    graphqlActionSetOptionArgsType

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionArgsType/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionArgsType/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17093,35 +35226,21 @@ 

    spiderActionSetOptionParseSVNEntri

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionParseSVNEntries/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionArgsType/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseSVNEntries/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionParseSVNEntries/

    +

    GET /JSON/graphql/action/setOptionArgsType/

    -

    Parameters

    +

    Sets how arguments are specified.

    + +

    Parameters

    @@ -17133,11 +35252,11 @@

    Parameters

    - + - +
    BooleanString query string truenoneCan be "INLINE", "VARIABLES", or "BOTH".
    @@ -17147,11 +35266,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17164,27 +35284,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionParseSitemapXml

    -

    +

    graphqlActionSetOptionLenientMaxQueryDepthEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17200,35 +35319,21 @@ 

    spiderActionSetOptionParseSitemapX

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionParseSitemapXml/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionParseSitemapXml/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionParseSitemapXml/

    +

    GET /JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/

    -

    Parameters

    +

    Sets whether or not Maximum Query Depth is enforced leniently.

    + +

    Parameters

    @@ -17242,9 +35347,9 @@

    Parameters

    - + - +
    Boolean querystringboolean truenoneEnforce Leniently (true or false).
    @@ -17254,11 +35359,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17271,27 +35377,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionPostForm

    -

    +

    graphqlActionSetOptionMaxAdditionalQueryDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionPostForm/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionPostForm/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17307,35 +35412,114 @@ 

    spiderActionSetOptionPostForm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionPostForm/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
    +
    +
    +

    GET /JSON/graphql/action/setOptionMaxAdditionalQueryDepth/

    + +

    Sets the maximum additional query generation depth (used if enforced leniently).

    + +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    IntegerqueryintegertrueThe Maximum Additional Depth.
    + +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    -
    require 'rest-client'
    -require 'json'
    +
    +

    graphqlActionSetOptionMaxArgsDepth

    +

    +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/graphql/action/setOptionMaxArgsDepth/?Integer=0 \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxArgsDepth/?Integer=0");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionPostForm/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/graphql/action/setOptionMaxArgsDepth/', params={
    +  'Integer': '0'
    +}, headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionPostForm/

    +

    GET /JSON/graphql/action/setOptionMaxArgsDepth/

    -

    Parameters

    +

    Sets the maximum arguments generation depth.

    + +

    Parameters

    @@ -17347,11 +35531,11 @@

    Parameters

    - + - + - +
    BooleanInteger querystringinteger truenoneThe Maximum Depth.
    @@ -17361,11 +35545,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17378,27 +35563,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionProcessForm

    -

    +

    graphqlActionSetOptionMaxQueryDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionMaxQueryDepth/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionMaxQueryDepth/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17414,35 +35598,114 @@ 

    spiderActionSetOptionProcessForm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionProcessForm/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionMaxQueryDepth/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
    +
    +
    +

    GET /JSON/graphql/action/setOptionMaxQueryDepth/

    + +

    Sets the maximum query generation depth.

    + +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    IntegerqueryintegertrueThe Maximum Depth.
    + +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    + + +

    graphqlActionSetOptionOptionalArgsEnabled

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    require 'rest-client'
    -require 'json'
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/?Boolean=true");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
     
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionProcessForm/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/graphql/action/setOptionOptionalArgsEnabled/', params={
    +  'Boolean': 'true'
    +}, headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionProcessForm/

    +

    GET /JSON/graphql/action/setOptionOptionalArgsEnabled/

    -

    Parameters

    +

    Sets whether or not Optional Arguments should be specified.

    + +

    Parameters

    @@ -17456,9 +35719,9 @@

    Parameters

    - + - +
    Boolean querystringboolean truenoneSpecify Optional Arguments (true or false).
    @@ -17468,11 +35731,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17485,27 +35749,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionRequestWaitTime

    -

    +

    graphqlActionSetOptionQueryGenEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionQueryGenEnabled/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionQueryGenEnabled/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17521,35 +35784,21 @@ 

    spiderActionSetOptionRequestWaitTi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionRequestWaitTime/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionQueryGenEnabled/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionRequestWaitTime/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionRequestWaitTime/

    +

    GET /JSON/graphql/action/setOptionQueryGenEnabled/

    -

    Parameters

    +

    Sets whether the query generator is enabled.

    + +

    Parameters

    @@ -17561,11 +35810,11 @@

    Parameters

    - + - + - +
    IntegerBoolean queryintegerboolean truenoneEnable query generation (true or false).
    @@ -17575,11 +35824,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17592,27 +35842,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionSendRefererHeader

    -

    +

    graphqlActionSetOptionQuerySplitType

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionQuerySplitType/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionQuerySplitType/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17628,37 +35877,21 @@ 

    spiderActionSetOptionSendReferer

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionSendRefererHeader/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionQuerySplitType/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionSendRefererHeader/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionSendRefererHeader/

    +

    GET /JSON/graphql/action/setOptionQuerySplitType/

    -

    Sets whether or not the 'Referer' header should be sent while spidering.

    +

    Sets the level for which a single query is generated.

    -

    Parameters

    +

    Parameters

    @@ -17670,11 +35903,11 @@

    Parameters

    - + - +
    BooleanString query string truenoneCan be "LEAF", "ROOT_FIELD", or "OPERATION".
    @@ -17684,11 +35917,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17701,27 +35935,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionShowAdvancedDialog

    -

    +

    graphqlActionSetOptionRequestMethod

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/action/setOptionRequestMethod/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/action/setOptionRequestMethod/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17737,35 +35970,21 @@ 

    spiderActionSetOptionShowAdvanc

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionShowAdvancedDialog/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/graphql/action/setOptionRequestMethod/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionShowAdvancedDialog/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionShowAdvancedDialog/

    +

    GET /JSON/graphql/action/setOptionRequestMethod/

    -

    Parameters

    +

    Sets the request method.

    + +

    Parameters

    @@ -17777,11 +35996,11 @@

    Parameters

    - + - +
    BooleanString query string truenoneCan be "POST_JSON", "POST_GRAPHQL", or "GET".
    @@ -17791,11 +36010,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17808,27 +36028,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    spiderActionSetOptionThreadCount

    -

    +

    graphqlViewOptionArgsType

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionArgsType/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionArgsType/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17844,53 +36063,17 @@ 

    spiderActionSetOptionThreadCount

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/spider/action/setOptionThreadCount/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/graphql/view/optionArgsType/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/spider/action/setOptionThreadCount/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/spider/action/setOptionThreadCount/

    +

    GET /JSON/graphql/view/optionArgsType/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    Returns how arguments are currently specified.

    Example responses

    @@ -17898,11 +36081,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -17915,29 +36099,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    core

    -

    coreViewHosts

    -

    +

    graphqlViewOptionLenientMaxQueryDepthEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/hosts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/hosts/");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -17953,34 +36134,17 @@ 

    coreViewHosts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/hosts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/hosts/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/hosts/

    +

    GET /JSON/graphql/view/optionLenientMaxQueryDepthEnabled/

    -

    Gets the name of the hosts accessed through/by ZAP

    +

    Returns whether or not lenient maximum query generation depth is enabled.

    Example responses

    @@ -17988,11 +36152,12 @@

    coreViewHosts

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18005,27 +36170,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewSites

    -

    +

    graphqlViewOptionMaxAdditionalQueryDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/sites/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/sites/");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18041,34 +36205,17 @@ 

    coreViewSites

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/sites/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/sites/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/graphql/view/optionMaxAdditionalQueryDepth/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/sites/

    +

    GET /JSON/graphql/view/optionMaxAdditionalQueryDepth/

    -

    Gets the sites accessed through/by ZAP (scheme and domain)

    +

    Returns the current maximum additional query generation depth.

    Example responses

    @@ -18076,11 +36223,12 @@

    coreViewSites

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18093,27 +36241,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewUrls

    -

    +

    graphqlViewOptionMaxArgsDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/urls/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionMaxArgsDepth/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/urls/");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionMaxArgsDepth/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18129,54 +36276,17 @@ 

    coreViewUrls

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/urls/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/urls/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/graphql/view/optionMaxArgsDepth/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/urls/

    - -

    Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.

    - -

    Parameters

    +

    GET /JSON/graphql/view/optionMaxArgsDepth/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    baseurlquerystringfalsenone
    +

    Returns the current maximum arguments generation depth.

    Example responses

    @@ -18184,11 +36294,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18201,27 +36312,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewChildNodes

    -

    +

    graphqlViewOptionMaxQueryDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/childNodes/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionMaxQueryDepth/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/childNodes/");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionMaxQueryDepth/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18237,54 +36347,17 @@ 

    coreViewChildNodes

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/childNodes/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/graphql/view/optionMaxQueryDepth/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/childNodes/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/childNodes/

    - -

    Gets the child nodes underneath the specified URL in the Sites tree

    +

    GET /JSON/graphql/view/optionMaxQueryDepth/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    urlquerystringfalsenone
    +

    Returns the current maximum query generation depth.

    Example responses

    @@ -18292,11 +36365,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18309,27 +36383,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewMessage

    -

    +

    graphqlViewOptionOptionalArgsEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/message/?id=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionOptionalArgsEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/message/?id=0");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionOptionalArgsEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18345,55 +36418,17 @@ 

    coreViewMessage

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/message/', params={
    -  'id': '0'
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/graphql/view/optionOptionalArgsEnabled/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/message/',
    -  params: {
    -  'id' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/message/

    +

    GET /JSON/graphql/view/optionOptionalArgsEnabled/

    -

    Gets the HTTP message with the given ID. Returns the ID, request/response headers and bodies, cookies, note, type, RTT, and timestamp.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idqueryintegertruenone
    +

    Returns whether or not optional arguments are currently specified.

    Example responses

    @@ -18401,11 +36436,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18418,27 +36454,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewMessages

    -

    +

    graphqlViewOptionQueryGenEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/messages/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionQueryGenEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/messages/");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionQueryGenEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18454,80 +36489,101 @@ 

    coreViewMessages

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/messages/', params={
    +r = requests.get('http://zap/JSON/graphql/view/optionQueryGenEnabled/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/messages/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/messages/

    +

    GET /JSON/graphql/view/optionQueryGenEnabled/

    -

    Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messages

    +

    Returns whether the query generator is enabled.

    -

    Parameters

    +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - - - - - - - - - - - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    graphqlViewOptionQuerySplitType

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/graphql/view/optionQuerySplitType/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionQuerySplitType/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/graphql/view/optionQuerySplitType/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/graphql/view/optionQuerySplitType/

    + +

    Returns the current level for which a single query is generated.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18540,27 +36596,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewMessagesById

    -

    +

    graphqlViewOptionRequestMethod

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/messagesById/?ids=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/graphql/view/optionRequestMethod/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/messagesById/?ids=string");
    +
    URL obj = new URL("http://zap/JSON/graphql/view/optionRequestMethod/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18576,55 +36631,17 @@ 

    coreViewMessagesById

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/messagesById/', params={
    -  'ids': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/messagesById/',
    -  params: {
    -  'ids' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/graphql/view/optionRequestMethod/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/messagesById/

    - -

    Gets the HTTP messages with the given IDs.

    - -

    Parameters

    +

    GET /JSON/graphql/view/optionRequestMethod/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idsquerystringtruenone
    +

    Returns the current request method.

    Example responses

    @@ -18632,11 +36649,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18649,27 +36667,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewNumberOfMessages

    -

    + +

    httpSessions

    +

    httpSessionsActionAddDefaultSessionToken

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/numberOfMessages/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/numberOfMessages/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18685,36 +36704,21 @@ 

    coreViewNumberOfMessages

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/numberOfMessages/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/addDefaultSessionToken/', params={
    +  'sessionToken': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/numberOfMessages/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/numberOfMessages/

    +

    GET /JSON/httpSessions/action/addDefaultSessionToken/

    -

    Gets the number of messages, optionally filtering by URL

    +

    Adds a default session token with the given name and enabled state.

    -

    Parameters

    +

    Parameters

    @@ -18726,7 +36730,14 @@

    Parameters

    - + + + + + + + + @@ -18740,11 +36751,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    baseurlsessionTokenquerystringtruenone
    tokenEnabled query string false
    @@ -18757,27 +36769,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewMode

    -

    +

    httpSessionsActionAddSessionToken

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/mode/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/mode/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18793,34 +36804,46 @@ 

    coreViewMode

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/mode/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/addSessionToken/', params={
    +  'site': 'string',  'sessionToken': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/mode/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/addSessionToken/

    -p JSON.parse(result) +

    Adds the session token to the given site.

    -
    -

    GET /JSON/core/view/mode/

    +

    Parameters

    -

    Gets the mode

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionTokenquerystringtruenone

    Example responses

    @@ -18828,11 +36851,12 @@

    coreViewMode

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18845,27 +36869,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewVersion

    -

    +

    httpSessionsActionCreateEmptySession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/version/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/createEmptySession/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/version/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/createEmptySession/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18881,34 +36904,46 @@ 

    coreViewVersion

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/version/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/createEmptySession/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/version/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/createEmptySession/

    -p JSON.parse(result) +

    Creates an empty session for the given site. Optionally with the given name.

    -
    -

    GET /JSON/core/view/version/

    +

    Parameters

    -

    Gets ZAP version

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionquerystringfalsenone

    Example responses

    @@ -18916,11 +36951,12 @@

    coreViewVersion

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -18933,27 +36969,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewExcludedFromProxy

    -

    +

    httpSessionsActionRemoveDefaultSessionToken

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/excludedFromProxy/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/excludedFromProxy/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -18969,34 +37004,39 @@ 

    coreViewExcludedFromProxy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/excludedFromProxy/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/removeDefaultSessionToken/', params={
    +  'sessionToken': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/excludedFromProxy/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/removeDefaultSessionToken/

    -p JSON.parse(result) +

    Removes the default session token with the given name.

    -
    -

    GET /JSON/core/view/excludedFromProxy/

    +

    Parameters

    -

    Gets the regular expressions, applied to URLs, to exclude from the local proxies.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sessionTokenquerystringtruenone

    Example responses

    @@ -19004,11 +37044,12 @@

    coreViewExcludedFromProxy

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19021,27 +37062,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewHomeDirectory

    -

    +

    httpSessionsActionRemoveSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/homeDirectory/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/homeDirectory/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19057,32 +37097,46 @@ 

    coreViewHomeDirectory

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/homeDirectory/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/removeSession/', params={
    +  'site': 'string',  'session': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/httpSessions/action/removeSession/

    -result = RestClient.get 'http://zap/JSON/core/view/homeDirectory/', - params: { - }, headers: headers +

    Removes the session from the given site.

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/core/view/homeDirectory/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionquerystringtruenone

    Example responses

    @@ -19090,11 +37144,12 @@

    coreViewHomeDirectory

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19107,27 +37162,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewSessionLocation

    -

    +

    httpSessionsActionRemoveSessionToken

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/sessionLocation/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/sessionLocation/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19143,34 +37197,46 @@ 

    coreViewSessionLocation

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/sessionLocation/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/removeSessionToken/', params={
    +  'site': 'string',  'sessionToken': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/sessionLocation/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/removeSessionToken/

    -p JSON.parse(result) +

    Removes the session token from the given site.

    -
    -

    GET /JSON/core/view/sessionLocation/

    +

    Parameters

    -

    Gets the location of the current session file

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionTokenquerystringtruenone

    Example responses

    @@ -19178,11 +37244,12 @@

    coreViewSessionLocation

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19195,27 +37262,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewProxyChainExcludedDomains

    -

    +

    httpSessionsActionRenameSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/proxyChainExcludedDomains/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/proxyChainExcludedDomains/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19231,34 +37297,53 @@ 

    coreViewProxyChainExcludedDomains

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/proxyChainExcludedDomains/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/renameSession/', params={
    +  'site': 'string',  'oldSessionName': 'string',  'newSessionName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/proxyChainExcludedDomains/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/renameSession/

    -p JSON.parse(result) +

    Renames the session of the given site.

    -
    -

    GET /JSON/core/view/proxyChainExcludedDomains/

    +

    Parameters

    -

    Gets all the domains that are excluded from the outgoing proxy. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    oldSessionNamequerystringtruenone
    newSessionNamequerystringtruenone

    Example responses

    @@ -19266,11 +37351,12 @@

    coreViewProxyChainExcludedDomains

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19283,27 +37369,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainSkipName

    -

    +

    httpSessionsActionSetActiveSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainSkipName/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainSkipName/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19319,34 +37404,46 @@ 

    coreViewOptionProxyChainSkipName

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainSkipName/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/setActiveSession/', params={
    +  'site': 'string',  'session': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainSkipName/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/setActiveSession/

    -p JSON.parse(result) +

    Sets the given session as active for the given site.

    -
    -

    GET /JSON/core/view/optionProxyChainSkipName/

    +

    Parameters

    -

    Use view proxyChainExcludedDomains instead.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionquerystringtruenone

    Example responses

    @@ -19354,11 +37451,12 @@

    coreViewOptionProxyChainSkipName

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19371,27 +37469,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyExcludedDomains

    -

    +

    httpSessionsActionSetDefaultSessionTokenEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomains/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomains/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19407,34 +37504,46 @@ 

    coreViewOptionProxyExcludedDomains

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomains/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/', params={
    +  'sessionToken': 'string',  'tokenEnabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyExcludedDomains/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/setDefaultSessionTokenEnabled/

    -p JSON.parse(result) +

    Sets whether or not the default session token with the given name is enabled.

    -
    -

    GET /JSON/core/view/optionProxyExcludedDomains/

    +

    Parameters

    -

    Use view proxyChainExcludedDomains instead.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sessionTokenquerystringtruenone
    tokenEnabledquerystringtruenone

    Example responses

    @@ -19442,11 +37551,12 @@

    coreViewOptionProxyExcludedDomainsdefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19459,27 +37569,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyExcludedDomainsEnabled

    -

    +

    httpSessionsActionSetSessionTokenValue

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19495,34 +37604,60 @@ 

    coreViewOptionProxyExcludedDo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/setSessionTokenValue/', params={
    +  'site': 'string',  'session': 'string',  'sessionToken': 'string',  'tokenValue': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyExcludedDomainsEnabled/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/setSessionTokenValue/

    -p JSON.parse(result) +

    Sets the value of the session token of the given session for the given site.

    -
    -

    GET /JSON/core/view/optionProxyExcludedDomainsEnabled/

    +

    Parameters

    -

    Use view proxyChainExcludedDomains instead.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    sessionquerystringtruenone
    sessionTokenquerystringtruenone
    tokenValuequerystringtruenone

    Example responses

    @@ -19530,11 +37665,12 @@

    coreViewOptionProxyExcludedDo

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19547,27 +37683,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewZapHomePath

    -

    +

    httpSessionsActionUnsetActiveSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/zapHomePath/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/zapHomePath/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19583,34 +37718,39 @@ 

    coreViewZapHomePath

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/zapHomePath/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/action/unsetActiveSession/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/zapHomePath/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/action/unsetActiveSession/

    -p JSON.parse(result) +

    Unsets the active session of the given site.

    - -

    GET /JSON/core/view/zapHomePath/

    +

    Parameters

    -

    Gets the path to ZAP's home directory.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone

    Example responses

    @@ -19618,11 +37758,12 @@

    coreViewZapHomePath

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19635,27 +37776,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionMaximumAlertInstances

    -

    +

    httpSessionsViewActiveSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionMaximumAlertInstances/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/view/activeSession/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionMaximumAlertInstances/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/view/activeSession/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19671,34 +37811,39 @@ 

    coreViewOptionMaximumAlertInstances

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionMaximumAlertInstances/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/view/activeSession/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionMaximumAlertInstances/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/view/activeSession/

    -p JSON.parse(result) +

    Gets the name of the active session for the given site.

    - -

    GET /JSON/core/view/optionMaximumAlertInstances/

    +

    Parameters

    -

    Gets the maximum number of alert instances to include in a report.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone

    Example responses

    @@ -19706,11 +37851,12 @@

    coreViewOptionMaximumAlertInstances

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19723,27 +37869,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionMergeRelatedAlerts

    -

    +

    httpSessionsViewDefaultSessionTokens

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionMergeRelatedAlerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/view/defaultSessionTokens/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionMergeRelatedAlerts/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/view/defaultSessionTokens/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19759,34 +37904,17 @@ 

    coreViewOptionMergeRelatedAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/optionMergeRelatedAlerts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionMergeRelatedAlerts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/httpSessions/view/defaultSessionTokens/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/optionMergeRelatedAlerts/

    +

    GET /JSON/httpSessions/view/defaultSessionTokens/

    -

    Gets whether or not related alerts will be merged in any reports generated.

    +

    Gets the default session tokens.

    Example responses

    @@ -19794,11 +37922,12 @@

    coreViewOptionMergeRelatedAlerts

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19811,27 +37940,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionAlertOverridesFilePath

    -

    +

    httpSessionsViewSessionTokens

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionAlertOverridesFilePath/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/view/sessionTokens/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionAlertOverridesFilePath/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/view/sessionTokens/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19847,34 +37975,39 @@ 

    coreViewOptionAlertOverridesFilePa

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionAlertOverridesFilePath/', params={
    -
    +r = requests.get('http://zap/JSON/httpSessions/view/sessionTokens/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionAlertOverridesFilePath/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/httpSessions/view/sessionTokens/

    -p JSON.parse(result) +

    Gets the names of the session tokens for the given site.

    - -

    GET /JSON/core/view/optionAlertOverridesFilePath/

    +

    Parameters

    -

    Gets the path to the file with alert overrides.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone

    Example responses

    @@ -19882,11 +38015,12 @@

    coreViewOptionAlertOverridesFilePa

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -19899,27 +38033,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewAlert

    -

    +

    httpSessionsViewSessions

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/alert/?id=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/view/sessions/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/alert/?id=0");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/view/sessions/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -19935,37 +38068,21 @@ 

    coreViewAlert

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/alert/', params={
    -  'id': '0'
    +r = requests.get('http://zap/JSON/httpSessions/view/sessions/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/alert/',
    -  params: {
    -  'id' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/alert/

    +

    GET /JSON/httpSessions/view/sessions/

    -

    Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method

    +

    Gets the sessions for the given site. Optionally returning just the session with the given name.

    -

    Parameters

    +

    Parameters

    @@ -19977,12 +38094,19 @@

    Parameters

    - + - + + + + + + + +
    idsite queryintegerstring true none
    sessionquerystringfalsenone
    @@ -19991,11 +38115,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20008,27 +38133,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewAlerts

    -

    +

    httpSessionsViewSites

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/alerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/httpSessions/view/sites/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/alerts/");
    +
    URL obj = new URL("http://zap/JSON/httpSessions/view/sites/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20044,75 +38168,17 @@ 

    coreViewAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/alerts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/alerts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/httpSessions/view/sites/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/alerts/

    - -

    Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts

    - -

    Parameters

    +

    GET /JSON/httpSessions/view/sites/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    riskIdquerystringfalsenone
    +

    Gets all of the sites that have sessions.

    Example responses

    @@ -20120,11 +38186,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20137,27 +38204,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewAlertsSummary

    -

    + +

    keyboard

    +

    keyboardOtherCheatsheetActionOrder

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/alertsSummary/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/keyboard/other/cheatsheetActionOrder/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/alertsSummary/");
    +
    URL obj = new URL("http://zap/OTHER/keyboard/other/cheatsheetActionOrder/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20173,36 +38241,19 @@ 

    coreViewAlertsSummary

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/alertsSummary/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/alertsSummary/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/keyboard/other/cheatsheetActionOrder/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/core/view/alertsSummary/

    +

    GET /OTHER/keyboard/other/cheatsheetActionOrder/

    -

    Gets number of alerts grouped by each risk level, optionally filtering by URL

    +

    Lists the keyboard shortcuts sorted by action, optionally, showing actions without shortcut set.

    -

    Parameters

    +

    Parameters

    @@ -20214,7 +38265,7 @@

    Parameters

    - + @@ -20224,15 +38275,9 @@

    Parameters

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    baseurlincUnset query string false
    @@ -20245,27 +38290,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreViewNumberOfAlerts

    -

    +

    keyboardOtherCheatsheetKeyOrder

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/numberOfAlerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/numberOfAlerts/");
    +
    URL obj = new URL("http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20281,36 +38327,19 @@ 

    coreViewNumberOfAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/numberOfAlerts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/numberOfAlerts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/keyboard/other/cheatsheetKeyOrder/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/core/view/numberOfAlerts/

    +

    GET /OTHER/keyboard/other/cheatsheetKeyOrder/

    -

    Gets the number of alerts, optionally filtering by URL or riskId

    +

    Lists the keyboard shortcuts sorted by keyboard shortcut, optionally, showing actions without shortcut set.

    -

    Parameters

    +

    Parameters

    @@ -20322,14 +38351,7 @@

    Parameters

    - - - - - - - - + @@ -20339,15 +38361,9 @@

    Parameters

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    baseurlquerystringfalsenone
    riskIdincUnset query string false
    @@ -20360,27 +38376,30 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreViewOptionDefaultUserAgent

    -

    + +

    localProxies

    +

    localProxiesActionAddAdditionalProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionDefaultUserAgent/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionDefaultUserAgent/");
    +
    URL obj = new URL("http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20396,34 +38415,67 @@ 

    coreViewOptionDefaultUserAgent

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionDefaultUserAgent/', params={
    -
    +r = requests.get('http://zap/JSON/localProxies/action/addAdditionalProxy/', params={
    +  'address': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionDefaultUserAgent/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/localProxies/action/addAdditionalProxy/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/core/view/optionDefaultUserAgent/

    +

    Parameters

    -

    Gets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    addressquerystringtruenone
    portquerystringtruenone
    behindNatquerystringfalsenone
    alwaysDecodeZipquerystringfalsenone
    removeUnsupportedEncodingsquerystringfalsenone

    Example responses

    @@ -20431,11 +38483,12 @@

    coreViewOptionDefaultUserAgent

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20448,27 +38501,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionDnsTtlSuccessfulQueries

    -

    +

    localProxiesActionRemoveAdditionalProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/");
    +
    URL obj = new URL("http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20484,34 +38536,46 @@ 

    coreViewOptionDnsTtlSuccessfulQue

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/', params={
    -
    +r = requests.get('http://zap/JSON/localProxies/action/removeAdditionalProxy/', params={
    +  'address': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionDnsTtlSuccessfulQueries/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/localProxies/action/removeAdditionalProxy/

    -p JSON.parse(result) +

    Use the API endpoints in the 'network' component instead.

    - -

    GET /JSON/core/view/optionDnsTtlSuccessfulQueries/

    +

    Parameters

    -

    Gets the TTL (in seconds) of successful DNS queries.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    addressquerystringtruenone
    portquerystringtruenone

    Example responses

    @@ -20519,11 +38583,12 @@

    coreViewOptionDnsTtlSuccessfulQue

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20536,27 +38601,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionHttpState

    -

    +

    localProxiesViewAdditionalProxies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionHttpState/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/localProxies/view/additionalProxies/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionHttpState/");
    +
    URL obj = new URL("http://zap/JSON/localProxies/view/additionalProxies/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20572,32 +38636,17 @@ 

    coreViewOptionHttpState

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/optionHttpState/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionHttpState/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/localProxies/view/additionalProxies/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/optionHttpState/

    +

    GET /JSON/localProxies/view/additionalProxies/

    + +

    Use the API endpoints in the 'network' component instead.

    Example responses

    @@ -20605,11 +38654,12 @@

    coreViewOptionHttpState

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20622,27 +38672,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainName

    -

    + +

    network

    +

    networkActionAddAlias

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainName/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addAlias/?name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainName/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addAlias/?name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20658,32 +38709,46 @@ 

    coreViewOptionProxyChainName

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainName/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addAlias/', params={
    +  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/addAlias/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainName/', - params: { - }, headers: headers +

    Adds an alias for the local servers/proxies.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainName/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    namequerystringtrueThe name of the alias.
    enabledquerystringfalseThe enabled state, true or false.

    Example responses

    @@ -20691,11 +38756,12 @@

    coreViewOptionProxyChainName

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20708,27 +38774,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainPassword

    -

    +

    networkActionAddHttpProxyExclusion

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainPassword/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addHttpProxyExclusion/?host=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPassword/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addHttpProxyExclusion/?host=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20744,32 +38809,46 @@ 

    coreViewOptionProxyChainPassword

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainPassword/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addHttpProxyExclusion/', params={
    +  'host': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/addHttpProxyExclusion/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPassword/', - params: { - }, headers: headers +

    Adds a host to be excluded from the HTTP proxy.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainPassword/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    hostquerystringtrueThe value of the host, a regular expression.
    enabledquerystringfalseThe enabled state, true or false.

    Example responses

    @@ -20777,11 +38856,12 @@

    coreViewOptionProxyChainPassword

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20794,27 +38874,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainPort

    -

    +

    networkActionAddLocalServer

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainPort/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addLocalServer/?address=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPort/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addLocalServer/?address=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20830,32 +38909,81 @@ 

    coreViewOptionProxyChainPort

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainPort/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addLocalServer/', params={
    +  'address': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/addLocalServer/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPort/', - params: { - }, headers: headers +

    Adds a local server/proxy.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainPort/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    addressquerystringtrueThe address of the local server/proxy.
    portquerystringtrueThe port of the local server/proxy.
    apiquerystringfalseIf the ZAP API is available, true or false.
    proxyquerystringfalseIf the local server should proxy, true or false.
    behindNatquerystringfalseIf the local server is behind NAT, true or false.
    decodeResponsequerystringfalseIf the response should be decoded, true or false.
    removeAcceptEncodingquerystringfalseIf the request header Accept-Encoding should be removed, true or false.

    Example responses

    @@ -20863,11 +38991,12 @@

    coreViewOptionProxyChainPort

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20880,27 +39009,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainRealm

    -

    +

    networkActionAddPassThrough

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainRealm/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addPassThrough/?authority=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainRealm/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addPassThrough/?authority=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -20916,32 +39044,46 @@ 

    coreViewOptionProxyChainRealm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainRealm/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addPassThrough/', params={
    +  'authority': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/addPassThrough/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainRealm/', - params: { - }, headers: headers +

    Adds an authority to pass-through the local proxies.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainRealm/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    authorityquerystringtrueThe value of the authority, can be a regular expression.
    enabledquerystringfalseThe enabled state, true or false.

    Example responses

    @@ -20949,11 +39091,12 @@

    coreViewOptionProxyChainRealm

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -20966,27 +39109,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainUserName

    -

    +

    networkActionAddPkcs12ClientCertificate

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainUserName/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addPkcs12ClientCertificate/?filePath=string&password=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainUserName/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addPkcs12ClientCertificate/?filePath=string&password=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21002,32 +39144,53 @@ 

    coreViewOptionProxyChainUserName

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainUserName/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addPkcs12ClientCertificate/', params={
    +  'filePath': 'string',  'password': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/addPkcs12ClientCertificate/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainUserName/', - params: { - }, headers: headers +

    Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainUserName/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    filePathquerystringtrueThe file path.
    passwordquerystringtrueThe password for the file.
    indexquerystringfalseThe index of the certificate in the file, defaults to 0.

    Example responses

    @@ -21035,11 +39198,12 @@

    coreViewOptionProxyChainUserName

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21052,27 +39216,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionTimeoutInSecs

    -

    +

    networkActionAddRateLimitRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionTimeoutInSecs/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/addRateLimitRule/?description=string&enabled=string&matchRegex=string&matchString=string&requestsPerSecond=string&groupBy=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionTimeoutInSecs/");
    +
    URL obj = new URL("http://zap/JSON/network/action/addRateLimitRule/?description=string&enabled=string&matchRegex=string&matchString=string&requestsPerSecond=string&groupBy=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21088,34 +39251,74 @@ 

    coreViewOptionTimeoutInSecs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionTimeoutInSecs/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/addRateLimitRule/', params={
    +  'description': 'string',  'enabled': 'string',  'matchRegex': 'string',  'matchString': 'string',  'requestsPerSecond': 'string',  'groupBy': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/view/optionTimeoutInSecs/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/network/action/addRateLimitRule/

    -p JSON.parse(result) +

    Adds a rate limit rule

    - -

    GET /JSON/core/view/optionTimeoutInSecs/

    +

    Parameters

    -

    Gets the connection time out, in seconds.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    descriptionquerystringtrueA description that allows you to identify the rule. Each rule must have a unique description.
    enabledquerystringtrueThe enabled state, true or false.
    matchRegexquerystringtrueRegex used to match the host.
    matchStringquerystringtruePlain string match is handled based on DNS conventions. If the string has one or two components.
    requestsPerSecondquerystringtrueThe maximum number of requests per second.
    groupByquerystringtrueHow to group hosts when applying rate limiting: rule or host

    Example responses

    @@ -21123,11 +39326,12 @@

    coreViewOptionTimeoutInSecs

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21140,27 +39344,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionHttpStateEnabled

    -

    +

    networkActionGenerateRootCaCert

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionHttpStateEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/generateRootCaCert/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionHttpStateEnabled/");
    +
    URL obj = new URL("http://zap/JSON/network/action/generateRootCaCert/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21176,32 +39379,17 @@ 

    coreViewOptionHttpStateEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/view/optionHttpStateEnabled/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/view/optionHttpStateEnabled/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/network/action/generateRootCaCert/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/view/optionHttpStateEnabled/

    +

    GET /JSON/network/action/generateRootCaCert/

    + +

    Generates a new Root CA certificate, used to issue server certificates.

    Example responses

    @@ -21209,11 +39397,12 @@

    coreViewOptionHttpStateEnabled

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21226,27 +39415,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionProxyChainPrompt

    -

    +

    networkActionImportRootCaCert

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionProxyChainPrompt/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/importRootCaCert/?filePath=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionProxyChainPrompt/");
    +
    URL obj = new URL("http://zap/JSON/network/action/importRootCaCert/?filePath=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21262,32 +39450,39 @@ 

    coreViewOptionProxyChainPrompt

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionProxyChainPrompt/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/importRootCaCert/', params={
    +  'filePath': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/importRootCaCert/

    -result = RestClient.get 'http://zap/JSON/core/view/optionProxyChainPrompt/', - params: { - }, headers: headers +

    Imports a Root CA certificate to be used to issue server certificates.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionProxyChainPrompt/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    filePathquerystringtrueThe file system path to the PEM file, containing the certificate and private key.

    Example responses

    @@ -21295,11 +39490,12 @@

    coreViewOptionProxyChainPrompt

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21312,27 +39508,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionSingleCookieRequestHeader

    -

    +

    networkActionRemoveAlias

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionSingleCookieRequestHeader/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/removeAlias/?name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionSingleCookieRequestHeader/");
    +
    URL obj = new URL("http://zap/JSON/network/action/removeAlias/?name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21348,32 +39543,39 @@ 

    coreViewOptionSingleCookieReque

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionSingleCookieRequestHeader/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/removeAlias/', params={
    +  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/removeAlias/

    -result = RestClient.get 'http://zap/JSON/core/view/optionSingleCookieRequestHeader/', - params: { - }, headers: headers +

    Removes an alias.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionSingleCookieRequestHeader/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    namequerystringtrueThe name of the alias.

    Example responses

    @@ -21381,11 +39583,12 @@

    coreViewOptionSingleCookieReque

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21398,27 +39601,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionUseProxyChain

    -

    +

    networkActionRemoveHttpProxyExclusion

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionUseProxyChain/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/removeHttpProxyExclusion/?host=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChain/");
    +
    URL obj = new URL("http://zap/JSON/network/action/removeHttpProxyExclusion/?host=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21434,32 +39636,39 @@ 

    coreViewOptionUseProxyChain

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionUseProxyChain/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/removeHttpProxyExclusion/', params={
    +  'host': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/removeHttpProxyExclusion/

    -result = RestClient.get 'http://zap/JSON/core/view/optionUseProxyChain/', - params: { - }, headers: headers +

    Removes an HTTP proxy exclusion.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionUseProxyChain/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    hostquerystringtrueThe value of the host.

    Example responses

    @@ -21467,11 +39676,12 @@

    coreViewOptionUseProxyChain

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21484,27 +39694,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreViewOptionUseProxyChainAuth

    -

    +

    networkActionRemoveLocalServer

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/view/optionUseProxyChainAuth/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/removeLocalServer/?address=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/view/optionUseProxyChainAuth/");
    +
    URL obj = new URL("http://zap/JSON/network/action/removeLocalServer/?address=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21520,32 +39729,46 @@ 

    coreViewOptionUseProxyChainAuth

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/view/optionUseProxyChainAuth/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/removeLocalServer/', params={
    +  'address': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/removeLocalServer/

    -result = RestClient.get 'http://zap/JSON/core/view/optionUseProxyChainAuth/', - params: { - }, headers: headers +

    Removes a local server/proxy.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/view/optionUseProxyChainAuth/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    addressquerystringtrueThe address of the local server/proxy.
    portquerystringtrueThe port of the local server/proxy.

    Example responses

    @@ -21553,11 +39776,12 @@

    coreViewOptionUseProxyChainAuth

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21570,27 +39794,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionAccessUrl

    -

    +

    networkActionRemovePassThrough

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/accessUrl/?url=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/removePassThrough/?authority=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/accessUrl/?url=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/removePassThrough/?authority=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21606,37 +39829,21 @@ 

    coreActionAccessUrl

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/accessUrl/', params={
    -  'url': 'string'
    +r = requests.get('http://zap/JSON/network/action/removePassThrough/', params={
    +  'authority': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/accessUrl/',
    -  params: {
    -  'url' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/accessUrl/

    +

    GET /JSON/network/action/removePassThrough/

    -

    Convenient and simple action to access a URL, optionally following redirections. Returns the request sent and response received and followed redirections, if any. Other actions are available which offer more control on what is sent, like, 'sendRequest' or 'sendHarRequest'.

    +

    Removes a pass-through.

    -

    Parameters

    +

    Parameters

    @@ -21648,18 +39855,11 @@

    Parameters

    - + - - - - - - - - +
    urlauthority query string truenone
    followRedirectsquerybooleanfalsenoneThe value of the authority.
    @@ -21669,11 +39869,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21686,27 +39887,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionShutdown

    -

    +

    networkActionRemoveRateLimitRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/shutdown/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/removeRateLimitRule/?description=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/shutdown/");
    +
    URL obj = new URL("http://zap/JSON/network/action/removeRateLimitRule/?description=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21722,34 +39922,39 @@ 

    coreActionShutdown

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/shutdown/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/removeRateLimitRule/', params={
    +  'description': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/action/shutdown/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/network/action/removeRateLimitRule/

    -p JSON.parse(result) +

    Remove a rate limit rule

    - -

    GET /JSON/core/action/shutdown/

    +

    Parameters

    -

    Shuts down ZAP

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    descriptionquerystringtrueThe description of the rule to remove.

    Example responses

    @@ -21757,11 +39962,12 @@

    coreActionShutdown

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21774,27 +39980,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionNewSession

    -

    +

    networkActionSetAliasEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/newSession/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setAliasEnabled/?name=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/newSession/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setAliasEnabled/?name=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21810,36 +40015,21 @@ 

    coreActionNewSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/newSession/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setAliasEnabled/', params={
    +  'name': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/newSession/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/newSession/

    +

    GET /JSON/network/action/setAliasEnabled/

    -

    Creates a new session, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    +

    Sets whether or not an alias is enabled.

    -

    Parameters

    +

    Parameters

    @@ -21854,15 +40044,15 @@

    Parameters

    - - + + - + - - - + + +
    name query stringfalsenonetrueThe name of the alias.
    overwriteenabled querybooleanfalsenonestringtrueThe enabled state, true or false.
    @@ -21872,11 +40062,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21889,27 +40080,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionLoadSession

    -

    +

    networkActionSetConnectionTimeout

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/loadSession/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setConnectionTimeout/?timeout=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/loadSession/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setConnectionTimeout/?timeout=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -21925,36 +40115,21 @@ 

    coreActionLoadSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/loadSession/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setConnectionTimeout/', params={
    +  'timeout': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/loadSession/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/loadSession/

    +

    GET /JSON/network/action/setConnectionTimeout/

    -

    Loads the session with the given name. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    +

    Sets the timeout, for reads and connects.

    -

    Parameters

    +

    Parameters

    @@ -21966,11 +40141,11 @@

    Parameters

    - + - - + +
    nametimeout query stringfalsenonetrueThe timeout, in seconds.
    @@ -21980,11 +40155,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -21997,27 +40173,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSaveSession

    -

    +

    networkActionSetDefaultUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/saveSession/?name=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setDefaultUserAgent/?userAgent=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/saveSession/?name=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setDefaultUserAgent/?userAgent=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22033,37 +40208,21 @@ 

    coreActionSaveSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/saveSession/', params={
    -  'name': 'string'
    +r = requests.get('http://zap/JSON/network/action/setDefaultUserAgent/', params={
    +  'userAgent': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/saveSession/',
    -  params: {
    -  'name' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/saveSession/

    +

    GET /JSON/network/action/setDefaultUserAgent/

    -

    Saves the session with the name supplied, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    +

    Sets the default user-agent.

    -

    Parameters

    +

    Parameters

    @@ -22075,18 +40234,11 @@

    Parameters

    - + - - - - - - - - +
    nameuserAgent query string truenone
    overwritequerybooleanfalsenoneThe default user-agent.
    @@ -22096,11 +40248,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22113,27 +40266,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSnapshotSession

    -

    +

    networkActionSetDnsTtlSuccessfulQueries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/snapshotSession/?name=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/?ttl=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/snapshotSession/?name=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/?ttl=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22149,37 +40301,21 @@ 

    coreActionSnapshotSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/snapshotSession/', params={
    -  'name': 'string'
    +r = requests.get('http://zap/JSON/network/action/setDnsTtlSuccessfulQueries/', params={
    +  'ttl': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/snapshotSession/',
    -  params: {
    -  'name' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/snapshotSession/

    +

    GET /JSON/network/action/setDnsTtlSuccessfulQueries/

    -

    Snapshots the session, optionally with the given name, and overwriting existing files. If no name is specified the name of the current session with a timestamp appended is used. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.

    +

    Sets the TTL of successful DNS queries.

    -

    Parameters

    +

    Parameters

    @@ -22191,18 +40327,11 @@

    Parameters

    - + - - - - - - - - +
    namettl query string truenone
    overwritequerybooleanfalsenoneThe TTL, in seconds. Negative number, cache forever. Zero, disables caching. Positive number, the number of seconds the successful DNS queries will be cached.
    @@ -22212,11 +40341,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22229,27 +40359,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionClearExcludedFromProxy

    -

    +

    networkActionSetHttpProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/clearExcludedFromProxy/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setHttpProxy/?host=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/clearExcludedFromProxy/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setHttpProxy/?host=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22265,34 +40394,67 @@ 

    coreActionClearExcludedFromProxy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/clearExcludedFromProxy/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setHttpProxy/', params={
    +  'host': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/action/clearExcludedFromProxy/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/network/action/setHttpProxy/

    -p JSON.parse(result) +

    Sets the HTTP proxy configuration.

    - -

    GET /JSON/core/action/clearExcludedFromProxy/

    +

    Parameters

    -

    Clears the regexes of URLs excluded from the local proxies.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    hostquerystringtrueThe host, name or address.
    portquerystringtrueThe port.
    realmquerystringfalseThe authentication realm.
    usernamequerystringfalseThe user name.
    passwordquerystringfalseThe password.

    Example responses

    @@ -22300,11 +40462,12 @@

    coreActionClearExcludedFromProxy

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22317,27 +40480,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionExcludeFromProxy

    -

    +

    networkActionSetHttpProxyAuthEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/excludeFromProxy/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setHttpProxyAuthEnabled/?enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/excludeFromProxy/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setHttpProxyAuthEnabled/?enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22353,37 +40515,21 @@ 

    coreActionExcludeFromProxy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/excludeFromProxy/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/network/action/setHttpProxyAuthEnabled/', params={
    +  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/excludeFromProxy/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/excludeFromProxy/

    +

    GET /JSON/network/action/setHttpProxyAuthEnabled/

    -

    Adds a regex of URLs that should be excluded from the local proxies.

    +

    Sets whether or not the HTTP proxy authentication is enabled.

    -

    Parameters

    +

    Parameters

    @@ -22395,11 +40541,11 @@

    Parameters

    - + - +
    regexenabled query string truenoneThe enabled state, true or false.
    @@ -22409,11 +40555,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22426,27 +40573,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetHomeDirectory

    -

    +

    networkActionSetHttpProxyEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setHomeDirectory/?dir=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setHttpProxyEnabled/?enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setHomeDirectory/?dir=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setHttpProxyEnabled/?enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22462,35 +40608,21 @@ 

    coreActionSetHomeDirectory

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setHomeDirectory/', params={
    -  'dir': 'string'
    +r = requests.get('http://zap/JSON/network/action/setHttpProxyEnabled/', params={
    +  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/setHomeDirectory/',
    -  params: {
    -  'dir' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setHomeDirectory/

    +

    GET /JSON/network/action/setHttpProxyEnabled/

    -

    Parameters

    +

    Sets whether or not the HTTP proxy is enabled.

    + +

    Parameters

    @@ -22502,11 +40634,11 @@

    Parameters

    - + - +
    direnabled query string truenoneThe enabled state, true or false.
    @@ -22516,11 +40648,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22533,27 +40666,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetMode

    -

    +

    networkActionSetHttpProxyExclusionEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setMode/?mode=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setHttpProxyExclusionEnabled/?host=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setMode/?mode=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setHttpProxyExclusionEnabled/?host=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22569,37 +40701,21 @@ 

    coreActionSetMode

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setMode/', params={
    -  'mode': 'string'
    +r = requests.get('http://zap/JSON/network/action/setHttpProxyExclusionEnabled/', params={
    +  'host': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/setMode/',
    -  params: {
    -  'mode' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setMode/

    +

    GET /JSON/network/action/setHttpProxyExclusionEnabled/

    -

    Sets the mode, which may be one of [safe, protect, standard, attack]

    +

    Sets whether or not an HTTP proxy exclusion is enabled.

    -

    Parameters

    +

    Parameters

    @@ -22611,11 +40727,18 @@

    Parameters

    - + - + + + + + + + +
    modehost query string truenoneThe value of the host.
    enabledquerystringtrueThe enabled state, true or false.
    @@ -22625,11 +40748,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22642,27 +40766,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionGenerateRootCA

    -

    +

    networkActionSetPassThroughEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/generateRootCA/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setPassThroughEnabled/?authority=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/generateRootCA/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setPassThroughEnabled/?authority=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22678,34 +40801,46 @@ 

    coreActionGenerateRootCA

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/generateRootCA/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setPassThroughEnabled/', params={
    +  'authority': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/generateRootCA/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/network/action/setPassThroughEnabled/

    -p JSON.parse(result) +

    Sets whether or not a pass-through is enabled.

    - -

    GET /JSON/core/action/generateRootCA/

    +

    Parameters

    -

    Generates a new Root CA certificate for the local proxies.

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    authorityquerystringtrueThe value of the authority.
    enabledquerystringtrueThe enabled state, true or false.

    Example responses

    @@ -22713,11 +40848,12 @@

    coreActionGenerateRootCA

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22730,27 +40866,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSendRequest

    -

    +

    networkActionSetRateLimitRuleEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/sendRequest/?request=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setRateLimitRuleEnabled/?description=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/sendRequest/?request=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setRateLimitRuleEnabled/?description=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22766,37 +40901,21 @@ 

    coreActionSendRequest

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/sendRequest/', params={
    -  'request': 'string'
    +r = requests.get('http://zap/JSON/network/action/setRateLimitRuleEnabled/', params={
    +  'description': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/sendRequest/',
    -  params: {
    -  'request' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/sendRequest/

    +

    GET /JSON/network/action/setRateLimitRuleEnabled/

    -

    Sends the HTTP request, optionally following redirections. Returns the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

    +

    Set enabled state for a rate limit rule.

    -

    Parameters

    +

    Parameters

    @@ -22808,18 +40927,18 @@

    Parameters

    - + - + - + - - - + + +
    requestdescription query string truenoneThe description of the rule to modify.
    followRedirectsenabled querybooleanfalsenonestringtrueThe enabled state, true or false.
    @@ -22829,11 +40948,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22846,27 +40966,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionRunGarbageCollection

    -

    +

    networkActionSetRootCaCertValidity

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/runGarbageCollection/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setRootCaCertValidity/?validity=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/runGarbageCollection/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setRootCaCertValidity/?validity=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22882,32 +41001,39 @@ 

    coreActionRunGarbageCollection

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/runGarbageCollection/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setRootCaCertValidity/', params={
    +  'validity': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/network/action/setRootCaCertValidity/

    -result = RestClient.get 'http://zap/JSON/core/action/runGarbageCollection/', - params: { - }, headers: headers +

    Sets the Root CA certificate validity. Used when generating a new Root CA certificate.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/core/action/runGarbageCollection/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    validityquerystringtrueThe number of days that the generated Root CA certificate will be valid for.

    Example responses

    @@ -22915,11 +41041,12 @@

    coreActionRunGarbageCollection

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -22932,27 +41059,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionDeleteSiteNode

    -

    +

    networkActionSetServerCertValidity

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/deleteSiteNode/?url=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setServerCertValidity/?validity=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/deleteSiteNode/?url=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setServerCertValidity/?validity=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -22968,37 +41094,21 @@ 

    coreActionDeleteSiteNode

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/deleteSiteNode/', params={
    -  'url': 'string'
    +r = requests.get('http://zap/JSON/network/action/setServerCertValidity/', params={
    +  'validity': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/deleteSiteNode/',
    -  params: {
    -  'url' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/deleteSiteNode/

    +

    GET /JSON/network/action/setServerCertValidity/

    -

    Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).

    +

    Sets the server certificate validity. Used when generating server certificates.

    -

    Parameters

    +

    Parameters

    @@ -23010,25 +41120,11 @@

    Parameters

    - + - - - - - - - - - - - - - - - +
    urlvalidity query string truenone
    methodquerystringfalsenone
    postDataquerystringfalsenoneThe number of days that the generated server certificates will be valid for.
    @@ -23038,11 +41134,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23055,27 +41152,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionAddProxyChainExcludedDomain

    -

    +

    networkActionSetSocksProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setSocksProxy/?host=string&port=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/addProxyChainExcludedDomain/?value=string");
    +
    URL obj = new URL("http://zap/JSON/network/action/setSocksProxy/?host=string&port=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23091,37 +41187,21 @@ 

    coreActionAddProxyChainExcludedDo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/addProxyChainExcludedDomain/', params={
    -  'value': 'string'
    +r = requests.get('http://zap/JSON/network/action/setSocksProxy/', params={
    +  'host': 'string',  'port': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/addProxyChainExcludedDomain/',
    -  params: {
    -  'value' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/addProxyChainExcludedDomain/

    +

    GET /JSON/network/action/setSocksProxy/

    -

    Adds a domain to be excluded from the outgoing proxy, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

    +

    Sets the SOCKS proxy configuration.

    -

    Parameters

    +

    Parameters

    @@ -23133,25 +41213,46 @@

    Parameters

    - + - + - + - + + + + + + + + - + - + - + - + + + + + + + + + + + + + + +
    valuehost query string truenoneThe host, name or address.
    isRegexport querybooleanstringtrueThe port.
    versionquerystring falsenoneThe SOCKS version.
    isEnableduseDns querybooleanstring falsenoneIf the names should be resolved by the SOCKS proxy, true or false.
    usernamequerystringfalseThe user name.
    passwordquerystringfalseThe password.
    @@ -23161,11 +41262,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23178,27 +41280,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionModifyProxyChainExcludedDomain

    -

    +

    networkActionSetSocksProxyEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setSocksProxyEnabled/?enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/modifyProxyChainExcludedDomain/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/network/action/setSocksProxyEnabled/?enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23214,37 +41315,21 @@ 

    coreActionModifyProxyChainExcl

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/modifyProxyChainExcludedDomain/', params={
    -  'idx': '0'
    +r = requests.get('http://zap/JSON/network/action/setSocksProxyEnabled/', params={
    +  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/modifyProxyChainExcludedDomain/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/modifyProxyChainExcludedDomain/

    +

    GET /JSON/network/action/setSocksProxyEnabled/

    -

    Modifies a domain excluded from the outgoing proxy. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view proxyChainExcludedDomains.

    +

    Sets whether or not the SOCKS proxy is enabled.

    -

    Parameters

    +

    Parameters

    @@ -23256,32 +41341,11 @@

    Parameters

    - - - - - - - - + - - - - - - - - - - - - - - - - + +
    idxqueryintegertruenone
    valueenabled query stringfalsenone
    isRegexquerybooleanfalsenone
    isEnabledquerybooleanfalsenonetrueThe enabled state, true or false.
    @@ -23291,11 +41355,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23308,27 +41373,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionRemoveProxyChainExcludedDomain

    -

    +

    networkActionSetUseClientCertificate

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setUseClientCertificate/?use=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/removeProxyChainExcludedDomain/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/network/action/setUseClientCertificate/?use=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23344,37 +41408,21 @@ 

    coreActionRemoveProxyChainExcl

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/removeProxyChainExcludedDomain/', params={
    -  'idx': '0'
    +r = requests.get('http://zap/JSON/network/action/setUseClientCertificate/', params={
    +  'use': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/removeProxyChainExcludedDomain/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/removeProxyChainExcludedDomain/

    +

    GET /JSON/network/action/setUseClientCertificate/

    -

    Removes a domain excluded from the outgoing proxy, with the given index. The index can be obtained with the view proxyChainExcludedDomains.

    +

    Sets whether or not to use the active client certificate.

    -

    Parameters

    +

    Parameters

    @@ -23386,11 +41434,11 @@

    Parameters

    - + - + - +
    idxuse queryintegerstring truenoneThe use state, true or false.
    @@ -23400,11 +41448,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23417,27 +41466,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionEnableAllProxyChainExcludedDomains

    -

    +

    networkActionSetUseGlobalHttpState

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/action/setUseGlobalHttpState/?use=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/");
    +
    URL obj = new URL("http://zap/JSON/network/action/setUseGlobalHttpState/?use=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23453,34 +41501,39 @@ 

    coreActionEnableAllProxyCh

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/', params={
    -
    +r = requests.get('http://zap/JSON/network/action/setUseGlobalHttpState/', params={
    +  'use': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/core/action/enableAllProxyChainExcludedDomains/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/network/action/setUseGlobalHttpState/

    -p JSON.parse(result) +

    Sets whether or not to use the global HTTP state.

    - -

    GET /JSON/core/action/enableAllProxyChainExcludedDomains/

    +

    Parameters

    -

    Enables all domains excluded from the outgoing proxy.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    usequerystringtrueThe use state, true or false.

    Example responses

    @@ -23488,11 +41541,12 @@

    coreActionEnableAllProxyCh

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23505,27 +41559,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionDisableAllProxyChainExcludedDomains

    -

    +

    networkOtherProxy.pac

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/network/other/proxy.pac/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/");
    +
    URL obj = new URL("http://zap/OTHER/network/other/proxy.pac/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23541,46 +41594,23 @@ 

    coreActionDisableAllProxy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/disableAllProxyChainExcludedDomains/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/network/other/proxy.pac/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/core/action/disableAllProxyChainExcludedDomains/

    +

    GET /OTHER/network/other/proxy.pac/

    -

    Disables all domains excluded from the outgoing proxy.

    +

    Provides a PAC file, proxying through the main proxy.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -23593,27 +41623,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreActionSetOptionMaximumAlertInstances

    -

    +

    networkOtherRootCaCert

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/network/other/rootCaCert/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionMaximumAlertInstances/?numberOfInstances=0");
    +
    URL obj = new URL("http://zap/OTHER/network/other/rootCaCert/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23629,67 +41660,23 @@ 

    coreActionSetOptionMaximumAler

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionMaximumAlertInstances/', params={
    -  'numberOfInstances': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionMaximumAlertInstances/',
    -  params: {
    -  'numberOfInstances' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/OTHER/network/other/rootCaCert/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/core/action/setOptionMaximumAlertInstances/

    - -

    Sets the maximum number of alert instances to include in a report. A value of zero is treated as unlimited.

    - -

    Parameters

    +

    GET /OTHER/network/other/rootCaCert/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    numberOfInstancesqueryintegertruenone
    +

    Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -23702,27 +41689,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreActionSetOptionMergeRelatedAlerts

    -

    +

    networkOtherSetProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/network/other/setProxy/?proxy=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionMergeRelatedAlerts/?enabled=true");
    +
    URL obj = new URL("http://zap/OTHER/network/other/setProxy/?proxy=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23738,37 +41726,21 @@ 

    coreActionSetOptionMergeRelatedAl

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setOptionMergeRelatedAlerts/', params={
    -  'enabled': 'true'
    +r = requests.get('http://zap/OTHER/network/other/setProxy/', params={
    +  'proxy': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionMergeRelatedAlerts/',
    -  params: {
    -  'enabled' => 'boolean'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/core/action/setOptionMergeRelatedAlerts/

    +

    GET /OTHER/network/other/setProxy/

    -

    Sets whether or not related alerts will be merged in any reports generated.

    +

    Sets the HTTP proxy configuration.

    -

    Parameters

    +

    Parameters

    @@ -23780,25 +41752,19 @@

    Parameters

    - + - + - +
    enabledproxy querybooleanstring truenoneThe JSON object containing the HTTP proxy configuration.

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -23811,27 +41777,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreActionSetOptionAlertOverridesFilePath

    -

    +

    networkViewGetAliases

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionAlertOverridesFilePath/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getAliases/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionAlertOverridesFilePath/");
    +
    URL obj = new URL("http://zap/JSON/network/view/getAliases/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -23847,54 +41814,17 @@ 

    coreActionSetOptionAlertOverr

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionAlertOverridesFilePath/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionAlertOverridesFilePath/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getAliases/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionAlertOverridesFilePath/

    - -

    Sets (or clears, if empty) the path to the file with alert overrides.

    - -

    Parameters

    +

    GET /JSON/network/view/getAliases/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    filePathquerystringfalsenone
    +

    Gets the aliases used to identify the local servers/proxies.

    Example responses

    @@ -23902,11 +41832,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -23919,106 +41850,52 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionEnablePKCS12ClientCertificate

    -

    +

    networkViewGetConnectionTimeout

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getConnectionTimeout/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/enablePKCS12ClientCertificate/?filePath=string&password=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getConnectionTimeout/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
    -int responseCode = con.getResponseCode();
    -BufferedReader in = new BufferedReader(
    -    new InputStreamReader(con.getInputStream()));
    -String inputLine;
    -StringBuffer response = new StringBuffer();
    -while ((inputLine = in.readLine()) != null) {
    -    response.append(inputLine);
    -}
    -in.close();
    -System.out.println(response.toString());
    -
    -
    import requests
    -headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/enablePKCS12ClientCertificate/', params={
    -  'filePath': 'string',  'password': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/enablePKCS12ClientCertificate/',
    -  params: {
    -  'filePath' => 'string',
    -'password' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    -
    -
    -

    GET /JSON/core/action/enablePKCS12ClientCertificate/

    - -

    Enables use of a PKCS12 client certificate for the certificate with the given file system path, password, and optional index.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    filePathquerystringtruenone
    passwordquerystringtruenone
    indexquerystringfalsenone
    +int responseCode = con.getResponseCode(); +BufferedReader in = new BufferedReader( + new InputStreamReader(con.getInputStream())); +String inputLine; +StringBuffer response = new StringBuffer(); +while ((inputLine = in.readLine()) != null) { + response.append(inputLine); +} +in.close(); +System.out.println(response.toString()); + +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/network/view/getConnectionTimeout/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/network/view/getConnectionTimeout/

    + +

    Gets the connection timeout, in seconds.

    Example responses

    @@ -24026,11 +41903,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24043,27 +41921,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionDisableClientCertificate

    -

    +

    networkViewGetDefaultUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/disableClientCertificate/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getDefaultUserAgent/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/disableClientCertificate/");
    +
    URL obj = new URL("http://zap/JSON/network/view/getDefaultUserAgent/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24079,34 +41956,17 @@ 

    coreActionDisableClientCertificate

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/disableClientCertificate/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/disableClientCertificate/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getDefaultUserAgent/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/disableClientCertificate/

    +

    GET /JSON/network/view/getDefaultUserAgent/

    -

    Disables the option for use of client certificates.

    +

    Gets the default user-agent.

    Example responses

    @@ -24114,11 +41974,12 @@

    coreActionDisableClientCertificatedefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24131,27 +41992,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionDeleteAllAlerts

    -

    +

    networkViewGetDnsTtlSuccessfulQueries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/deleteAllAlerts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/deleteAllAlerts/");
    +
    URL obj = new URL("http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24167,34 +42027,17 @@ 

    coreActionDeleteAllAlerts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/deleteAllAlerts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/deleteAllAlerts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getDnsTtlSuccessfulQueries/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/deleteAllAlerts/

    +

    GET /JSON/network/view/getDnsTtlSuccessfulQueries/

    -

    Deletes all alerts of the current session.

    +

    Gets the TTL (in seconds) of successful DNS queries.

    Example responses

    @@ -24202,11 +42045,12 @@

    coreActionDeleteAllAlerts

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24219,27 +42063,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionDeleteAlert

    -

    +

    networkViewGetHttpProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/deleteAlert/?id=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getHttpProxy/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/deleteAlert/?id=0");
    +
    URL obj = new URL("http://zap/JSON/network/view/getHttpProxy/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24255,55 +42098,17 @@ 

    coreActionDeleteAlert

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/deleteAlert/', params={
    -  'id': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/deleteAlert/',
    -  params: {
    -  'id' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getHttpProxy/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/deleteAlert/

    - -

    Deletes the alert with the given ID.

    - -

    Parameters

    +

    GET /JSON/network/view/getHttpProxy/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idqueryintegertruenone
    +

    Gets the HTTP proxy.

    Example responses

    @@ -24311,11 +42116,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24328,27 +42134,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionDefaultUserAgent

    -

    +

    networkViewGetHttpProxyExclusions

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getHttpProxyExclusions/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionDefaultUserAgent/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getHttpProxyExclusions/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24364,55 +42169,17 @@ 

    coreActionSetOptionDefaultUserAgent

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionDefaultUserAgent/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionDefaultUserAgent/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getHttpProxyExclusions/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionDefaultUserAgent/

    - -

    Sets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).

    - -

    Parameters

    +

    GET /JSON/network/view/getHttpProxyExclusions/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the HTTP proxy exclusions.

    Example responses

    @@ -24420,11 +42187,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24437,27 +42205,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainName

    -

    +

    networkViewGetLocalServers

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainName/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getLocalServers/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainName/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getLocalServers/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24473,53 +42240,17 @@ 

    coreActionSetOptionProxyChainName

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainName/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainName/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getLocalServers/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainName/

    +

    GET /JSON/network/view/getLocalServers/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the local servers/proxies.

    Example responses

    @@ -24527,11 +42258,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24544,27 +42276,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainPassword

    -

    +

    networkViewGetPassThroughs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getPassThroughs/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPassword/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getPassThroughs/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24580,53 +42311,17 @@ 

    coreActionSetOptionProxyChainPass

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPassword/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPassword/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getPassThroughs/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainPassword/

    - -

    Parameters

    +

    GET /JSON/network/view/getPassThroughs/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the authorities that will pass-through the local proxies.

    Example responses

    @@ -24634,11 +42329,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24651,27 +42347,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainRealm

    -

    +

    networkViewGetRateLimitRules

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getRateLimitRules/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainRealm/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getRateLimitRules/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24687,53 +42382,17 @@ 

    coreActionSetOptionProxyChainRealm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainRealm/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainRealm/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getRateLimitRules/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainRealm/

    +

    GET /JSON/network/view/getRateLimitRules/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    List of rate limit rules.

    Example responses

    @@ -24741,11 +42400,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24758,27 +42418,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainSkipName

    -

    +

    networkViewGetRootCaCertValidity

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getRootCaCertValidity/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainSkipName/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getRootCaCertValidity/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24794,55 +42453,17 @@ 

    coreActionSetOptionProxyChainSkip

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainSkipName/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +r = requests.get('http://zap/JSON/network/view/getRootCaCertValidity/', headers = headers)
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainSkipName/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainSkipName/

    - -

    Use actions [add|modify|remove]ProxyChainExcludedDomain instead.

    - -

    Parameters

    +

    GET /JSON/network/view/getRootCaCertValidity/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.

    Example responses

    @@ -24850,11 +42471,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24867,27 +42489,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainUserName

    -

    +

    networkViewGetServerCertValidity

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getServerCertValidity/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainUserName/?String=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/getServerCertValidity/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -24903,53 +42524,17 @@ 

    coreActionSetOptionProxyChainUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainUserName/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainUserName/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getServerCertValidity/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainUserName/

    - -

    Parameters

    +

    GET /JSON/network/view/getServerCertValidity/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Gets the server certificate validity, in days. Used when generating server certificates.

    Example responses

    @@ -24957,11 +42542,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -24974,27 +42560,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionDnsTtlSuccessfulQueries

    -

    +

    networkViewGetSocksProxy

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/getSocksProxy/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/network/view/getSocksProxy/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25010,55 +42595,17 @@ 

    coreActionSetOptionDnsTtlSuc

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionDnsTtlSuccessfulQueries/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/getSocksProxy/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionDnsTtlSuccessfulQueries/

    - -

    Sets the TTL (in seconds) of successful DNS queries (applies after ZAP restart).

    +

    GET /JSON/network/view/getSocksProxy/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    Gets the SOCKS proxy.

    Example responses

    @@ -25066,11 +42613,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25083,27 +42631,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionHttpStateEnabled

    -

    +

    networkViewIsHttpProxyAuthEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/isHttpProxyAuthEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionHttpStateEnabled/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/isHttpProxyAuthEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25119,53 +42666,17 @@ 

    coreActionSetOptionHttpStateEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionHttpStateEnabled/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionHttpStateEnabled/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/isHttpProxyAuthEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionHttpStateEnabled/

    - -

    Parameters

    +

    GET /JSON/network/view/isHttpProxyAuthEnabled/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    Tells whether or not the HTTP proxy authentication is enabled.

    Example responses

    @@ -25173,11 +42684,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25190,27 +42702,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainPort

    -

    +

    networkViewIsHttpProxyEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/isHttpProxyEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPort/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/network/view/isHttpProxyEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25226,53 +42737,17 @@ 

    coreActionSetOptionProxyChainPort

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPort/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPort/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/isHttpProxyEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainPort/

    - -

    Parameters

    +

    GET /JSON/network/view/isHttpProxyEnabled/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    Tells whether or not the HTTP proxy is enabled.

    Example responses

    @@ -25280,11 +42755,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25297,27 +42773,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionProxyChainPrompt

    -

    +

    networkViewIsSocksProxyEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/isSocksProxyEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionProxyChainPrompt/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/isSocksProxyEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25333,53 +42808,17 @@ 

    coreActionSetOptionProxyChainPrompt

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionProxyChainPrompt/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionProxyChainPrompt/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/isSocksProxyEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionProxyChainPrompt/

    +

    GET /JSON/network/view/isSocksProxyEnabled/

    -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    Tells whether or not the SOCKS proxy is enabled.

    Example responses

    @@ -25387,11 +42826,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25404,27 +42844,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionSingleCookieRequestHeader

    -

    +

    networkViewIsUseGlobalHttpState

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/network/view/isUseGlobalHttpState/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/network/view/isUseGlobalHttpState/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25440,53 +42879,17 @@ 

    coreActionSetOptionSingleC

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionSingleCookieRequestHeader/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/network/view/isUseGlobalHttpState/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionSingleCookieRequestHeader/

    - -

    Parameters

    +

    GET /JSON/network/view/isUseGlobalHttpState/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    Tells whether or not to use global HTTP state.

    Example responses

    @@ -25494,11 +42897,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25511,27 +42915,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionTimeoutInSecs

    -

    + +

    openapi

    +

    openapiActionImportFile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/openapi/action/importFile/?file=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionTimeoutInSecs/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/openapi/action/importFile/?file=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25547,37 +42952,21 @@ 

    coreActionSetOptionTimeoutInSecs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setOptionTimeoutInSecs/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/openapi/action/importFile/', params={
    +  'file': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionTimeoutInSecs/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionTimeoutInSecs/

    +

    GET /JSON/openapi/action/importFile/

    -

    Sets the connection time out, in seconds.

    +

    Imports an OpenAPI definition from a local file.

    -

    Parameters

    +

    Parameters

    @@ -25589,10 +42978,24 @@

    Parameters

    - + - + + + + + + + + + + + + + + +
    Integerfile queryintegerstring trueThe file that contains the OpenAPI definition.
    targetquerystringfalseThe Target URL to override the server URL present in the definition.
    contextIdquerystringfalse none
    @@ -25603,11 +43006,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25620,27 +43024,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionUseProxyChain

    -

    +

    openapiActionImportUrl

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/openapi/action/importUrl/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChain/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/openapi/action/importUrl/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25656,37 +43059,21 @@ 

    coreActionSetOptionUseProxyChain

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChain/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/openapi/action/importUrl/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionUseProxyChain/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionUseProxyChain/

    +

    GET /JSON/openapi/action/importUrl/

    -

    Sets whether or not the outgoing proxy should be used. The address/hostname of the outgoing proxy must be set to enable this option.

    +

    Imports an OpenAPI definition from a URL.

    -

    Parameters

    +

    Parameters

    @@ -25698,10 +43085,24 @@

    Parameters

    - + + + + + + + + + + + + + + +
    Booleanurl query string trueThe URL locating the OpenAPI definition.
    hostOverridequerystringfalseThe Target URL (called hostOverride for historical reasons) to override the server URL present in the definition.
    contextIdquerystringfalse none
    @@ -25712,11 +43113,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25729,27 +43131,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreActionSetOptionUseProxyChainAuth

    -

    + +

    paramDigger

    +

    paramDiggerActionHelloWorld

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/paramDigger/action/helloWorld/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/core/action/setOptionUseProxyChainAuth/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/paramDigger/action/helloWorld/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25765,35 +43168,90 @@ 

    coreActionSetOptionUseProxyChainAu

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/core/action/setOptionUseProxyChainAuth/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    +r = requests.get('http://zap/JSON/paramDigger/action/helloWorld/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/paramDigger/action/helloWorld/

    -print r.json() +
    +

    Example responses

    -
    require 'rest-client'
    -require 'json'
    +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    + + + +

    pnh

    +

    pnhActionMonitor

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/pnh/action/monitor/?id=string&message=string \
    +  -H 'Accept: application/json'
     
    +
    URL obj = new URL("http://zap/JSON/pnh/action/monitor/?id=string&message=string");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/core/action/setOptionUseProxyChainAuth/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/pnh/action/monitor/', params={
    +  'id': 'string',  'message': 'string'
    +}, headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/core/action/setOptionUseProxyChainAuth/

    +

    GET /JSON/pnh/action/monitor/

    -

    Parameters

    +

    Parameters

    @@ -25805,7 +43263,14 @@

    Parameters

    - + + + + + + + + @@ -25819,11 +43284,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    Booleanidquerystringtruenone
    message query string true
    @@ -25836,27 +43302,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherProxy.pac

    -

    +

    pnhActionOracle

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/proxy.pac/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pnh/action/oracle/?id=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/proxy.pac/");
    +
    URL obj = new URL("http://zap/JSON/pnh/action/oracle/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25872,32 +43337,37 @@ 

    coreOtherProxy.pac

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/proxy.pac/', params={
    -
    +r = requests.get('http://zap/JSON/pnh/action/oracle/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/OTHER/core/other/proxy.pac/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/pnh/action/oracle/

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /OTHER/core/other/proxy.pac/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idquerystringtruenone

    Example responses

    @@ -25905,11 +43375,12 @@

    coreOtherProxy.pac

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -25922,27 +43393,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherRootcert

    -

    +

    pnhActionStartMonitoring

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/rootcert/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pnh/action/startMonitoring/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/rootcert/");
    +
    URL obj = new URL("http://zap/JSON/pnh/action/startMonitoring/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -25958,34 +43428,37 @@ 

    coreOtherRootcert

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/rootcert/', params={
    -
    +r = requests.get('http://zap/JSON/pnh/action/startMonitoring/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/rootcert/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/rootcert/

    +

    GET /JSON/pnh/action/startMonitoring/

    -

    Gets the Root CA certificate used by the local proxies.

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    urlquerystringtruenone

    Example responses

    @@ -25993,11 +43466,12 @@

    coreOtherRootcert

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26010,27 +43484,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherSetproxy

    -

    +

    pnhActionStopMonitoring

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/setproxy/?proxy=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pnh/action/stopMonitoring/?id=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/setproxy/?proxy=string");
    +
    URL obj = new URL("http://zap/JSON/pnh/action/stopMonitoring/?id=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26046,35 +43519,19 @@ 

    coreOtherSetproxy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/setproxy/', params={
    -  'proxy': 'string'
    +r = requests.get('http://zap/JSON/pnh/action/stopMonitoring/', params={
    +  'id': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/setproxy/',
    -  params: {
    -  'proxy' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/setproxy/

    +

    GET /JSON/pnh/action/stopMonitoring/

    -

    Parameters

    +

    Parameters

    @@ -26086,7 +43543,7 @@

    Parameters

    - + @@ -26100,11 +43557,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    proxyid query string true
    @@ -26117,27 +43575,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherXmlreport

    -

    +

    pnhOtherFx_pnh.xpi

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/xmlreport/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/pnh/other/fx_pnh.xpi/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/xmlreport/");
    +
    URL obj = new URL("http://zap/OTHER/pnh/other/fx_pnh.xpi/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26153,46 +43610,21 @@ 

    coreOtherXmlreport

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/xmlreport/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +r = requests.get('http://zap/OTHER/pnh/other/fx_pnh.xpi/', headers = headers)
     
    -result = RestClient.get 'http://zap/OTHER/core/other/xmlreport/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /OTHER/core/other/xmlreport/

    - -

    Generates a report in XML format

    +

    GET /OTHER/pnh/other/fx_pnh.xpi/

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -26205,27 +43637,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreOtherHtmlreport

    -

    +

    pnhOtherManifest

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/htmlreport/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/pnh/other/manifest/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/htmlreport/");
    +
    URL obj = new URL("http://zap/OTHER/pnh/other/manifest/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26241,46 +43674,21 @@ 

    coreOtherHtmlreport

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/OTHER/core/other/htmlreport/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/OTHER/core/other/htmlreport/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/pnh/other/manifest/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /OTHER/core/other/htmlreport/

    - -

    Generates a report in HTML format

    +

    GET /OTHER/pnh/other/manifest/

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -26293,27 +43701,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreOtherJsonreport

    -

    +

    pnhOtherPnh

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/jsonreport/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/pnh/other/pnh/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/jsonreport/");
    +
    URL obj = new URL("http://zap/OTHER/pnh/other/pnh/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26329,46 +43738,85 @@ 

    coreOtherJsonreport

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/jsonreport/', params={
    +r = requests.get('http://zap/OTHER/pnh/other/pnh/', headers = headers)
     
    -}, headers = headers)
    +print(r.content)
    +
    +
    +

    GET /OTHER/pnh/other/pnh/

    + +
    +

    Example responses

    +
    + +

    Responses

    -print r.json() + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of OTHER endpoints.None
    -
    require 'rest-client'
    -require 'json'
    +

    Response Schema

    + +

    pnhOtherService

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/OTHER/pnh/other/service/ \
    +  -H 'Accept: */*'
    +
    +
    URL obj = new URL("http://zap/OTHER/pnh/other/service/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/OTHER/core/other/jsonreport/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/pnh/other/service/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /OTHER/core/other/jsonreport/

    - -

    Generates a report in JSON format

    +

    GET /OTHER/pnh/other/service/

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -26381,27 +43829,30 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    coreOtherMdreport

    -

    + +

    postman

    +

    postmanActionImportFile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/mdreport/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/postman/action/importFile/?file=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/mdreport/");
    +
    URL obj = new URL("http://zap/JSON/postman/action/importFile/?file=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26417,34 +43868,44 @@ 

    coreOtherMdreport

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/mdreport/', params={
    -
    +r = requests.get('http://zap/JSON/postman/action/importFile/', params={
    +  'file': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/mdreport/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/mdreport/

    +

    GET /JSON/postman/action/importFile/

    -

    Generates a report in Markdown format

    +

    Parameters

    + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    filequerystringtruenone
    endpointUrlquerystringfalsenone

    Example responses

    @@ -26452,11 +43913,12 @@

    coreOtherMdreport

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26469,27 +43931,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherMessageHar

    -

    +

    postmanActionImportUrl

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/messageHar/?id=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/postman/action/importUrl/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/messageHar/?id=0");
    +
    URL obj = new URL("http://zap/JSON/postman/action/importUrl/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26505,37 +43966,19 @@ 

    coreOtherMessageHar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/messageHar/', params={
    -  'id': '0'
    +r = requests.get('http://zap/JSON/postman/action/importUrl/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/messageHar/',
    -  params: {
    -  'id' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/messageHar/

    +

    GET /JSON/postman/action/importUrl/

    -

    Gets the message with the given ID in HAR format

    - -

    Parameters

    +

    Parameters

    @@ -26547,12 +43990,19 @@

    Parameters

    - + - + + + + + + + +
    idurl queryintegerstring true none
    endpointUrlquerystringfalsenone
    @@ -26561,11 +44011,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26578,27 +44029,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherMessagesHar

    -

    + +

    pscan

    +

    pscanActionClearQueue

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/messagesHar/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/clearQueue/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/messagesHar/");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/clearQueue/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26614,68 +44066,17 @@ 

    coreOtherMessagesHar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/messagesHar/', params={
    +r = requests.get('http://zap/JSON/pscan/action/clearQueue/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/messagesHar/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/messagesHar/

    - -

    Gets the HTTP messages sent through/by ZAP, in HAR format, optionally filtered by URL and paginated with 'start' position and 'count' of messages

    +

    GET /JSON/pscan/action/clearQueue/

    -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    baseurlquerystringfalsenone
    startqueryintegerfalsenone
    countqueryintegerfalsenone
    +

    Clears the passive scan queue.

    Example responses

    @@ -26683,11 +44084,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26700,27 +44102,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherMessagesHarById

    -

    +

    pscanActionDisableAllScanners

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/messagesHarById/?ids=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/disableAllScanners/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/messagesHarById/?ids=string");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/disableAllScanners/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26736,67 +44137,101 @@ 

    coreOtherMessagesHarById

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/messagesHarById/', params={
    -  'ids': 'string'
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/pscan/action/disableAllScanners/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/messagesHarById/',
    -  params: {
    -  'ids' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/messagesHarById/

    +

    GET /JSON/pscan/action/disableAllScanners/

    -

    Gets the HTTP messages with the given IDs, in HAR format.

    +

    Disables all passive scan rules

    -

    Parameters

    +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    idsquerystringtruenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    pscanActionDisableAllTags

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/pscan/action/disableAllTags/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/pscan/action/disableAllTags/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/pscan/action/disableAllTags/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/pscan/action/disableAllTags/

    + +

    Disables all passive scan tags.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26809,27 +44244,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    coreOtherSendHarRequest

    -

    +

    pscanActionDisableScanners

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/OTHER/core/other/sendHarRequest/?request=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/disableScanners/?ids=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/OTHER/core/other/sendHarRequest/?request=string");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/disableScanners/?ids=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26845,37 +44279,21 @@ 

    coreOtherSendHarRequest

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/OTHER/core/other/sendHarRequest/', params={
    -  'request': 'string'
    +r = requests.get('http://zap/JSON/pscan/action/disableScanners/', params={
    +  'ids': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/OTHER/core/other/sendHarRequest/',
    -  params: {
    -  'request' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /OTHER/core/other/sendHarRequest/

    +

    GET /JSON/pscan/action/disableScanners/

    -

    Sends the first HAR request entry, optionally following redirections. Returns, in HAR format, the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.

    +

    Disables all passive scan rules with the given IDs (comma separated list of IDs)

    -

    Parameters

    +

    Parameters

    @@ -26887,19 +44305,12 @@

    Parameters

    - + - - - - - - -
    requestids query string true none
    followRedirectsquerybooleanfalsenone
    @@ -26908,11 +44319,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -26925,29 +44337,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    params

    -

    paramsViewParams

    -

    +

    pscanActionEnableAllScanners

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/params/view/params/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/enableAllScanners/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/params/view/params/");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/enableAllScanners/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -26963,66 +44372,101 @@ 

    paramsViewParams

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/params/view/params/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/params/view/params/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/pscan/action/enableAllScanners/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/params/view/params/

    +

    GET /JSON/pscan/action/enableAllScanners/

    -

    Shows the parameters for the specified site, or for all sites if the site is not specified

    +

    Enables all passive scan rules

    -

    Parameters

    +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    sitequerystringfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    pscanActionEnableAllTags

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/pscan/action/enableAllTags/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/pscan/action/enableAllTags/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/pscan/action/enableAllTags/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/pscan/action/enableAllTags/

    + +

    Enables all passive scan tags.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27035,29 +44479,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    ascan

    -

    ascanViewStatus

    -

    +

    pscanActionEnableScanners

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/status/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/enableScanners/?ids=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/status/");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/enableScanners/?ids=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27073,34 +44514,21 @@ 

    ascanViewStatus

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/status/', params={
    -
    +r = requests.get('http://zap/JSON/pscan/action/enableScanners/', params={
    +  'ids': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/status/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/status/

    +

    GET /JSON/pscan/action/enableScanners/

    -

    Parameters

    +

    Enables all passive scan rules with the given IDs (comma separated list of IDs)

    + +

    Parameters

    @@ -27112,10 +44540,10 @@

    Parameters

    - + - - + +
    scanIdids queryintegerfalsestringtrue none
    @@ -27126,11 +44554,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27143,27 +44572,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewScanProgress

    -

    +

    pscanActionSetEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/scanProgress/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/setEnabled/?enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/scanProgress/");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/setEnabled/?enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27179,34 +44607,21 @@ 

    ascanViewScanProgress

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/scanProgress/', params={
    -
    +r = requests.get('http://zap/JSON/pscan/action/setEnabled/', params={
    +  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/scanProgress/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/scanProgress/

    +

    GET /JSON/pscan/action/setEnabled/

    -

    Parameters

    +

    Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).

    + +

    Parameters

    @@ -27218,10 +44633,10 @@

    Parameters

    - + - - + +
    scanIdenabled queryintegerfalsestringtrue none
    @@ -27232,11 +44647,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27249,27 +44665,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewMessagesIds

    -

    +

    pscanActionSetMaxAlertsPerRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/messagesIds/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/messagesIds/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/setMaxAlertsPerRule/?maxAlerts=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27285,37 +44700,21 @@ 

    ascanViewMessagesIds

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/messagesIds/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/pscan/action/setMaxAlertsPerRule/', params={
    +  'maxAlerts': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/messagesIds/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/messagesIds/

    +

    GET /JSON/pscan/action/setMaxAlertsPerRule/

    -

    Gets the IDs of the messages sent during the scan with the given ID. A message can be obtained with 'message' core view.

    +

    Sets the maximum number of alerts a passive scan rule should raise.

    -

    Parameters

    +

    Parameters

    @@ -27327,9 +44726,9 @@

    Parameters

    - + - + @@ -27341,11 +44740,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scanIdmaxAlerts queryintegerstring true none
    @@ -27358,27 +44758,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewAlertsIds

    -

    +

    pscanActionSetScanOnlyInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/alertsIds/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/alertsIds/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/setScanOnlyInScope/?onlyInScope=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27394,37 +44793,21 @@ 

    ascanViewAlertsIds

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/alertsIds/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/pscan/action/setScanOnlyInScope/', params={
    +  'onlyInScope': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/alertsIds/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/alertsIds/

    +

    GET /JSON/pscan/action/setScanOnlyInScope/

    -

    Gets the IDs of the alerts raised during the scan with the given ID. An alert can be obtained with 'alert' core view.

    +

    Sets whether or not the passive scan should be performed only on messages that are in scope.

    -

    Parameters

    +

    Parameters

    @@ -27436,9 +44819,9 @@

    Parameters

    - + - + @@ -27450,11 +44833,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scanIdonlyInScope queryintegerstring true none
    @@ -27467,27 +44851,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewScans

    -

    +

    pscanActionSetScannerAlertThreshold

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/scans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=string&alertThreshold=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/scans/");
    +
    URL obj = new URL("http://zap/JSON/pscan/action/setScannerAlertThreshold/?id=string&alertThreshold=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27503,32 +44886,46 @@ 

    ascanViewScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/scans/', params={
    -
    +r = requests.get('http://zap/JSON/pscan/action/setScannerAlertThreshold/', params={
    +  'id': 'string',  'alertThreshold': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/pscan/action/setScannerAlertThreshold/

    -result = RestClient.get 'http://zap/JSON/ascan/view/scans/', - params: { - }, headers: headers +

    Sets the alert threshold of the passive scan rule with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/scans/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    idquerystringtruenone
    alertThresholdquerystringtruenone

    Example responses

    @@ -27536,11 +44933,12 @@

    ascanViewScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27553,27 +44951,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewScanPolicyNames

    -

    +

    pscanViewCurrentRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/scanPolicyNames/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/currentRule/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/scanPolicyNames/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/currentRule/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27589,32 +44986,17 @@ 

    ascanViewScanPolicyNames

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/scanPolicyNames/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/scanPolicyNames/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/pscan/view/currentRule/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/scanPolicyNames/

    +

    GET /JSON/pscan/view/currentRule/

    + +

    Use the currentTasks view instead.

    Example responses

    @@ -27622,11 +45004,12 @@

    ascanViewScanPolicyNames

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27639,27 +45022,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewExcludedFromScan

    -

    +

    pscanViewCurrentTasks

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/excludedFromScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/currentTasks/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/excludedFromScan/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/currentTasks/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27675,34 +45057,17 @@ 

    ascanViewExcludedFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/excludedFromScan/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/pscan/view/currentTasks/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/excludedFromScan/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/excludedFromScan/

    +

    GET /JSON/pscan/view/currentTasks/

    -

    Gets the regexes of URLs excluded from the active scans.

    +

    Show information about the passive scan tasks currently being run (if any).

    Example responses

    @@ -27710,11 +45075,12 @@

    ascanViewExcludedFromScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27727,27 +45093,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewScanners

    -

    +

    pscanViewMaxAlertsPerRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/scanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/maxAlertsPerRule/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/scanners/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/maxAlertsPerRule/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27763,61 +45128,17 @@ 

    ascanViewScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/scanners/', params={
    +r = requests.get('http://zap/JSON/pscan/view/maxAlertsPerRule/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/scanners/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/scanners/

    - -

    Gets the scanners, optionally, of the given scan policy and/or scanner policy/category ID.

    - -

    Parameters

    +

    GET /JSON/pscan/view/maxAlertsPerRule/

    - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanPolicyNamequerystringfalsenone
    policyIdqueryintegerfalsenone
    +

    Gets the maximum number of alerts a passive scan rule should raise.

    Example responses

    @@ -27825,11 +45146,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27842,27 +45164,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewPolicies

    -

    +

    pscanViewRecordsToScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/policies/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/recordsToScan/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/policies/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/recordsToScan/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27878,59 +45199,17 @@ 

    ascanViewPolicies

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/policies/', params={
    +r = requests.get('http://zap/JSON/pscan/view/recordsToScan/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/policies/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/policies/

    - -

    Parameters

    +

    GET /JSON/pscan/view/recordsToScan/

    - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanPolicyNamequerystringfalsenone
    policyIdqueryintegerfalsenone
    +

    The number of records the passive scanner still has to scan

    Example responses

    @@ -27938,11 +45217,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -27955,27 +45235,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewAttackModeQueue

    -

    +

    pscanViewScanOnlyInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/attackModeQueue/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/scanOnlyInScope/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/attackModeQueue/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/scanOnlyInScope/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -27991,32 +45270,17 @@ 

    ascanViewAttackModeQueue

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/attackModeQueue/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/pscan/view/scanOnlyInScope/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/attackModeQueue/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/attackModeQueue/

    +

    GET /JSON/pscan/view/scanOnlyInScope/

    + +

    Tells whether or not the passive scan should be performed only on messages that are in scope.

    Example responses

    @@ -28024,11 +45288,12 @@

    ascanViewAttackModeQueue

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28041,27 +45306,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewExcludedParams

    -

    +

    pscanViewScanners

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/excludedParams/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/pscan/view/scanners/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/excludedParams/");
    +
    URL obj = new URL("http://zap/JSON/pscan/view/scanners/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28077,34 +45341,17 @@ 

    ascanViewExcludedParams

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/excludedParams/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    +r = requests.get('http://zap/JSON/pscan/view/scanners/', headers = headers)
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/excludedParams/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/excludedParams/

    +

    GET /JSON/pscan/view/scanners/

    -

    Gets all the parameters that are excluded. For each parameter the following are shown: the name, the URL, and the parameter type.

    +

    Lists all passive scan rules with their ID, name, enabled state, and alert threshold.

    Example responses

    @@ -28112,11 +45359,12 @@

    ascanViewExcludedParams

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28129,27 +45377,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionExcludedParamList

    -

    + +

    quickstartlaunch

    +

    quickstartlaunchOtherStartPage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionExcludedParamList/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/quickstartlaunch/other/startPage/ \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionExcludedParamList/");
    +
    URL obj = new URL("http://zap/OTHER/quickstartlaunch/other/startPage/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28165,46 +45414,21 @@ 

    ascanViewOptionExcludedParamList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionExcludedParamList/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionExcludedParamList/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/OTHER/quickstartlaunch/other/startPage/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/ascan/view/optionExcludedParamList/

    - -

    Use view excludedParams instead.

    +

    GET /OTHER/quickstartlaunch/other/startPage/

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -28217,27 +45441,30 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    ascanViewExcludedParamTypes

    -

    + +

    replacer

    +

    replacerActionAddRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/excludedParamTypes/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/replacer/action/addRule/?description=string&enabled=string&matchType=string&matchRegex=string&matchString=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/excludedParamTypes/");
    +
    URL obj = new URL("http://zap/JSON/replacer/action/addRule/?description=string&enabled=string&matchType=string&matchRegex=string&matchString=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28253,34 +45480,88 @@ 

    ascanViewExcludedParamTypes

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/excludedParamTypes/', params={
    -
    +r = requests.get('http://zap/JSON/replacer/action/addRule/', params={
    +  'description': 'string',  'enabled': 'string',  'matchType': 'string',  'matchRegex': 'string',  'matchString': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/excludedParamTypes/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/replacer/action/addRule/

    -p JSON.parse(result) +

    Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true if the matchString should be treated as a regex otherwise false, matchString is the string that will be matched against, replacement is the replacement string, initiators may be blank (for all initiators) or a comma separated list of integers as defined in HttpSender

    -
    -

    GET /JSON/ascan/view/excludedParamTypes/

    +

    Parameters

    -

    Gets all the types of excluded parameters. For each type the following are shown: the ID and the name.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    descriptionquerystringtruenone
    enabledquerystringtruenone
    matchTypequerystringtruenone
    matchRegexquerystringtruenone
    matchStringquerystringtruenone
    replacementquerystringfalsenone
    initiatorsquerystringfalsenone
    urlquerystringfalseA regular expression to match the URL of the message, if empty the rule applies to all messages.

    Example responses

    @@ -28288,11 +45569,12 @@

    ascanViewExcludedParamTypes

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28305,27 +45587,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionAttackPolicy

    -

    +

    replacerActionRemoveRule

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionAttackPolicy/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/replacer/action/removeRule/?description=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionAttackPolicy/");
    +
    URL obj = new URL("http://zap/JSON/replacer/action/removeRule/?description=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28341,32 +45622,39 @@ 

    ascanViewOptionAttackPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionAttackPolicy/', params={
    -
    +r = requests.get('http://zap/JSON/replacer/action/removeRule/', params={
    +  'description': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/replacer/action/removeRule/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionAttackPolicy/', - params: { - }, headers: headers +

    Removes the rule with the given description

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionAttackPolicy/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    descriptionquerystringtruenone

    Example responses

    @@ -28374,11 +45662,12 @@

    ascanViewOptionAttackPolicy

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28391,27 +45680,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionDefaultPolicy

    -

    +

    replacerActionSetEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionDefaultPolicy/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/replacer/action/setEnabled/?description=string&bool=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionDefaultPolicy/");
    +
    URL obj = new URL("http://zap/JSON/replacer/action/setEnabled/?description=string&bool=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28427,32 +45715,46 @@ 

    ascanViewOptionDefaultPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionDefaultPolicy/', params={
    -
    +r = requests.get('http://zap/JSON/replacer/action/setEnabled/', params={
    +  'description': 'string',  'bool': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/replacer/action/setEnabled/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionDefaultPolicy/', - params: { - }, headers: headers +

    Enables or disables the rule with the given description based on the bool parameter

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionDefaultPolicy/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    descriptionquerystringtruenone
    boolquerystringtruenone

    Example responses

    @@ -28460,11 +45762,12 @@

    ascanViewOptionDefaultPolicy

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28477,27 +45780,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionDelayInMs

    -

    +

    replacerViewRules

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionDelayInMs/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/replacer/view/rules/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionDelayInMs/");
    +
    URL obj = new URL("http://zap/JSON/replacer/view/rules/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28513,32 +45815,17 @@ 

    ascanViewOptionDelayInMs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionDelayInMs/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionDelayInMs/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/replacer/view/rules/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionDelayInMs/

    +

    GET /JSON/replacer/view/rules/

    + +

    Returns full details of all of the rules

    Example responses

    @@ -28546,11 +45833,12 @@

    ascanViewOptionDelayInMs

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28563,27 +45851,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionHandleAntiCSRFTokens

    -

    + +

    reports

    +

    reportsActionGenerate

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/reports/action/generate/?title=string&template=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/");
    +
    URL obj = new URL("http://zap/JSON/reports/action/generate/?title=string&template=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28599,32 +45888,123 @@ 

    ascanViewOptionHandleAntiCSRFTokens

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/', params={
    -
    +r = requests.get('http://zap/JSON/reports/action/generate/', params={
    +  'title': 'string',  'template': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/reports/action/generate/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionHandleAntiCSRFTokens/', - params: { - }, headers: headers +

    Generate a report with the supplied parameters.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionHandleAntiCSRFTokens/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    titlequerystringtrueReport Title
    templatequerystringtrueReport Template
    themequerystringfalseReport Theme
    descriptionquerystringfalseReport Description
    contextsquerystringfalseThe name of the contexts to be included in the report, separated by '
    sitesquerystringfalseThe site URLs that should be included in the report, separated by '
    sectionsquerystringfalseThe report sections that should be included, separated by '
    includedConfidencesquerystringfalseConfidences that should be included in the report, separated by '
    includedRisksquerystringfalseRisks that should be included in the report, separated by '
    reportFileNamequerystringfalseThe file name of the generated report. This value overrides the reportFileNamePattern parameter.
    reportFileNamePatternquerystringfalseReport File Name Pattern.
    reportDirquerystringfalsePath to directory in which the generated report should be placed.
    displayquerystringfalseDisplay the generated report. Either "true" or "false".

    Example responses

    @@ -28632,11 +46012,12 @@

    ascanViewOptionHandleAntiCSRFTokens

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28649,27 +46030,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionHostPerScan

    -

    +

    reportsViewTemplateDetails

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionHostPerScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/reports/view/templateDetails/?template=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionHostPerScan/");
    +
    URL obj = new URL("http://zap/JSON/reports/view/templateDetails/?template=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28685,32 +46065,39 @@ 

    ascanViewOptionHostPerScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionHostPerScan/', params={
    -
    +r = requests.get('http://zap/JSON/reports/view/templateDetails/', params={
    +  'template': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/reports/view/templateDetails/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionHostPerScan/', - params: { - }, headers: headers +

    View details of the specified template.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionHostPerScan/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    templatequerystringtrueTemplate Label

    Example responses

    @@ -28718,11 +46105,12 @@

    ascanViewOptionHostPerScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28735,27 +46123,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionMaxChartTimeInMins

    -

    +

    reportsViewTemplates

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionMaxChartTimeInMins/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/reports/view/templates/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionMaxChartTimeInMins/");
    +
    URL obj = new URL("http://zap/JSON/reports/view/templates/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28771,32 +46158,17 @@ 

    ascanViewOptionMaxChartTimeInMins

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionMaxChartTimeInMins/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxChartTimeInMins/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/reports/view/templates/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionMaxChartTimeInMins/

    +

    GET /JSON/reports/view/templates/

    + +

    View available templates.

    Example responses

    @@ -28804,11 +46176,12 @@

    ascanViewOptionMaxChartTimeInMins

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28821,27 +46194,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionMaxResultsToList

    -

    + +

    retest

    +

    retestActionRetest

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionMaxResultsToList/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/retest/action/retest/?alertIds=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionMaxResultsToList/");
    +
    URL obj = new URL("http://zap/JSON/retest/action/retest/?alertIds=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28857,32 +46231,37 @@ 

    ascanViewOptionMaxResultsToList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionMaxResultsToList/', params={
    -
    +r = requests.get('http://zap/JSON/retest/action/retest/', params={
    +  'alertIds': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxResultsToList/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/retest/action/retest/

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionMaxResultsToList/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    alertIdsquerystringtruenone

    Example responses

    @@ -28890,11 +46269,12 @@

    ascanViewOptionMaxResultsToList

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28907,27 +46287,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionMaxRuleDurationInMins

    -

    + +

    reveal

    +

    revealActionSetReveal

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/reveal/action/setReveal/?reveal=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/");
    +
    URL obj = new URL("http://zap/JSON/reveal/action/setReveal/?reveal=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -28943,32 +46324,39 @@ 

    ascanViewOptionMaxRuleDurationInMi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/', params={
    -
    +r = requests.get('http://zap/JSON/reveal/action/setReveal/', params={
    +  'reveal': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/reveal/action/setReveal/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxRuleDurationInMins/', - params: { - }, headers: headers +

    Sets if shows hidden fields and enables disabled fields

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionMaxRuleDurationInMins/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    revealquerystringtruenone

    Example responses

    @@ -28976,11 +46364,12 @@

    ascanViewOptionMaxRuleDurationInMi

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -28993,27 +46382,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionMaxScanDurationInMins

    -

    +

    revealViewReveal

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionMaxScanDurationInMins/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/reveal/view/reveal/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScanDurationInMins/");
    +
    URL obj = new URL("http://zap/JSON/reveal/view/reveal/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29029,32 +46417,17 @@ 

    ascanViewOptionMaxScanDurationInMi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionMaxScanDurationInMins/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxScanDurationInMins/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/reveal/view/reveal/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionMaxScanDurationInMins/

    +

    GET /JSON/reveal/view/reveal/

    + +

    Tells if shows hidden fields and enables disabled fields

    Example responses

    @@ -29062,11 +46435,12 @@

    ascanViewOptionMaxScanDurationInMi

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29079,27 +46453,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionMaxScansInUI

    -

    + +

    revisit

    +

    revisitActionRevisitSiteOff

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionMaxScansInUI/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/revisit/action/revisitSiteOff/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionMaxScansInUI/");
    +
    URL obj = new URL("http://zap/JSON/revisit/action/revisitSiteOff/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29115,32 +46490,37 @@ 

    ascanViewOptionMaxScansInUI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionMaxScansInUI/', params={
    -
    +r = requests.get('http://zap/JSON/revisit/action/revisitSiteOff/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionMaxScansInUI/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/revisit/action/revisitSiteOff/

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionMaxScansInUI/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone

    Example responses

    @@ -29148,11 +46528,12 @@

    ascanViewOptionMaxScansInUI

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29165,27 +46546,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionTargetParamsEnabledRPC

    -

    +

    revisitActionRevisitSiteOn

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/revisit/action/revisitSiteOn/?site=string&startTime=string&endTime=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/");
    +
    URL obj = new URL("http://zap/JSON/revisit/action/revisitSiteOn/?site=string&startTime=string&endTime=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29201,32 +46581,51 @@ 

    ascanViewOptionTargetParamsEnable

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/', params={
    -
    +r = requests.get('http://zap/JSON/revisit/action/revisitSiteOn/', params={
    +  'site': 'string',  'startTime': 'string',  'endTime': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionTargetParamsEnabledRPC/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/revisit/action/revisitSiteOn/

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionTargetParamsEnabledRPC/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone
    startTimequerystringtruenone
    endTimequerystringtruenone

    Example responses

    @@ -29234,11 +46633,12 @@

    ascanViewOptionTargetParamsEnable

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29251,27 +46651,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionTargetParamsInjectable

    -

    +

    revisitViewRevisitList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionTargetParamsInjectable/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/revisit/view/revisitList/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionTargetParamsInjectable/");
    +
    URL obj = new URL("http://zap/JSON/revisit/view/revisitList/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29287,32 +46686,15 @@ 

    ascanViewOptionTargetParamsInject

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionTargetParamsInjectable/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionTargetParamsInjectable/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/revisit/view/revisitList/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionTargetParamsInjectable/

    +

    GET /JSON/revisit/view/revisitList/

    Example responses

    @@ -29320,11 +46702,12 @@

    ascanViewOptionTargetParamsInject

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29337,27 +46720,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionThreadPerHost

    -

    + +

    ruleConfig

    +

    ruleConfigActionResetAllRuleConfigValues

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionThreadPerHost/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionThreadPerHost/");
    +
    URL obj = new URL("http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29373,32 +46757,17 @@ 

    ascanViewOptionThreadPerHost

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionThreadPerHost/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionThreadPerHost/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionThreadPerHost/

    +

    GET /JSON/ruleConfig/action/resetAllRuleConfigValues/

    + +

    Reset all of the rule configurations

    Example responses

    @@ -29406,11 +46775,12 @@

    ascanViewOptionThreadPerHost

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29423,27 +46793,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionAddQueryParam

    -

    +

    ruleConfigActionResetRuleConfigValue

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionAddQueryParam/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionAddQueryParam/");
    +
    URL obj = new URL("http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29459,34 +46828,39 @@ 

    ascanViewOptionAddQueryParam

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionAddQueryParam/', params={
    -
    +r = requests.get('http://zap/JSON/ruleConfig/action/resetRuleConfigValue/', params={
    +  'key': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionAddQueryParam/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/ruleConfig/action/resetRuleConfigValue/

    -p JSON.parse(result) +

    Reset the specified rule configuration, which must already exist

    - -

    GET /JSON/ascan/view/optionAddQueryParam/

    +

    Parameters

    -

    Tells whether or not the active scanner should add a query parameter to GET request that don't have parameters to start with.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    keyquerystringtruenone

    Example responses

    @@ -29494,11 +46868,12 @@

    ascanViewOptionAddQueryParam

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29511,27 +46886,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionAllowAttackOnStart

    -

    +

    ruleConfigActionSetRuleConfigValue

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionAllowAttackOnStart/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionAllowAttackOnStart/");
    +
    URL obj = new URL("http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29547,32 +46921,46 @@ 

    ascanViewOptionAllowAttackOnStart

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionAllowAttackOnStart/', params={
    -
    +r = requests.get('http://zap/JSON/ruleConfig/action/setRuleConfigValue/', params={
    +  'key': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/ruleConfig/action/setRuleConfigValue/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionAllowAttackOnStart/', - params: { - }, headers: headers +

    Set the specified rule configuration, which must already exist

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionAllowAttackOnStart/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    keyquerystringtruenone
    valuequerystringfalsenone

    Example responses

    @@ -29580,11 +46968,12 @@

    ascanViewOptionAllowAttackOnStart

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29597,27 +46986,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionInjectPluginIdInHeader

    -

    +

    ruleConfigViewAllRuleConfigs

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfigs/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/");
    +
    URL obj = new URL("http://zap/JSON/ruleConfig/view/allRuleConfigs/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29633,34 +47021,17 @@ 

    ascanViewOptionInjectPluginIdInHe

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionInjectPluginIdInHeader/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/ruleConfig/view/allRuleConfigs/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionInjectPluginIdInHeader/

    +

    GET /JSON/ruleConfig/view/allRuleConfigs/

    -

    Tells whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scanner that's sending the requests.

    +

    Show all of the rule configurations

    Example responses

    @@ -29668,11 +47039,12 @@

    ascanViewOptionInjectPluginIdInHe

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29685,27 +47057,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionPromptInAttackMode

    -

    +

    ruleConfigViewRuleConfigValue

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionPromptInAttackMode/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionPromptInAttackMode/");
    +
    URL obj = new URL("http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29721,32 +47092,39 @@ 

    ascanViewOptionPromptInAttackMode

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionPromptInAttackMode/', params={
    -
    +r = requests.get('http://zap/JSON/ruleConfig/view/ruleConfigValue/', params={
    +  'key': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/ruleConfig/view/ruleConfigValue/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionPromptInAttackMode/', - params: { - }, headers: headers +

    Show the specified rule configuration

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionPromptInAttackMode/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    keyquerystringtruenone

    Example responses

    @@ -29754,11 +47132,12 @@

    ascanViewOptionPromptInAttackMode

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29771,27 +47150,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionPromptToClearFinishedScans

    -

    + +

    script

    +

    scriptActionClearGlobalCustomVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearGlobalCustomVar/?varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearGlobalCustomVar/?varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29807,32 +47187,39 @@ 

    ascanViewOptionPromptToClearF

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/clearGlobalCustomVar/', params={
    +  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/clearGlobalCustomVar/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionPromptToClearFinishedScans/', - params: { - }, headers: headers +

    Clears a global custom variable.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/view/optionPromptToClearFinishedScans/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    varKeyquerystringtrueThe key of the variable.

    Example responses

    @@ -29840,11 +47227,12 @@

    ascanViewOptionPromptToClearF

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29857,27 +47245,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionRescanInAttackMode

    -

    +

    scriptActionClearGlobalVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionRescanInAttackMode/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearGlobalVar/?varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionRescanInAttackMode/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearGlobalVar/?varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29893,32 +47280,39 @@ 

    ascanViewOptionRescanInAttackMode

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionRescanInAttackMode/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/clearGlobalVar/', params={
    +  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/clearGlobalVar/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionRescanInAttackMode/', - params: { - }, headers: headers +

    Clears the global variable with the given key.

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionRescanInAttackMode/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    varKeyquerystringtruenone

    Example responses

    @@ -29926,11 +47320,12 @@

    ascanViewOptionRescanInAttackMode

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -29943,27 +47338,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionScanHeadersAllRequests

    -

    +

    scriptActionClearGlobalVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionScanHeadersAllRequests/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearGlobalVars/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionScanHeadersAllRequests/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearGlobalVars/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -29979,34 +47373,17 @@ 

    ascanViewOptionScanHeadersAllRequ

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/view/optionScanHeadersAllRequests/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/view/optionScanHeadersAllRequests/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/script/action/clearGlobalVars/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/view/optionScanHeadersAllRequests/

    +

    GET /JSON/script/action/clearGlobalVars/

    -

    Tells whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

    +

    Clears the global variables.

    Example responses

    @@ -30014,11 +47391,12 @@

    ascanViewOptionScanHeadersAllRequ

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30031,27 +47409,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanViewOptionShowAdvancedDialog

    -

    +

    scriptActionClearScriptCustomVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/view/optionShowAdvancedDialog/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearScriptCustomVar/?scriptName=string&varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/view/optionShowAdvancedDialog/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearScriptCustomVar/?scriptName=string&varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30067,32 +47444,46 @@ 

    ascanViewOptionShowAdvancedDialog

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/view/optionShowAdvancedDialog/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/clearScriptCustomVar/', params={
    +  'scriptName': 'string',  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/clearScriptCustomVar/

    -result = RestClient.get 'http://zap/JSON/ascan/view/optionShowAdvancedDialog/', - params: { - }, headers: headers +

    Clears a script custom variable.

    -p JSON.parse(result) +

    Parameters

    -
    -

    GET /JSON/ascan/view/optionShowAdvancedDialog/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    scriptNamequerystringtrueThe name of the script.
    varKeyquerystringtrueThe key of the variable.

    Example responses

    @@ -30100,11 +47491,12 @@

    ascanViewOptionShowAdvancedDialog

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30117,27 +47509,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionScan

    -

    +

    scriptActionClearScriptVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/scan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/scan/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30153,36 +47544,21 @@ 

    ascanActionScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/scan/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/clearScriptVar/', params={
    +  'scriptName': 'string',  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/scan/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/scan/

    +

    GET /JSON/script/action/clearScriptVar/

    -

    Runs the active scanner against the given URL and/or Context. Optionally, the 'recurse' parameter can be used to scan URLs under the given URL, the parameter 'inScopeOnly' can be used to constrain the scan to URLs that are in scope (ignored if a Context is specified), the parameter 'scanPolicyName' allows to specify the scan policy (if none is given it uses the default scan policy), the parameters 'method' and 'postData' allow to select a given request in conjunction with the given URL.

    +

    Clears the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    -

    Parameters

    +

    Parameters

    @@ -30194,52 +47570,17 @@

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - - - - - - - - +
    urlquerystringfalsenone
    recursequerybooleanfalsenone
    inScopeOnlyquerybooleanfalsenone
    scanPolicyNamequerystringfalsenone
    methodscriptName query stringfalsetrue none
    postDatavarKey query stringfalsenone
    contextIdqueryintegerfalsetrue none
    @@ -30250,11 +47591,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30267,27 +47609,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionScanAsUser

    -

    +

    scriptActionClearScriptVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/scanAsUser/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/clearScriptVars/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/scanAsUser/");
    +
    URL obj = new URL("http://zap/JSON/script/action/clearScriptVars/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30303,36 +47644,21 @@ 

    ascanActionScanAsUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/scanAsUser/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/clearScriptVars/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/scanAsUser/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/scanAsUser/

    +

    GET /JSON/script/action/clearScriptVars/

    -

    Active Scans from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

    +

    Clears the variables of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    -

    Parameters

    +

    Parameters

    @@ -30344,52 +47670,10 @@

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - +
    urlquerystringfalsenone
    contextIdqueryintegerfalsenone
    userIdqueryintegerfalsenone
    recursequerybooleanfalsenone
    scanPolicyNamequerystringfalsenone
    methodquerystringfalsenone
    postDatascriptName query stringfalsetrue none
    @@ -30400,11 +47684,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30417,27 +47702,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionPause

    -

    +

    scriptActionDisable

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/pause/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/disable/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/pause/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/script/action/disable/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30453,35 +47737,21 @@ 

    ascanActionPause

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/pause/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/script/action/disable/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/pause/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/pause/

    +

    GET /JSON/script/action/disable/

    -

    Parameters

    +

    Disables the script with the given name

    + +

    Parameters

    @@ -30493,9 +47763,9 @@

    Parameters

    - + - + @@ -30507,11 +47777,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scanIdscriptName queryintegerstring true none
    @@ -30524,27 +47795,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionResume

    -

    +

    scriptActionEnable

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/resume/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/enable/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/resume/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/script/action/enable/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30560,35 +47830,21 @@ 

    ascanActionResume

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/resume/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/script/action/enable/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/resume/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/resume/

    +

    GET /JSON/script/action/enable/

    -

    Parameters

    +

    Enables the script with the given name

    + +

    Parameters

    @@ -30600,9 +47856,9 @@

    Parameters

    - + - + @@ -30614,11 +47870,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scanIdscriptName queryintegerstring true none
    @@ -30631,27 +47888,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionStop

    -

    +

    scriptActionLoad

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/stop/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/stop/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30667,35 +47923,21 @@ 

    ascanActionStop

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/stop/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/script/action/load/', params={
    +  'scriptName': 'string',  'scriptType': 'string',  'scriptEngine': 'string',  'fileName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/stop/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/stop/

    +

    GET /JSON/script/action/load/

    -

    Parameters

    +

    Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8859-1).

    + +

    Parameters

    @@ -30707,12 +47949,47 @@

    Parameters

    - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    scanIdscriptName queryintegerstringtruenone
    scriptTypequerystringtruenone
    scriptEnginequerystringtruenone
    fileNamequerystring true none
    scriptDescriptionquerystringfalsenone
    charsetquerystringfalsenone
    @@ -30721,11 +47998,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30738,27 +48016,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionRemoveScan

    -

    +

    scriptActionRemove

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/removeScan/?scanId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/remove/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/removeScan/?scanId=0");
    +
    URL obj = new URL("http://zap/JSON/script/action/remove/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30774,35 +48051,21 @@ 

    ascanActionRemoveScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/removeScan/', params={
    -  'scanId': '0'
    +r = requests.get('http://zap/JSON/script/action/remove/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/removeScan/',
    -  params: {
    -  'scanId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/removeScan/

    +

    GET /JSON/script/action/remove/

    -

    Parameters

    +

    Removes the script with the given name

    + +

    Parameters

    @@ -30814,9 +48077,9 @@

    Parameters

    - + - + @@ -30828,11 +48091,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scanIdscriptName queryintegerstring true none
    @@ -30845,27 +48109,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionPauseAllScans

    -

    +

    scriptActionRunStandAloneScript

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/pauseAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/runStandAloneScript/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/pauseAllScans/");
    +
    URL obj = new URL("http://zap/JSON/script/action/runStandAloneScript/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30881,32 +48144,39 @@ 

    ascanActionPauseAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/pauseAllScans/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/runStandAloneScript/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/runStandAloneScript/

    -result = RestClient.get 'http://zap/JSON/ascan/action/pauseAllScans/', - params: { - }, headers: headers +

    Runs the stand alone script with the given name

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/action/pauseAllScans/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    scriptNamequerystringtruenone

    Example responses

    @@ -30914,11 +48184,12 @@

    ascanActionPauseAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -30931,27 +48202,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionResumeAllScans

    -

    +

    scriptActionSetGlobalVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/resumeAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/setGlobalVar/?varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/resumeAllScans/");
    +
    URL obj = new URL("http://zap/JSON/script/action/setGlobalVar/?varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -30967,32 +48237,46 @@ 

    ascanActionResumeAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/resumeAllScans/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/setGlobalVar/', params={
    +  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/setGlobalVar/

    -result = RestClient.get 'http://zap/JSON/ascan/action/resumeAllScans/', - params: { - }, headers: headers +

    Sets the value of the global variable with the given key.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/action/resumeAllScans/

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    varKeyquerystringtruenone
    varValuequerystringfalsenone

    Example responses

    @@ -31000,11 +48284,12 @@

    ascanActionResumeAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31017,27 +48302,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionStopAllScans

    -

    +

    scriptActionSetScriptVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/stopAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/stopAllScans/");
    +
    URL obj = new URL("http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31053,32 +48337,53 @@ 

    ascanActionStopAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/stopAllScans/', params={
    -
    +r = requests.get('http://zap/JSON/script/action/setScriptVar/', params={
    +  'scriptName': 'string',  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/action/setScriptVar/

    -result = RestClient.get 'http://zap/JSON/ascan/action/stopAllScans/', - params: { - }, headers: headers +

    Sets the value of the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/action/stopAllScans/

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    scriptNamequerystringtruenone
    varKeyquerystringtruenone
    varValuequerystringfalsenone

    Example responses

    @@ -31086,11 +48391,12 @@

    ascanActionStopAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31103,27 +48409,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionRemoveAllScans

    -

    +

    scriptViewGlobalCustomVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/removeAllScans/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/globalCustomVar/?varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/removeAllScans/");
    +
    URL obj = new URL("http://zap/JSON/script/view/globalCustomVar/?varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31139,32 +48444,39 @@ 

    ascanActionRemoveAllScans

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/removeAllScans/', params={
    -
    +r = requests.get('http://zap/JSON/script/view/globalCustomVar/', params={
    +  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    +print(r.json())
     
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +
    +

    GET /JSON/script/view/globalCustomVar/

    -result = RestClient.get 'http://zap/JSON/ascan/action/removeAllScans/', - params: { - }, headers: headers +

    Gets the value (string representation) of a global custom variable. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

    -p JSON.parse(result) +

    Parameters

    - -

    GET /JSON/ascan/action/removeAllScans/

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    varKeyquerystringtrueThe key of the variable.

    Example responses

    @@ -31172,11 +48484,12 @@

    ascanActionRemoveAllScans

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31189,27 +48502,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionClearExcludedFromScan

    -

    +

    scriptViewGlobalCustomVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/clearExcludedFromScan/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/globalCustomVars/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/clearExcludedFromScan/");
    +
    URL obj = new URL("http://zap/JSON/script/view/globalCustomVars/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31225,34 +48537,17 @@ 

    ascanActionClearExcludedFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/clearExcludedFromScan/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/clearExcludedFromScan/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/script/view/globalCustomVars/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/clearExcludedFromScan/

    +

    GET /JSON/script/view/globalCustomVars/

    -

    Clears the regexes of URLs excluded from the active scans.

    +

    Gets all the global custom variables (key/value pairs, the value is the string representation).

    Example responses

    @@ -31260,11 +48555,12 @@

    ascanActionClearExcludedFromScan

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31277,27 +48573,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionExcludeFromScan

    -

    +

    scriptViewGlobalVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/excludeFromScan/?regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/globalVar/?varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/excludeFromScan/?regex=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/globalVar/?varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31313,37 +48608,21 @@ 

    ascanActionExcludeFromScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/excludeFromScan/', params={
    -  'regex': 'string'
    +r = requests.get('http://zap/JSON/script/view/globalVar/', params={
    +  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/excludeFromScan/',
    -  params: {
    -  'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/excludeFromScan/

    +

    GET /JSON/script/view/globalVar/

    -

    Adds a regex of URLs that should be excluded from the active scans.

    +

    Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

    -

    Parameters

    +

    Parameters

    @@ -31355,7 +48634,7 @@

    Parameters

    - + @@ -31369,11 +48648,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    regexvarKey query string true
    @@ -31386,27 +48666,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionEnableAllScanners

    -

    +

    scriptViewGlobalVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/enableAllScanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/globalVars/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/enableAllScanners/");
    +
    URL obj = new URL("http://zap/JSON/script/view/globalVars/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31422,54 +48701,17 @@ 

    ascanActionEnableAllScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/enableAllScanners/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/enableAllScanners/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/script/view/globalVars/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/enableAllScanners/

    - -

    Enables all scanners of the scan policy with the given name, or the default if none given.

    - -

    Parameters

    +

    GET /JSON/script/view/globalVars/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanPolicyNamequerystringfalsenone
    +

    Gets all the global variables (key/value pairs).

    Example responses

    @@ -31477,11 +48719,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31494,27 +48737,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionDisableAllScanners

    -

    +

    scriptViewListEngines

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/disableAllScanners/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/listEngines/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/disableAllScanners/");
    +
    URL obj = new URL("http://zap/JSON/script/view/listEngines/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31530,54 +48772,17 @@ 

    ascanActionDisableAllScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/disableAllScanners/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/disableAllScanners/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/script/view/listEngines/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/disableAllScanners/

    - -

    Disables all scanners of the scan policy with the given name, or the default if none given.

    - -

    Parameters

    +

    GET /JSON/script/view/listEngines/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    scanPolicyNamequerystringfalsenone
    +

    Lists the script engines available

    Example responses

    @@ -31585,11 +48790,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31602,27 +48808,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionEnableScanners

    -

    +

    scriptViewListScripts

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/enableScanners/?ids=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/listScripts/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/enableScanners/?ids=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/listScripts/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31638,62 +48843,17 @@ 

    ascanActionEnableScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/enableScanners/', params={
    -  'ids': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/enableScanners/',
    -  params: {
    -  'ids' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/script/view/listScripts/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/enableScanners/

    - -

    Enables the scanners with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

    - -

    Parameters

    +

    GET /JSON/script/view/listScripts/

    - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idsquerystringtruenone
    scanPolicyNamequerystringfalsenone
    +

    Lists the scripts available, with its engine, name, description, type and error state.

    Example responses

    @@ -31701,11 +48861,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31718,27 +48879,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionDisableScanners

    -

    +

    scriptViewListTypes

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/disableScanners/?ids=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/listTypes/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/disableScanners/?ids=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/listTypes/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31754,62 +48914,17 @@ 

    ascanActionDisableScanners

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/disableScanners/', params={
    -  'ids': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/disableScanners/',
    -  params: {
    -  'ids' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/script/view/listTypes/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/disableScanners/

    - -

    Disables the scanners with the given IDs (comma separated list of IDs) of the scan policy with the given name, or the default if none given.

    - -

    Parameters

    +

    GET /JSON/script/view/listTypes/

    - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    idsquerystringtruenone
    scanPolicyNamequerystringfalsenone
    +

    Lists the script types available.

    Example responses

    @@ -31817,11 +48932,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31834,27 +48950,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetEnabledPolicies

    -

    +

    scriptViewScriptCustomVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/scriptCustomVar/?scriptName=string&varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setEnabledPolicies/?ids=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/scriptCustomVar/?scriptName=string&varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31870,35 +48985,21 @@ 

    ascanActionSetEnabledPolicies

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setEnabledPolicies/', params={
    -  'ids': 'string'
    +r = requests.get('http://zap/JSON/script/view/scriptCustomVar/', params={
    +  'scriptName': 'string',  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setEnabledPolicies/',
    -  params: {
    -  'ids' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setEnabledPolicies/

    +

    GET /JSON/script/view/scriptCustomVar/

    -

    Parameters

    +

    Gets the value (string representation) of a custom variable. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

    + +

    Parameters

    @@ -31910,18 +49011,18 @@

    Parameters

    - + - + - + - - + +
    idsscriptName query string truenoneThe name of the script.
    scanPolicyNamevarKey query stringfalsenonetrueThe key of the variable.
    @@ -31931,11 +49032,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -31948,27 +49050,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetPolicyAttackStrength

    -

    +

    scriptViewScriptCustomVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=0&attackStrength=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/scriptCustomVars/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAttackStrength/?id=0&attackStrength=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/scriptCustomVars/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -31984,36 +49085,21 @@ 

    ascanActionSetPolicyAttackStrength

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setPolicyAttackStrength/', params={
    -  'id': '0',  'attackStrength': 'string'
    +r = requests.get('http://zap/JSON/script/view/scriptCustomVars/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setPolicyAttackStrength/',
    -  params: {
    -  'id' => 'integer',
    -'attackStrength' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setPolicyAttackStrength/

    +

    GET /JSON/script/view/scriptCustomVars/

    -

    Parameters

    +

    Gets all the custom variables (key/value pairs, the value is the string representation) of a script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    + +

    Parameters

    @@ -32025,25 +49111,11 @@

    Parameters

    - - - - - - - - + - - - - - - - - +
    idqueryintegertruenone
    attackStrengthscriptName query string truenone
    scanPolicyNamequerystringfalsenoneThe name of the script.
    @@ -32053,11 +49125,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -32070,27 +49143,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetPolicyAlertThreshold

    -

    +

    scriptViewScriptVar

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=0&alertThreshold=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setPolicyAlertThreshold/?id=0&alertThreshold=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32106,36 +49178,21 @@ 

    ascanActionSetPolicyAlertThreshold

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setPolicyAlertThreshold/', params={
    -  'id': '0',  'alertThreshold': 'string'
    +r = requests.get('http://zap/JSON/script/view/scriptVar/', params={
    +  'scriptName': 'string',  'varKey': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setPolicyAlertThreshold/',
    -  params: {
    -  'id' => 'integer',
    -'alertThreshold' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setPolicyAlertThreshold/

    +

    GET /JSON/script/view/scriptVar/

    -

    Parameters

    +

    Gets the value of the variable with the given key for the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

    + +

    Parameters

    @@ -32147,24 +49204,17 @@

    Parameters

    - - - - - - - - + - + - +
    idqueryintegertruenone
    alertThresholdscriptName query string true none
    scanPolicyNamevarKey query stringfalsetrue none
    @@ -32175,11 +49225,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -32192,27 +49243,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetScannerAttackStrength

    -

    +

    scriptViewScriptVars

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setScannerAttackStrength/?id=0&attackStrength=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/script/view/scriptVars/?scriptName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setScannerAttackStrength/?id=0&attackStrength=string");
    +
    URL obj = new URL("http://zap/JSON/script/view/scriptVars/?scriptName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32228,36 +49278,21 @@ 

    ascanActionSetScannerAttackStrength

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setScannerAttackStrength/', params={
    -  'id': '0',  'attackStrength': 'string'
    +r = requests.get('http://zap/JSON/script/view/scriptVars/', params={
    +  'scriptName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setScannerAttackStrength/',
    -  params: {
    -  'id' => 'integer',
    -'attackStrength' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setScannerAttackStrength/

    +

    GET /JSON/script/view/scriptVars/

    -

    Parameters

    +

    Gets all the variables (key/value pairs) of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    + +

    Parameters

    @@ -32269,26 +49304,12 @@

    Parameters

    - - - - - - - - + - - - - - - -
    idqueryintegertruenone
    attackStrengthscriptName query string true none
    scanPolicyNamequerystringfalsenone
    @@ -32297,11 +49318,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -32314,27 +49336,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetScannerAlertThreshold

    -

    + +

    search

    +

    searchOtherHarByHeaderRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=0&alertThreshold=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/search/other/harByHeaderRegex/?regex=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setScannerAlertThreshold/?id=0&alertThreshold=string");
    +
    URL obj = new URL("http://zap/OTHER/search/other/harByHeaderRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32350,36 +49373,21 @@ 

    ascanActionSetScannerAlertThreshold

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setScannerAlertThreshold/', params={
    -  'id': '0',  'alertThreshold': 'string'
    +r = requests.get('http://zap/OTHER/search/other/harByHeaderRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setScannerAlertThreshold/',
    -  params: {
    -  'id' => 'integer',
    -'alertThreshold' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/ascan/action/setScannerAlertThreshold/

    +

    GET /OTHER/search/other/harByHeaderRegex/

    -

    Parameters

    +

    Returns the HTTP messages, in HAR format, that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -32391,21 +49399,28 @@

    Parameters

    - + - + - + - + - + + + + + + + + @@ -32415,15 +49430,9 @@

    Parameters

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    idregex queryintegerstring true none
    alertThresholdbaseurl query stringtruefalse none
    scanPolicyNamestartquerystringfalsenone
    count query string false
    @@ -32436,27 +49445,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    ascanActionAddScanPolicy

    -

    +

    searchOtherHarByRequestRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/search/other/harByRequestRegex/?regex=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/addScanPolicy/?scanPolicyName=string");
    +
    URL obj = new URL("http://zap/OTHER/search/other/harByRequestRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32472,35 +49482,21 @@ 

    ascanActionAddScanPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/addScanPolicy/', params={
    -  'scanPolicyName': 'string'
    +r = requests.get('http://zap/OTHER/search/other/harByRequestRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/addScanPolicy/',
    -  params: {
    -  'scanPolicyName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/ascan/action/addScanPolicy/

    +

    GET /OTHER/search/other/harByRequestRegex/

    -

    Parameters

    +

    Returns the HTTP messages, in HAR format, that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -32512,21 +49508,28 @@

    Parameters

    - + - + - + + + + + + + + @@ -32536,15 +49539,9 @@

    Parameters

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    scanPolicyNameregex query string true none
    alertThresholdbaseurl query string false none
    attackStrengthstartquerystringfalsenone
    count query string false
    @@ -32557,27 +49554,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    ascanActionRemoveScanPolicy

    -

    +

    searchOtherHarByResponseRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/search/other/harByResponseRegex/?regex=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/removeScanPolicy/?scanPolicyName=string");
    +
    URL obj = new URL("http://zap/OTHER/search/other/harByResponseRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32593,35 +49591,21 @@ 

    ascanActionRemoveScanPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/removeScanPolicy/', params={
    -  'scanPolicyName': 'string'
    +r = requests.get('http://zap/OTHER/search/other/harByResponseRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/removeScanPolicy/',
    -  params: {
    -  'scanPolicyName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/ascan/action/removeScanPolicy/

    +

    GET /OTHER/search/other/harByResponseRegex/

    -

    Parameters

    +

    Returns the HTTP messages, in HAR format, that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -32633,25 +49617,40 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + +
    scanPolicyNameregex query string true none
    baseurlquerystringfalsenone
    startquerystringfalsenone
    countquerystringfalsenone

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    @@ -32664,27 +49663,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    ascanActionUpdateScanPolicy

    -

    +

    searchOtherHarByUrlRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/OTHER/search/other/harByUrlRegex/?regex=string \
    +  -H 'Accept: */*'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/updateScanPolicy/?scanPolicyName=string");
    +
    URL obj = new URL("http://zap/OTHER/search/other/harByUrlRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32700,35 +49700,21 @@ 

    ascanActionUpdateScanPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': '*/*'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/updateScanPolicy/', params={
    -  'scanPolicyName': 'string'
    +r = requests.get('http://zap/OTHER/search/other/harByUrlRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/updateScanPolicy/',
    -  params: {
    -  'scanPolicyName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.content)
     
     
    -

    GET /JSON/ascan/action/updateScanPolicy/

    +

    GET /OTHER/search/other/harByUrlRegex/

    -

    Parameters

    +

    Returns the HTTP messages, in HAR format, that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -32740,21 +49726,28 @@

    Parameters

    - + - + - + + + + + + + + @@ -32764,15 +49757,9 @@

    Parameters

    Example responses

    - -

    default Response

    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    + +

    Responses

    scanPolicyNameregex query string true none
    alertThresholdbaseurl query string false none
    attackStrengthstartquerystringfalsenone
    count query string false
    @@ -32785,27 +49772,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of OTHER endpoints.None
    +

    Response Schema

    + -

    ascanActionImportScanPolicy

    -

    +

    searchViewMessagesByHeaderRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/importScanPolicy/?path=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/importScanPolicy/?path=string");
    +
    URL obj = new URL("http://zap/JSON/search/view/messagesByHeaderRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32821,37 +49809,21 @@ 

    ascanActionImportScanPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/importScanPolicy/', params={
    -  'path': 'string'
    +r = requests.get('http://zap/JSON/search/view/messagesByHeaderRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/importScanPolicy/',
    -  params: {
    -  'path' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/importScanPolicy/

    +

    GET /JSON/search/view/messagesByHeaderRegex/

    -

    Imports a Scan Policy using the given file system path.

    +

    Returns the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -32863,12 +49835,33 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + +
    pathregex query string true none
    baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    @@ -32877,11 +49870,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -32894,27 +49888,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionAddExcludedParam

    -

    +

    searchViewMessagesByRequestRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/addExcludedParam/?name=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/messagesByRequestRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/addExcludedParam/?name=string");
    +
    URL obj = new URL("http://zap/JSON/search/view/messagesByRequestRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -32930,37 +49923,21 @@ 

    ascanActionAddExcludedParam

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/addExcludedParam/', params={
    -  'name': 'string'
    +r = requests.get('http://zap/JSON/search/view/messagesByRequestRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/addExcludedParam/',
    -  params: {
    -  'name' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/addExcludedParam/

    +

    GET /JSON/search/view/messagesByRequestRegex/

    -

    Adds a new parameter excluded from the scan, using the specified name. Optionally sets if the new entry applies to a specific URL (default, all URLs) and sets the ID of the type of the parameter (default, ID of any type). The type IDs can be obtained with the view excludedParamTypes.

    +

    Returns the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -32972,21 +49949,28 @@

    Parameters

    - + - + + + + + + + + - + @@ -33000,11 +49984,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    nameregex query string true none
    typebaseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
    start query string false none
    urlcount query string false
    @@ -33017,27 +50002,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionModifyExcludedParam

    -

    +

    searchViewMessagesByResponseRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/modifyExcludedParam/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/messagesByResponseRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/modifyExcludedParam/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/search/view/messagesByResponseRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33053,37 +50037,21 @@ 

    ascanActionModifyExcludedParam

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/modifyExcludedParam/', params={
    -  'idx': '0'
    +r = requests.get('http://zap/JSON/search/view/messagesByResponseRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/modifyExcludedParam/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/modifyExcludedParam/

    +

    GET /JSON/search/view/messagesByResponseRegex/

    -

    Modifies a parameter excluded from the scan. Allows to modify the name, the URL and the type of parameter. The parameter is selected with its index, which can be obtained with the view excludedParams.

    +

    Returns the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -33095,28 +50063,28 @@

    Parameters

    - + - + - + - + - + - + @@ -33130,11 +50098,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    idxregex queryintegerstring true none
    namebaseurl query string falsenoneThe highest URL in the Sites tree under which messages should be included.
    typestart query string false none
    urlcount query string false
    @@ -33147,27 +50116,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionRemoveExcludedParam

    -

    +

    searchViewMessagesByUrlRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/removeExcludedParam/?idx=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/messagesByUrlRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/removeExcludedParam/?idx=0");
    +
    URL obj = new URL("http://zap/JSON/search/view/messagesByUrlRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33183,37 +50151,21 @@ 

    ascanActionRemoveExcludedParam

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/removeExcludedParam/', params={
    -  'idx': '0'
    +r = requests.get('http://zap/JSON/search/view/messagesByUrlRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/removeExcludedParam/',
    -  params: {
    -  'idx' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/removeExcludedParam/

    +

    GET /JSON/search/view/messagesByUrlRegex/

    -

    Removes a parameter excluded from the scan, with the given index. The index can be obtained with the view excludedParams.

    +

    Returns the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -33225,12 +50177,33 @@

    Parameters

    - + - + + + + + + + + + + + + + + + + + + + + + +
    idxregex queryintegerstring true none
    baseurlquerystringfalseThe highest URL in the Sites tree under which messages should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    @@ -33239,11 +50212,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33256,27 +50230,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSkipScanner

    -

    +

    searchViewUrlsByHeaderRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/skipScanner/?scanId=0&scannerId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/skipScanner/?scanId=0&scannerId=0");
    +
    URL obj = new URL("http://zap/JSON/search/view/urlsByHeaderRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33292,38 +50265,21 @@ 

    ascanActionSkipScanner

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/skipScanner/', params={
    -  'scanId': '0',  'scannerId': '0'
    +r = requests.get('http://zap/JSON/search/view/urlsByHeaderRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/skipScanner/',
    -  params: {
    -  'scanId' => 'integer',
    -'scannerId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/skipScanner/

    +

    GET /JSON/search/view/urlsByHeaderRegex/

    -

    Skips the scanner using the given IDs of the scan and the scanner.

    +

    Returns the URLs of the HTTP messages that match the given regular expression in the header(s) optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -33335,17 +50291,31 @@

    Parameters

    - + - + - + - - + + + + + + + + + + + + + + + +
    scanIdregex queryintegerstring true none
    scannerIdbaseurl queryintegertruestringfalseThe highest URL in the Sites tree under which URLs should be included.
    startquerystringfalsenone
    countquerystringfalse none
    @@ -33356,11 +50326,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33373,27 +50344,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionAttackPolicy

    -

    +

    searchViewUrlsByRequestRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/urlsByRequestRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionAttackPolicy/?String=string");
    +
    URL obj = new URL("http://zap/JSON/search/view/urlsByRequestRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33409,35 +50379,21 @@ 

    ascanActionSetOptionAttackPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionAttackPolicy/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/search/view/urlsByRequestRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAttackPolicy/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionAttackPolicy/

    +

    GET /JSON/search/view/urlsByRequestRegex/

    -

    Parameters

    +

    Returns the URLs of the HTTP messages that match the given regular expression in the request optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -33449,12 +50405,33 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + +
    Stringregex query string true none
    baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    @@ -33463,11 +50440,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33480,27 +50458,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionDefaultPolicy

    -

    +

    searchViewUrlsByResponseRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/urlsByResponseRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionDefaultPolicy/?String=string");
    +
    URL obj = new URL("http://zap/JSON/search/view/urlsByResponseRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33516,35 +50493,21 @@ 

    ascanActionSetOptionDefaultPolicy

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionDefaultPolicy/', params={
    -  'String': 'string'
    +r = requests.get('http://zap/JSON/search/view/urlsByResponseRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionDefaultPolicy/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionDefaultPolicy/

    +

    GET /JSON/search/view/urlsByResponseRegex/

    -

    Parameters

    +

    Returns the URLs of the HTTP messages that match the given regular expression in the response optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    + +

    Parameters

    @@ -33556,12 +50519,33 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + +
    Stringregex query string true none
    baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    @@ -33570,11 +50554,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33587,27 +50572,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionAddQueryParam

    -

    +

    searchViewUrlsByUrlRegex

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/search/view/urlsByUrlRegex/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionAddQueryParam/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/search/view/urlsByUrlRegex/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33623,37 +50607,21 @@ 

    ascanActionSetOptionAddQueryParam

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionAddQueryParam/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/search/view/urlsByUrlRegex/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAddQueryParam/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionAddQueryParam/

    +

    GET /JSON/search/view/urlsByUrlRegex/

    -

    Sets whether or not the active scanner should add a query param to GET requests which do not have parameters to start with.

    +

    Returns the URLs of the HTTP messages that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.

    -

    Parameters

    +

    Parameters

    @@ -33665,12 +50633,33 @@

    Parameters

    - + + + + + + + + + + + + + + + + + + + + + +
    Booleanregex query string true none
    baseurlquerystringfalseThe highest URL in the Sites tree under which URLs should be included.
    startquerystringfalsenone
    countquerystringfalsenone
    @@ -33679,11 +50668,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33696,27 +50686,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionAllowAttackOnStart

    -

    + +

    selenium

    +

    seleniumActionAddBrowserArgument

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/addBrowserArgument/?browser=string&argument=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/addBrowserArgument/?browser=string&argument=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33732,35 +50723,21 @@ 

    ascanActionSetOptionAllowAttackO

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/selenium/action/addBrowserArgument/', params={
    +  'browser': 'string',  'argument': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionAllowAttackOnStart/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionAllowAttackOnStart/

    +

    GET /JSON/selenium/action/addBrowserArgument/

    -

    Parameters

    +

    Adds a browser argument.

    + +

    Parameters

    @@ -33772,11 +50749,25 @@

    Parameters

    - + - + + + + + + + + + + + + + + +
    Booleanbrowser query string truenoneThe browser, chrome or firefox.
    argumentquerystringtrueThe argument.
    enabledquerystringfalseThe enabled state, true or false.
    @@ -33786,11 +50777,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33803,27 +50795,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionDelayInMs

    -

    +

    seleniumActionRemoveBrowserArgument

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/removeBrowserArgument/?browser=string&argument=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionDelayInMs/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/removeBrowserArgument/?browser=string&argument=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33839,35 +50830,21 @@ 

    ascanActionSetOptionDelayInMs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionDelayInMs/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/removeBrowserArgument/', params={
    +  'browser': 'string',  'argument': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionDelayInMs/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionDelayInMs/

    +

    GET /JSON/selenium/action/removeBrowserArgument/

    -

    Parameters

    +

    Removes a browser argument.

    + +

    Parameters

    @@ -33879,11 +50856,18 @@

    Parameters

    - + - + - + + + + + + + +
    Integerbrowser queryintegerstring truenoneThe browser, chrome or firefox.
    argumentquerystringtrueThe argument.
    @@ -33893,11 +50877,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -33910,27 +50895,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionHandleAntiCSRFTokens

    -

    +

    seleniumActionSetBrowserArgumentEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setBrowserArgumentEnabled/?browser=string&argument=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setBrowserArgumentEnabled/?browser=string&argument=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -33946,35 +50930,21 @@ 

    ascanActionSetOptionHandleAnti

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/selenium/action/setBrowserArgumentEnabled/', params={
    +  'browser': 'string',  'argument': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionHandleAntiCSRFTokens/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionHandleAntiCSRFTokens/

    +

    GET /JSON/selenium/action/setBrowserArgumentEnabled/

    -

    Parameters

    +

    Sets whether or not a browser argument is enabled.

    + +

    Parameters

    @@ -33986,11 +50956,25 @@

    Parameters

    - + - + + + + + + + + + + + + + + +
    Booleanbrowser query string truenoneThe browser, chrome or firefox.
    argumentquerystringtrueThe argument.
    enabledquerystringtrueThe enabled state, true or false.
    @@ -34000,11 +50984,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -34017,27 +51002,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionHostPerScan

    -

    +

    seleniumActionSetOptionChromeBinaryPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionChromeBinaryPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionHostPerScan/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionChromeBinaryPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34053,35 +51037,21 @@ 

    ascanActionSetOptionHostPerScan

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionHostPerScan/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionChromeBinaryPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionHostPerScan/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionHostPerScan/

    +

    GET /JSON/selenium/action/setOptionChromeBinaryPath/

    -

    Parameters

    +

    Sets the current path to Chrome binary

    + +

    Parameters

    @@ -34093,9 +51063,9 @@

    Parameters

    - + - + @@ -34107,11 +51077,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34124,27 +51095,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionInjectPluginIdInHeader

    -

    +

    seleniumActionSetOptionChromeDriverPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionChromeDriverPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionChromeDriverPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34160,37 +51130,21 @@ 

    ascanActionSetOptionInjectPl

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionChromeDriverPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionInjectPluginIdInHeader/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionInjectPluginIdInHeader/

    +

    GET /JSON/selenium/action/setOptionChromeDriverPath/

    -

    Sets whether or not the active scanner should inject the HTTP request header X-ZAP-Scan-ID, with the ID of the scanner that's sending the requests.

    +

    Sets the current path to ChromeDriver

    -

    Parameters

    +

    Parameters

    @@ -34202,7 +51156,7 @@

    Parameters

    - + @@ -34216,11 +51170,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanString query string true
    @@ -34233,27 +51188,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionMaxChartTimeInMins

    -

    +

    seleniumActionSetOptionFirefoxBinaryPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34269,35 +51223,21 @@ 

    ascanActionSetOptionMaxChartTime

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxBinaryPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxChartTimeInMins/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionMaxChartTimeInMins/

    +

    GET /JSON/selenium/action/setOptionFirefoxBinaryPath/

    -

    Parameters

    +

    Sets the current path to Firefox binary

    + +

    Parameters

    @@ -34309,9 +51249,9 @@

    Parameters

    - + - + @@ -34323,11 +51263,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34340,27 +51281,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionMaxResultsToList

    -

    +

    seleniumActionSetOptionFirefoxDefaultProfile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxResultsToList/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34376,35 +51316,19 @@ 

    ascanActionSetOptionMaxResultsToLi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionMaxResultsToList/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxDefaultProfile/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxResultsToList/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionMaxResultsToList/

    +

    GET /JSON/selenium/action/setOptionFirefoxDefaultProfile/

    -

    Parameters

    +

    Parameters

    @@ -34416,9 +51340,9 @@

    Parameters

    - + - + @@ -34430,11 +51354,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34447,27 +51372,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionMaxRuleDurationInMins

    -

    +

    seleniumActionSetOptionFirefoxDriverPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34483,35 +51407,21 @@ 

    ascanActionSetOptionMaxRuleDu

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionFirefoxDriverPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxRuleDurationInMins/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionMaxRuleDurationInMins/

    +

    GET /JSON/selenium/action/setOptionFirefoxDriverPath/

    -

    Parameters

    +

    Sets the current path to Firefox driver (geckodriver)

    + +

    Parameters

    @@ -34523,9 +51433,9 @@

    Parameters

    - + - + @@ -34537,11 +51447,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34554,27 +51465,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionMaxScanDurationInMins

    -

    +

    seleniumActionSetOptionIeDriverPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionIeDriverPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionIeDriverPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34590,35 +51500,21 @@ 

    ascanActionSetOptionMaxScanDu

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionIeDriverPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxScanDurationInMins/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionMaxScanDurationInMins/

    +

    GET /JSON/selenium/action/setOptionIeDriverPath/

    -

    Parameters

    +

    Option no longer in effective use.

    + +

    Parameters

    @@ -34630,9 +51526,9 @@

    Parameters

    - + - + @@ -34644,11 +51540,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34661,27 +51558,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionMaxScansInUI

    -

    +

    seleniumActionSetOptionLastDirectory

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionLastDirectory/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionMaxScansInUI/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionLastDirectory/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34697,35 +51593,19 @@ 

    ascanActionSetOptionMaxScansInUI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionMaxScansInUI/', params={
    -  'Integer': '0'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionLastDirectory/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionMaxScansInUI/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionMaxScansInUI/

    +

    GET /JSON/selenium/action/setOptionLastDirectory/

    -

    Parameters

    +

    Parameters

    @@ -34737,9 +51617,9 @@

    Parameters

    - + - + @@ -34751,11 +51631,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    IntegerString queryintegerstring true none
    @@ -34768,27 +51649,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionPromptInAttackMode

    -

    +

    seleniumActionSetOptionPhantomJsBinaryPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptInAttackMode/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34804,35 +51684,21 @@ 

    ascanActionSetOptionPromptInAtta

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionPromptInAttackMode/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/selenium/action/setOptionPhantomJsBinaryPath/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionPromptInAttackMode/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionPromptInAttackMode/

    +

    GET /JSON/selenium/action/setOptionPhantomJsBinaryPath/

    -

    Parameters

    +

    Option no longer in effective use.

    + +

    Parameters

    @@ -34844,7 +51710,7 @@

    Parameters

    - + @@ -34858,11 +51724,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanString query string true
    @@ -34875,27 +51742,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionPromptToClearFinishedScans

    -

    +

    seleniumViewGetBrowserArguments

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/getBrowserArguments/?browser=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/getBrowserArguments/?browser=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -34911,35 +51777,21 @@ 

    ascanActionSetOptionProm

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/selenium/view/getBrowserArguments/', params={
    +  'browser': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionPromptToClearFinishedScans/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionPromptToClearFinishedScans/

    +

    GET /JSON/selenium/view/getBrowserArguments/

    -

    Parameters

    +

    Gets the browser arguments.

    + +

    Parameters

    @@ -34951,11 +51803,11 @@

    Parameters

    - + - +
    Booleanbrowser query string truenoneThe browser, chrome or firefox.
    @@ -34965,11 +51817,12 @@

    Parametersdefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -34982,27 +51835,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionRescanInAttackMode

    -

    +

    seleniumViewOptionBrowserExtensions

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionBrowserExtensions/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionRescanInAttackMode/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionBrowserExtensions/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35018,65 +51870,170 @@ 

    ascanActionSetOptionRescanInAtta

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionRescanInAttackMode/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    +r = requests.get('http://zap/JSON/selenium/view/optionBrowserExtensions/', headers = headers)
     
    -print r.json()
    +print(r.json())
    +
    +
    +

    GET /JSON/selenium/view/optionBrowserExtensions/

    + +
    +

    Example responses

    -
    require 'rest-client'
    -require 'json'
    +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    + + +

    seleniumViewOptionChromeBinaryPath

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/selenium/view/optionChromeBinaryPath/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionChromeBinaryPath/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionRescanInAttackMode/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionChromeBinaryPath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionRescanInAttackMode/

    +

    GET /JSON/selenium/view/optionChromeBinaryPath/

    -

    Parameters

    +

    Returns the current path to Chrome binary

    + +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    BooleanquerystringtruenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    seleniumViewOptionChromeDriverPath

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/selenium/view/optionChromeDriverPath/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionChromeDriverPath/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/selenium/view/optionChromeDriverPath/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/selenium/view/optionChromeDriverPath/

    + +

    Returns the current path to ChromeDriver

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35089,27 +52046,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionScanHeadersAllRequests

    -

    +

    seleniumViewOptionFirefoxBinaryPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionFirefoxBinaryPath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxBinaryPath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35125,55 +52081,17 @@ 

    ascanActionSetOptionScanHead

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionScanHeadersAllRequests/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionFirefoxBinaryPath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionScanHeadersAllRequests/

    - -

    Sets whether or not the HTTP Headers of all requests should be scanned. Not just requests that send parameters, through the query or request body.

    - -

    Parameters

    +

    GET /JSON/selenium/view/optionFirefoxBinaryPath/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    Returns the current path to Firefox binary

    Example responses

    @@ -35181,11 +52099,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35198,27 +52117,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionShowAdvancedDialog

    -

    +

    seleniumViewOptionFirefoxDefaultProfile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35234,53 +52152,15 @@ 

    ascanActionSetOptionShowAdvanced

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/', params={
    -  'Boolean': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionShowAdvancedDialog/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionFirefoxDefaultProfile/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionShowAdvancedDialog/

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Booleanquerystringtruenone
    +

    GET /JSON/selenium/view/optionFirefoxDefaultProfile/

    Example responses

    @@ -35288,11 +52168,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35305,27 +52186,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionTargetParamsEnabledRPC

    -

    +

    seleniumViewOptionFirefoxDriverPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionFirefoxDriverPath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionFirefoxDriverPath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35341,53 +52221,17 @@ 

    ascanActionSetOptionTargetPa

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionTargetParamsEnabledRPC/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionFirefoxDriverPath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionTargetParamsEnabledRPC/

    - -

    Parameters

    +

    GET /JSON/selenium/view/optionFirefoxDriverPath/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    Returns the current path to Firefox driver (geckodriver)

    Example responses

    @@ -35395,11 +52239,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35412,27 +52257,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionTargetParamsInjectable

    -

    +

    seleniumViewOptionIeDriverPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionIeDriverPath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionIeDriverPath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35448,53 +52292,17 @@ 

    ascanActionSetOptionTargetPa

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionTargetParamsInjectable/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionIeDriverPath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionTargetParamsInjectable/

    - -

    Parameters

    +

    GET /JSON/selenium/view/optionIeDriverPath/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    Option no longer in effective use.

    Example responses

    @@ -35502,11 +52310,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35519,27 +52328,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ascanActionSetOptionThreadPerHost

    -

    +

    seleniumViewOptionLastDirectory

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionLastDirectory/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ascan/action/setOptionThreadPerHost/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionLastDirectory/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35555,53 +52363,15 @@ 

    ascanActionSetOptionThreadPerHost

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ascan/action/setOptionThreadPerHost/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ascan/action/setOptionThreadPerHost/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionLastDirectory/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ascan/action/setOptionThreadPerHost/

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Integerqueryintegertruenone
    +

    GET /JSON/selenium/view/optionLastDirectory/

    Example responses

    @@ -35609,11 +52379,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35626,29 +52397,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    context

    -

    contextViewContextList

    -

    +

    seleniumViewOptionPhantomJsBinaryPath

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/contextList/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/contextList/");
    +
    URL obj = new URL("http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35664,34 +52432,17 @@ 

    contextViewContextList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/view/contextList/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/view/contextList/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/selenium/view/optionPhantomJsBinaryPath/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/contextList/

    +

    GET /JSON/selenium/view/optionPhantomJsBinaryPath/

    -

    List context names of current session

    +

    Option no longer in effective use.

    Example responses

    @@ -35699,11 +52450,12 @@

    contextViewContextList

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35716,27 +52468,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewExcludeRegexs

    -

    + +

    sessionManagement

    +

    sessionManagementActionSetSessionManagementMethod

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/excludeRegexs/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=string&methodName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/excludeRegexs/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=string&methodName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35752,37 +52505,21 @@ 

    contextViewExcludeRegexs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/excludeRegexs/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/sessionManagement/action/setSessionManagementMethod/', params={
    +  'contextId': 'string',  'methodName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/excludeRegexs/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/excludeRegexs/

    +

    GET /JSON/sessionManagement/action/setSessionManagementMethod/

    -

    List excluded regexs for context

    +

    Sets the session management method for the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -35794,12 +52531,26 @@

    Parameters

    - + + + + + + + + + + + + + + +
    contextNamecontextId query string true none
    methodNamequerystringtruenone
    methodConfigParamsquerystringfalsenone
    @@ -35808,11 +52559,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -35825,27 +52577,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewIncludeRegexs

    -

    +

    sessionManagementViewGetSessionManagementMethod

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/includeRegexs/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/includeRegexs/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35861,37 +52612,21 @@ 

    contextViewIncludeRegexs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/includeRegexs/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethod/', params={
    +  'contextId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/includeRegexs/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/includeRegexs/

    +

    GET /JSON/sessionManagement/view/getSessionManagementMethod/

    -

    List included regexs for context

    +

    Gets the name of the session management method for the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -35903,7 +52638,7 @@

    Parameters

    - + @@ -35917,11 +52652,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamecontextId query string true
    @@ -35934,27 +52670,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewContext

    -

    +

    sessionManagementViewGetSessionManagementMethodConfigParams

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/context/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/context/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -35970,37 +52705,21 @@ 

    contextViewContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/context/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/', params={
    +  'methodName': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/context/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/context/

    +

    GET /JSON/sessionManagement/view/getSessionManagementMethodConfigParams/

    -

    List the information about the named context

    +

    Gets the configuration parameters for the session management method with the given name.

    -

    Parameters

    +

    Parameters

    @@ -36012,7 +52731,7 @@

    Parameters

    - + @@ -36026,11 +52745,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamemethodName query string true
    @@ -36043,27 +52763,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewTechnologyList

    -

    +

    sessionManagementViewGetSupportedSessionManagementMethods

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/technologyList/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/technologyList/");
    +
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36079,34 +52798,17 @@ 

    contextViewTechnologyList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/view/technologyList/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/view/technologyList/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/technologyList/

    +

    GET /JSON/sessionManagement/view/getSupportedSessionManagementMethods/

    -

    Lists the names of all built in technologies

    +

    Gets the name of the session management methods.

    Example responses

    @@ -36114,11 +52816,12 @@

    contextViewTechnologyList

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -36131,27 +52834,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewIncludedTechnologyList

    -

    + +

    soap

    +

    soapActionImportFile

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/includedTechnologyList/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/soap/action/importFile/?file=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/includedTechnologyList/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/soap/action/importFile/?file=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36167,37 +52871,21 @@ 

    contextViewIncludedTechnologyList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/includedTechnologyList/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/soap/action/importFile/', params={
    +  'file': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/includedTechnologyList/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/includedTechnologyList/

    +

    GET /JSON/soap/action/importFile/

    -

    Lists the names of all technologies included in a context

    +

    Import a WSDL definition from local file.

    -

    Parameters

    +

    Parameters

    @@ -36209,7 +52897,7 @@

    Parameters

    - + @@ -36223,11 +52911,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamefile query string true
    @@ -36240,27 +52929,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewExcludedTechnologyList

    -

    +

    soapActionImportUrl

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/excludedTechnologyList/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/soap/action/importUrl/?url=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/excludedTechnologyList/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/soap/action/importUrl/?url=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36276,37 +52964,21 @@ 

    contextViewExcludedTechnologyList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/excludedTechnologyList/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/soap/action/importUrl/', params={
    +  'url': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/excludedTechnologyList/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/excludedTechnologyList/

    +

    GET /JSON/soap/action/importUrl/

    -

    Lists the names of all technologies excluded from a context

    +

    Import a WSDL definition from a URL.

    -

    Parameters

    +

    Parameters

    @@ -36318,7 +52990,7 @@

    Parameters

    - + @@ -36332,11 +53004,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNameurl query string true
    @@ -36349,27 +53022,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextViewUrls

    -

    + +

    spider

    +

    spiderActionAddDomainAlwaysInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/view/urls/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/view/urls/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/addDomainAlwaysInScope/?value=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36385,37 +53059,21 @@ 

    contextViewUrls

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/view/urls/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/spider/action/addDomainAlwaysInScope/', params={
    +  'value': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/view/urls/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/view/urls/

    +

    GET /JSON/spider/action/addDomainAlwaysInScope/

    -

    Lists the URLs accessed through/by ZAP, that belong to the context with the given name.

    +

    Adds a new domain that's always in scope, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).

    -

    Parameters

    +

    Parameters

    @@ -36427,12 +53085,26 @@

    Parameters

    - + + + + + + + + + + + + + + +
    contextNamevalue query string true none
    isRegexquerystringfalsenone
    isEnabledquerystringfalsenone
    @@ -36441,11 +53113,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -36458,27 +53131,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionExcludeFromContext

    -

    +

    spiderActionClearExcludedFromScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/clearExcludedFromScan/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/excludeFromContext/?contextName=string&regex=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/clearExcludedFromScan/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36494,75 +53166,172 @@ 

    contextActionExcludeFromContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/excludeFromContext/', params={
    -  'contextName': 'string',  'regex': 'string'
    -}, headers = headers)
    +r = requests.get('http://zap/JSON/spider/action/clearExcludedFromScan/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/spider/action/clearExcludedFromScan/

    + +

    Clears the regexes of URLs excluded from the spider scans.

    + +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchema
    defaultDefaultError of JSON endpoints.ErrorJson
    -print r.json() + +

    spiderActionDisableAllDomainsAlwaysInScope

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/ \
    +  -H 'Accept: application/json'
     
    -
    require 'rest-client'
    -require 'json'
    +
    URL obj = new URL("http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
     
    +
    import requests
     headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/action/excludeFromContext/',
    -  params: {
    -  'contextName' => 'string',
    -'regex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/disableAllDomainsAlwaysInScope/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/excludeFromContext/

    +

    GET /JSON/spider/action/disableAllDomainsAlwaysInScope/

    -

    Add exclude regex to context

    +

    Disables all domains that are always in scope.

    -

    Parameters

    +
    +

    Example responses

    + +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - - - - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    contextNamequerystringtruenone
    regexquerystringtruenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    spiderActionEnableAllDomainsAlwaysInScope

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/spider/action/enableAllDomainsAlwaysInScope/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/spider/action/enableAllDomainsAlwaysInScope/

    + +

    Enables all domains that are always in scope.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -36575,27 +53344,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionIncludeInContext

    -

    +

    spiderActionExcludeFromScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/excludeFromScan/?regex=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/includeInContext/?contextName=string&regex=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/excludeFromScan/?regex=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36611,38 +53379,21 @@ 

    contextActionIncludeInContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/includeInContext/', params={
    -  'contextName': 'string',  'regex': 'string'
    +r = requests.get('http://zap/JSON/spider/action/excludeFromScan/', params={
    +  'regex': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/includeInContext/',
    -  params: {
    -  'contextName' => 'string',
    -'regex' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/includeInContext/

    +

    GET /JSON/spider/action/excludeFromScan/

    -

    Add include regex to context

    +

    Adds a regex of URLs that should be excluded from the spider scans.

    -

    Parameters

    +

    Parameters

    @@ -36654,13 +53405,6 @@

    Parameters

    - - - - - - - @@ -36675,11 +53419,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamequerystringtruenone
    regex query string
    @@ -36692,27 +53437,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionSetContextRegexs

    -

    +

    spiderActionModifyDomainAlwaysInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/setContextRegexs/?contextName=string&incRegexs=string&excRegexs=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/modifyDomainAlwaysInScope/?idx=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36728,39 +53472,21 @@ 

    contextActionSetContextRegexs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/setContextRegexs/', params={
    -  'contextName': 'string',  'incRegexs': 'string',  'excRegexs': 'string'
    +r = requests.get('http://zap/JSON/spider/action/modifyDomainAlwaysInScope/', params={
    +  'idx': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/setContextRegexs/',
    -  params: {
    -  'contextName' => 'string',
    -'incRegexs' => 'string',
    -'excRegexs' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/setContextRegexs/

    +

    GET /JSON/spider/action/modifyDomainAlwaysInScope/

    -

    Set the regexs to include and exclude for a context, both supplied as JSON string arrays

    +

    Modifies a domain that's always in scope. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view domainsAlwaysInScope.

    -

    Parameters

    +

    Parameters

    @@ -36772,24 +53498,31 @@

    Parameters

    - + - + - + - + - + + + + + + + +
    contextNameidx query string true none
    incRegexsvalue query stringtruefalse none
    excRegexsisRegex query stringtruefalsenone
    isEnabledquerystringfalse none
    @@ -36800,11 +53533,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -36817,27 +53551,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionNewContext

    -

    +

    spiderActionPause

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/newContext/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/pause/?scanId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/newContext/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/pause/?scanId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36853,37 +53586,19 @@ 

    contextActionNewContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/newContext/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/spider/action/pause/', params={
    +  'scanId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/newContext/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/newContext/

    - -

    Creates a new context with the given name in the current session

    +

    GET /JSON/spider/action/pause/

    -

    Parameters

    +

    Parameters

    @@ -36895,7 +53610,7 @@

    Parameters

    - + @@ -36909,11 +53624,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamescanId query string true
    @@ -36926,27 +53642,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionRemoveContext

    -

    +

    spiderActionPauseAllScans

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/removeContext/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/pauseAllScans/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/removeContext/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/pauseAllScans/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -36962,55 +53677,15 @@ 

    contextActionRemoveContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/action/removeContext/', params={
    -  'contextName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/action/removeContext/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/pauseAllScans/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/removeContext/

    - -

    Removes a context in the current session

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextNamequerystringtruenone
    +

    GET /JSON/spider/action/pauseAllScans/

    Example responses

    @@ -37018,11 +53693,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -37035,27 +53711,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionExportContext

    -

    +

    spiderActionRemoveAllScans

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/removeAllScans/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/exportContext/?contextName=string&contextFile=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/removeAllScans/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37071,63 +53746,15 @@ 

    contextActionExportContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/action/exportContext/', params={
    -  'contextName': 'string',  'contextFile': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/action/exportContext/',
    -  params: {
    -  'contextName' => 'string',
    -'contextFile' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/removeAllScans/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/exportContext/

    - -

    Exports the context with the given name to a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextNamequerystringtruenone
    contextFilequerystringtruenone
    +

    GET /JSON/spider/action/removeAllScans/

    Example responses

    @@ -37135,11 +53762,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -37152,27 +53780,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionImportContext

    -

    +

    spiderActionRemoveDomainAlwaysInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/importContext/?contextFile=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/importContext/?contextFile=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/removeDomainAlwaysInScope/?idx=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37188,37 +53815,21 @@ 

    contextActionImportContext

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/importContext/', params={
    -  'contextFile': 'string'
    +r = requests.get('http://zap/JSON/spider/action/removeDomainAlwaysInScope/', params={
    +  'idx': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/importContext/',
    -  params: {
    -  'contextFile' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/importContext/

    +

    GET /JSON/spider/action/removeDomainAlwaysInScope/

    -

    Imports a context from a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.

    +

    Removes a domain that's always in scope, with the given index. The index can be obtained with the view domainsAlwaysInScope.

    -

    Parameters

    +

    Parameters

    @@ -37230,7 +53841,7 @@

    Parameters

    - + @@ -37244,11 +53855,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextFileidx query string true
    @@ -37261,27 +53873,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionIncludeContextTechnologies

    -

    +

    spiderActionRemoveScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/removeScan/?scanId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/includeContextTechnologies/?contextName=string&technologyNames=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/removeScan/?scanId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37297,38 +53908,19 @@ 

    contextActionIncludeContextTech

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/includeContextTechnologies/', params={
    -  'contextName': 'string',  'technologyNames': 'string'
    +r = requests.get('http://zap/JSON/spider/action/removeScan/', params={
    +  'scanId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/includeContextTechnologies/',
    -  params: {
    -  'contextName' => 'string',
    -'technologyNames' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/includeContextTechnologies/

    - -

    Includes technologies with the given names, separated by a comma, to a context

    +

    GET /JSON/spider/action/removeScan/

    -

    Parameters

    +

    Parameters

    @@ -37340,14 +53932,7 @@

    Parameters

    - - - - - - - - + @@ -37361,11 +53946,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamequerystringtruenone
    technologyNamesscanId query string true
    @@ -37378,27 +53964,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionIncludeAllContextTechnologies

    -

    +

    spiderActionResume

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/resume/?scanId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/includeAllContextTechnologies/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/resume/?scanId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37414,37 +53999,19 @@ 

    contextActionIncludeAllConte

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/includeAllContextTechnologies/', params={
    -  'contextName': 'string'
    +r = requests.get('http://zap/JSON/spider/action/resume/', params={
    +  'scanId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/includeAllContextTechnologies/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/includeAllContextTechnologies/

    - -

    Includes all built in technologies in to a context

    +

    GET /JSON/spider/action/resume/

    -

    Parameters

    +

    Parameters

    @@ -37456,7 +54023,7 @@

    Parameters

    - + @@ -37470,11 +54037,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextNamescanId query string true
    @@ -37487,27 +54055,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionExcludeContextTechnologies

    -

    +

    spiderActionResumeAllScans

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/resumeAllScans/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/excludeContextTechnologies/?contextName=string&technologyNames=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/resumeAllScans/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37523,63 +54090,15 @@ 

    contextActionExcludeContextTech

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/action/excludeContextTechnologies/', params={
    -  'contextName': 'string',  'technologyNames': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/action/excludeContextTechnologies/',
    -  params: {
    -  'contextName' => 'string',
    -'technologyNames' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/resumeAllScans/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/excludeContextTechnologies/

    - -

    Excludes technologies with the given names, separated by a comma, from a context

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextNamequerystringtruenone
    technologyNamesquerystringtruenone
    +

    GET /JSON/spider/action/resumeAllScans/

    Example responses

    @@ -37587,11 +54106,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -37604,27 +54124,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionExcludeAllContextTechnologies

    -

    +

    spiderActionScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/scan/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/excludeAllContextTechnologies/?contextName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/scan/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37640,37 +54159,19 @@ 

    contextActionExcludeAllConte

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/context/action/excludeAllContextTechnologies/', params={
    -  'contextName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/context/action/excludeAllContextTechnologies/',
    -  params: {
    -  'contextName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/scan/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/excludeAllContextTechnologies/

    +

    GET /JSON/spider/action/scan/

    -

    Excludes all built in technologies from a context

    +

    Runs the spider against the given URL (or context). Optionally, the 'maxChildren' parameter can be set to limit the number of children scanned, the 'recurse' parameter can be used to prevent the spider from seeding recursively, the parameter 'contextName' can be used to constrain the scan to a Context and the parameter 'subtreeOnly' allows to restrict the spider under a site's subtree (using the specified 'url').

    -

    Parameters

    +

    Parameters

    @@ -37682,10 +54183,38 @@

    Parameters

    + + + + + + + + + + + + + + + + + + + + + - + + + + + + + +
    urlquerystringfalsenone
    maxChildrenquerystringfalsenone
    recursequerystringfalsenone
    contextName query stringtruefalsenone
    subtreeOnlyquerystringfalse none
    @@ -37696,11 +54225,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -37713,27 +54243,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    contextActionSetContextInScope

    -

    +

    spiderActionScanAsUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/scanAsUser/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/context/action/setContextInScope/?contextName=string&booleanInScope=true");
    +
    URL obj = new URL("http://zap/JSON/spider/action/scanAsUser/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37749,38 +54278,21 @@ 

    contextActionSetContextInScope

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/context/action/setContextInScope/', params={
    -  'contextName': 'string',  'booleanInScope': 'true'
    +r = requests.get('http://zap/JSON/spider/action/scanAsUser/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/context/action/setContextInScope/',
    -  params: {
    -  'contextName' => 'string',
    -'booleanInScope' => 'boolean'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/context/action/setContextInScope/

    +

    GET /JSON/spider/action/scanAsUser/

    -

    Sets a context to in scope (contexts are in scope by default)

    +

    Runs the spider from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.

    -

    Parameters

    +

    Parameters

    @@ -37792,122 +54304,61 @@

    Parameters

    - + - + - + -
    contextNamecontextId query string true none
    booleanInScopeuserId querybooleanstring true none
    - -
    -

    Example responses

    - -

    default Response

    -
    -
    {
    -  "message": "string",
    -  "code": 100
    -}
    -
    -

    Responses

    - - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + + + +
    StatusMeaningDescriptionSchemaurlquerystringfalsenone
    defaultDefaultunexpected errorErrormaxChildrenquerystringfalsenone
    recursequerystringfalsenone
    subtreeOnlyquerystringfalsenone
    - - -

    httpSessions

    -

    httpSessionsViewSites

    -

    - -
    -

    Code samples

    -
    -
    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/view/sites/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    -
    -
    URL obj = new URL("http://zap/JSON/httpSessions/view/sites/");
    -HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    -con.setRequestMethod("GET");
    -int responseCode = con.getResponseCode();
    -BufferedReader in = new BufferedReader(
    -    new InputStreamReader(con.getInputStream()));
    -String inputLine;
    -StringBuffer response = new StringBuffer();
    -while ((inputLine = in.readLine()) != null) {
    -    response.append(inputLine);
    -}
    -in.close();
    -System.out.println(response.toString());
    -
    -
    import requests
    -headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/httpSessions/view/sites/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/view/sites/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    -
    -
    -

    GET /JSON/httpSessions/view/sites/

    - -

    Gets all of the sites that have sessions.

    -

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -37920,27 +54371,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsViewSessions

    -

    +

    spiderActionSetOptionAcceptCookies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/view/sessions/?site=string&session=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/view/sessions/?site=string&session=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionAcceptCookies/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -37956,38 +54406,21 @@ 

    httpSessionsViewSessions

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/view/sessions/', params={
    -  'site': 'string',  'session': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionAcceptCookies/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/view/sessions/',
    -  params: {
    -  'site' => 'string',
    -'session' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/view/sessions/

    +

    GET /JSON/spider/action/setOptionAcceptCookies/

    -

    Gets the sessions for the given site. Optionally returning just the session with the given name.

    +

    Sets whether or not a spider process should accept cookies while spidering.

    -

    Parameters

    +

    Parameters

    @@ -37999,16 +54432,9 @@

    Parameters

    - - - - - - - - + - + @@ -38020,11 +54446,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionBoolean querystringboolean true none
    @@ -38037,27 +54464,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsViewActiveSession

    -

    +

    spiderActionSetOptionHandleODataParametersVisited

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/view/activeSession/?site=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/view/activeSession/?site=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38073,37 +54499,19 @@ 

    httpSessionsViewActiveSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/view/activeSession/', params={
    -  'site': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionHandleODataParametersVisited/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/view/activeSession/',
    -  params: {
    -  'site' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/view/activeSession/

    - -

    Gets the name of the active session for the given site.

    +

    GET /JSON/spider/action/setOptionHandleODataParametersVisited/

    -

    Parameters

    +

    Parameters

    @@ -38115,9 +54523,9 @@

    Parameters

    - + - + @@ -38129,11 +54537,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    siteBoolean querystringboolean true none
    @@ -38146,27 +54555,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsViewSessionTokens

    -

    +

    spiderActionSetOptionHandleParameters

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/view/sessionTokens/?site=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionHandleParameters/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/view/sessionTokens/?site=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionHandleParameters/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38182,37 +54590,19 @@ 

    httpSessionsViewSessionTokens

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/view/sessionTokens/', params={
    -  'site': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionHandleParameters/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/view/sessionTokens/',
    -  params: {
    -  'site' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/view/sessionTokens/

    - -

    Gets the names of the session tokens for the given site.

    +

    GET /JSON/spider/action/setOptionHandleParameters/

    -

    Parameters

    +

    Parameters

    @@ -38224,7 +54614,7 @@

    Parameters

    - + @@ -38238,11 +54628,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    siteString query string true
    @@ -38255,27 +54646,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsViewDefaultSessionTokens

    -

    +

    spiderActionSetOptionMaxChildren

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/view/defaultSessionTokens/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/view/defaultSessionTokens/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxChildren/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38291,34 +54681,39 @@ 

    httpSessionsViewDefaultSessionToke

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/view/defaultSessionTokens/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionMaxChildren/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/httpSessions/view/defaultSessionTokens/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/spider/action/setOptionMaxChildren/

    -p JSON.parse(result) +

    Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

    -
    -

    GET /JSON/httpSessions/view/defaultSessionTokens/

    +

    Parameters

    -

    Gets the default session tokens.

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Integerqueryintegertruenone

    Example responses

    @@ -38326,11 +54721,12 @@

    httpSessionsViewDefaultSessionToke

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -38343,27 +54739,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionCreateEmptySession

    -

    +

    spiderActionSetOptionMaxDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/createEmptySession/?site=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/createEmptySession/?site=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDepth/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38379,37 +54774,21 @@ 

    httpSessionsActionCreateEmptySessi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/createEmptySession/', params={
    -  'site': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionMaxDepth/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/createEmptySession/',
    -  params: {
    -  'site' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/createEmptySession/

    +

    GET /JSON/spider/action/setOptionMaxDepth/

    -

    Creates an empty session for the given site. Optionally with the given name.

    +

    Sets the maximum depth the spider can crawl, 0 for unlimited depth.

    -

    Parameters

    +

    Parameters

    @@ -38421,19 +54800,12 @@

    Parameters

    - + - + - - - - - - -
    siteInteger querystringinteger true none
    sessionquerystringfalsenone
    @@ -38442,11 +54814,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -38459,27 +54832,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionRemoveSession

    -

    +

    spiderActionSetOptionMaxDuration

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeSession/?site=string&session=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxDuration/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38495,38 +54867,19 @@ 

    httpSessionsActionRemoveSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/removeSession/', params={
    -  'site': 'string',  'session': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionMaxDuration/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/removeSession/',
    -  params: {
    -  'site' => 'string',
    -'session' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/removeSession/

    - -

    Removes the session from the given site.

    +

    GET /JSON/spider/action/setOptionMaxDuration/

    -

    Parameters

    +

    Parameters

    @@ -38538,16 +54891,9 @@

    Parameters

    - - - - - - - - + - + @@ -38559,11 +54905,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionInteger querystringinteger true none
    @@ -38576,27 +54923,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionSetActiveSession

    -

    +

    spiderActionSetOptionMaxParseSizeBytes

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/setActiveSession/?site=string&session=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38612,38 +54958,21 @@ 

    httpSessionsActionSetActiveSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/setActiveSession/', params={
    -  'site': 'string',  'session': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionMaxParseSizeBytes/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/setActiveSession/',
    -  params: {
    -  'site' => 'string',
    -'session' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/setActiveSession/

    +

    GET /JSON/spider/action/setOptionMaxParseSizeBytes/

    -

    Sets the given session as active for the given site.

    +

    Sets the maximum size, in bytes, that a response might have to be parsed. This allows the spider to skip big responses/files.

    -

    Parameters

    +

    Parameters

    @@ -38655,16 +54984,9 @@

    Parameters

    - - - - - - - - + - + @@ -38676,11 +54998,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionInteger querystringinteger true none
    @@ -38693,27 +55016,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionUnsetActiveSession

    -

    +

    spiderActionSetOptionMaxScansInUI

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/unsetActiveSession/?site=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionMaxScansInUI/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38729,37 +55051,19 @@ 

    httpSessionsActionUnsetActiveSessi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/unsetActiveSession/', params={
    -  'site': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionMaxScansInUI/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/unsetActiveSession/',
    -  params: {
    -  'site' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/unsetActiveSession/

    - -

    Unsets the active session of the given site.

    +

    GET /JSON/spider/action/setOptionMaxScansInUI/

    -

    Parameters

    +

    Parameters

    @@ -38771,9 +55075,9 @@

    Parameters

    - + - + @@ -38785,11 +55089,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    siteInteger querystringinteger true none
    @@ -38802,27 +55107,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionAddSessionToken

    -

    +

    spiderActionSetOptionParseComments

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseComments/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/addSessionToken/?site=string&sessionToken=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseComments/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38838,38 +55142,19 @@ 

    httpSessionsActionAddSessionToken

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/addSessionToken/', params={
    -  'site': 'string',  'sessionToken': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseComments/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/addSessionToken/',
    -  params: {
    -  'site' => 'string',
    -'sessionToken' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/addSessionToken/

    - -

    Adds the session token to the given site.

    +

    GET /JSON/spider/action/setOptionParseComments/

    -

    Parameters

    +

    Parameters

    @@ -38881,16 +55166,9 @@

    Parameters

    - - - - - - - - + - + @@ -38902,11 +55180,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionTokenBoolean querystringboolean true none
    @@ -38919,27 +55198,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionRemoveSessionToken

    -

    +

    spiderActionSetOptionParseDsStore

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseDsStore/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeSessionToken/?site=string&sessionToken=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseDsStore/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -38955,38 +55233,19 @@ 

    httpSessionsActionRemoveSessionTok

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/removeSessionToken/', params={
    -  'site': 'string',  'sessionToken': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseDsStore/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/removeSessionToken/',
    -  params: {
    -  'site' => 'string',
    -'sessionToken' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/removeSessionToken/

    +

    GET /JSON/spider/action/setOptionParseDsStore/

    -

    Removes the session token from the given site.

    - -

    Parameters

    +

    Parameters

    @@ -38998,16 +55257,9 @@

    Parameters

    - - - - - - - - + - + @@ -39019,11 +55271,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionTokenBoolean querystringboolean true none
    @@ -39036,27 +55289,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionSetSessionTokenValue

    -

    +

    spiderActionSetOptionParseGit

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseGit/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/setSessionTokenValue/?site=string&session=string&sessionToken=string&tokenValue=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseGit/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39072,40 +55324,19 @@ 

    httpSessionsActionSetSessionToke

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/setSessionTokenValue/', params={
    -  'site': 'string',  'session': 'string',  'sessionToken': 'string',  'tokenValue': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseGit/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/setSessionTokenValue/',
    -  params: {
    -  'site' => 'string',
    -'session' => 'string',
    -'sessionToken' => 'string',
    -'tokenValue' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/setSessionTokenValue/

    - -

    Sets the value of the session token of the given session for the given site.

    +

    GET /JSON/spider/action/setOptionParseGit/

    -

    Parameters

    +

    Parameters

    @@ -39117,30 +55348,9 @@

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - + - + @@ -39152,11 +55362,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    sessionquerystringtruenone
    sessionTokenquerystringtruenone
    tokenValueBoolean querystringboolean true none
    @@ -39169,27 +55380,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionRenameSession

    -

    +

    spiderActionSetOptionParseRobotsTxt

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/renameSession/?site=string&oldSessionName=string&newSessionName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseRobotsTxt/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39205,39 +55415,19 @@ 

    httpSessionsActionRenameSession

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/renameSession/', params={
    -  'site': 'string',  'oldSessionName': 'string',  'newSessionName': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseRobotsTxt/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/renameSession/',
    -  params: {
    -  'site' => 'string',
    -'oldSessionName' => 'string',
    -'newSessionName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/renameSession/

    - -

    Renames the session of the given site.

    +

    GET /JSON/spider/action/setOptionParseRobotsTxt/

    -

    Parameters

    +

    Parameters

    @@ -39249,23 +55439,9 @@

    Parameters

    - - - - - - - - - - - - - - - + - + @@ -39277,11 +55453,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sitequerystringtruenone
    oldSessionNamequerystringtruenone
    newSessionNameBoolean querystringboolean true none
    @@ -39294,27 +55471,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionAddDefaultSessionToken

    -

    +

    spiderActionSetOptionParseSVNEntries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/addDefaultSessionToken/?sessionToken=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSVNEntries/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39330,37 +55506,19 @@ 

    httpSessionsActionAddDefaultSe

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/addDefaultSessionToken/', params={
    -  'sessionToken': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseSVNEntries/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/addDefaultSessionToken/',
    -  params: {
    -  'sessionToken' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/addDefaultSessionToken/

    - -

    Adds a default session token with the given name and enabled state.

    +

    GET /JSON/spider/action/setOptionParseSVNEntries/

    -

    Parameters

    +

    Parameters

    @@ -39372,19 +55530,12 @@

    Parameters

    - + - + - - - - - - -
    sessionTokenBoolean querystringboolean true none
    tokenEnabledquerystringfalsenone
    @@ -39393,11 +55544,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -39410,27 +55562,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionSetDefaultSessionTokenEnabled

    -

    +

    spiderActionSetOptionParseSitemapXml

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/?sessionToken=string&tokenEnabled=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionParseSitemapXml/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39446,38 +55597,19 @@ 

    httpSessionsActionSetDe

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/', params={
    -  'sessionToken': 'string',  'tokenEnabled': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionParseSitemapXml/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/setDefaultSessionTokenEnabled/',
    -  params: {
    -  'sessionToken' => 'string',
    -'tokenEnabled' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/setDefaultSessionTokenEnabled/

    - -

    Sets whether or not the default session token with the given name is enabled.

    +

    GET /JSON/spider/action/setOptionParseSitemapXml/

    -

    Parameters

    +

    Parameters

    @@ -39489,16 +55621,9 @@

    Parameters

    - - - - - - - - + - + @@ -39510,11 +55635,12 @@

    Parametersdefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sessionTokenquerystringtruenone
    tokenEnabledBoolean querystringboolean true none
    @@ -39527,27 +55653,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    httpSessionsActionRemoveDefaultSessionToken

    -

    +

    spiderActionSetOptionPostForm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionPostForm/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/httpSessions/action/removeDefaultSessionToken/?sessionToken=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionPostForm/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39563,37 +55688,19 @@ 

    httpSessionsActionRemoveDef

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/httpSessions/action/removeDefaultSessionToken/', params={
    -  'sessionToken': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionPostForm/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/httpSessions/action/removeDefaultSessionToken/',
    -  params: {
    -  'sessionToken' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/httpSessions/action/removeDefaultSessionToken/

    - -

    Removes the default session token with the given name.

    +

    GET /JSON/spider/action/setOptionPostForm/

    -

    Parameters

    +

    Parameters

    @@ -39605,9 +55712,9 @@

    Parameters

    - + - + @@ -39619,11 +55726,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    sessionTokenBoolean querystringboolean true none
    @@ -39636,29 +55744,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    break

    -

    breakViewIsBreakAll

    -

    +

    spiderActionSetOptionProcessForm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/view/isBreakAll/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/view/isBreakAll/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionProcessForm/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39674,34 +55779,37 @@ 

    breakViewIsBreakAll

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/view/isBreakAll/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionProcessForm/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/view/isBreakAll/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/view/isBreakAll/

    +

    GET /JSON/spider/action/setOptionProcessForm/

    -

    Returns True if ZAP will break on both requests and responses

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Booleanquerybooleantruenone

    Example responses

    @@ -39709,11 +55817,12 @@

    breakViewIsBreakAll

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -39726,27 +55835,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakViewIsBreakRequest

    -

    +

    spiderActionSetOptionRequestWaitTime

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/view/isBreakRequest/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/view/isBreakRequest/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionRequestWaitTime/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39762,34 +55870,37 @@ 

    breakViewIsBreakRequest

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/view/isBreakRequest/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionRequestWaitTime/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/view/isBreakRequest/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/view/isBreakRequest/

    +

    GET /JSON/spider/action/setOptionRequestWaitTime/

    -

    Returns True if ZAP will break on requests

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Integerqueryintegertruenone

    Example responses

    @@ -39797,11 +55908,12 @@

    breakViewIsBreakRequest

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -39814,27 +55926,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakViewIsBreakResponse

    -

    +

    spiderActionSetOptionSendRefererHeader

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/view/isBreakResponse/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/view/isBreakResponse/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionSendRefererHeader/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39850,34 +55961,39 @@ 

    breakViewIsBreakResponse

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/view/isBreakResponse/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionSendRefererHeader/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/break/view/isBreakResponse/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/spider/action/setOptionSendRefererHeader/

    -p JSON.parse(result) +

    Sets whether or not the 'Referer' header should be sent while spidering.

    -
    -

    GET /JSON/break/view/isBreakResponse/

    +

    Parameters

    -

    Returns True if ZAP will break on responses

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Booleanquerybooleantruenone

    Example responses

    @@ -39885,11 +56001,12 @@

    breakViewIsBreakResponse

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -39902,27 +56019,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakViewHttpMessage

    -

    +

    spiderActionSetOptionShowAdvancedDialog

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/view/httpMessage/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/view/httpMessage/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionShowAdvancedDialog/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -39938,34 +56054,37 @@ 

    breakViewHttpMessage

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/view/httpMessage/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionShowAdvancedDialog/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/view/httpMessage/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/view/httpMessage/

    +

    GET /JSON/spider/action/setOptionShowAdvancedDialog/

    -

    Returns the HTTP message currently intercepted (if any)

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Booleanquerybooleantruenone

    Example responses

    @@ -39973,11 +56092,12 @@

    breakViewHttpMessage

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -39990,27 +56110,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionBreak

    -

    +

    spiderActionSetOptionSkipURLString

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/break/?type=string&state=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionSkipURLString/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/break/?type=string&state=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionSkipURLString/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40026,38 +56145,19 @@ 

    breakActionBreak

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/action/break/', params={
    -  'type': 'string',  'state': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionSkipURLString/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/action/break/',
    -  params: {
    -  'type' => 'string',
    -'state' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/break/

    - -

    Controls the global break functionality. The type may be one of: http-all, http-request or http-response. The state may be true (for turning break on for the specified type) or false (for turning break off). Scope is not currently used.

    +

    GET /JSON/spider/action/setOptionSkipURLString/

    -

    Parameters

    +

    Parameters

    @@ -40069,26 +56169,12 @@

    Parameters

    - - - - - - - - + - - - - - - -
    typequerystringtruenone
    stateString query string true none
    scopequerystringfalsenone
    @@ -40097,11 +56183,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40114,27 +56201,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionSetHttpMessage

    -

    +

    spiderActionSetOptionThreadCount

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/setHttpMessage/?httpHeader=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/setHttpMessage/?httpHeader=string");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionThreadCount/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40150,37 +56236,19 @@ 

    breakActionSetHttpMessage

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/action/setHttpMessage/', params={
    -  'httpHeader': 'string'
    +r = requests.get('http://zap/JSON/spider/action/setOptionThreadCount/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/action/setHttpMessage/',
    -  params: {
    -  'httpHeader' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/setHttpMessage/

    - -

    Overwrites the currently intercepted message with the data provided

    +

    GET /JSON/spider/action/setOptionThreadCount/

    -

    Parameters

    +

    Parameters

    @@ -40192,19 +56260,12 @@

    Parameters

    - + - + - - - - - - -
    httpHeaderInteger querystringinteger true none
    httpBodyquerystringfalsenone
    @@ -40213,11 +56274,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40230,27 +56292,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionContinue

    -

    +

    spiderActionSetOptionUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/continue/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/setOptionUserAgent/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/continue/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/setOptionUserAgent/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40266,34 +56327,37 @@ 

    breakActionContinue

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/break/action/continue/', params={
    -
    +r = requests.get('http://zap/JSON/spider/action/setOptionUserAgent/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/break/action/continue/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/continue/

    +

    GET /JSON/spider/action/setOptionUserAgent/

    -

    Submits the currently intercepted message and unsets the global request/response break points

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Stringquerystringtruenone

    Example responses

    @@ -40301,11 +56365,12 @@

    breakActionContinue

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40318,27 +56383,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionStep

    -

    +

    spiderActionStop

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/step/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/stop/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/step/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/stop/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40354,34 +56418,35 @@ 

    breakActionStep

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/break/action/step/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/break/action/step/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/stop/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/step/

    +

    GET /JSON/spider/action/stop/

    -

    Submits the currently intercepted message, the next request or response will automatically be intercepted

    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    scanIdquerystringfalsenone

    Example responses

    @@ -40389,11 +56454,12 @@

    breakActionStep

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40406,27 +56472,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionDrop

    -

    +

    spiderActionStopAllScans

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/drop/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/action/stopAllScans/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/drop/");
    +
    URL obj = new URL("http://zap/JSON/spider/action/stopAllScans/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40442,34 +56507,15 @@ 

    breakActionDrop

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/break/action/drop/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/break/action/drop/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/action/stopAllScans/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/drop/

    - -

    Drops the currently intercepted message

    +

    GET /JSON/spider/action/stopAllScans/

    Example responses

    @@ -40477,11 +56523,12 @@

    breakActionDrop

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40494,27 +56541,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionAddHttpBreakpoint

    -

    +

    spiderViewAddedNodes

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/addedNodes/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/addHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true");
    +
    URL obj = new URL("http://zap/JSON/spider/view/addedNodes/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40530,84 +56576,34 @@ 

    breakActionAddHttpBreakpoint

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/break/action/addHttpBreakpoint/', params={
    -  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'true',  'ignorecase': 'true'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/break/action/addHttpBreakpoint/',
    -  params: {
    -  'string' => 'string',
    -'location' => 'string',
    -'match' => 'string',
    -'inverse' => 'boolean',
    -'ignorecase' => 'boolean'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/addedNodes/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/addHttpBreakpoint/

    - -

    Adds a custom HTTP breakpoint. The string is the string to match. Location may be one of: url, request_header, request_body, response_header or response_body. Match may be: contains or regex. Inverse (match) may be true or false. Lastly, ignorecase (when matching the string) may be true or false.

    +

    GET /JSON/spider/view/addedNodes/

    -

    Parameters

    +

    Returns a list of the names of the nodes added to the Sites tree by the specified scan.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

    Parameters

    + +
    NameInTypeRequiredDescription
    stringquerystringtruenone
    locationquerystringtruenone
    matchquerystringtruenone
    inversequerybooleantruenone
    + + + + + + + - + - - + +
    NameInTypeRequiredDescription
    ignorecasescanId querybooleantruestringfalse none
    @@ -40618,11 +56614,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40635,27 +56632,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    breakActionRemoveHttpBreakpoint

    -

    +

    spiderViewAllUrls

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/allUrls/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/break/action/removeHttpBreakpoint/?string=string&location=string&match=string&inverse=true&ignorecase=true");
    +
    URL obj = new URL("http://zap/JSON/spider/view/allUrls/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40671,87 +56667,17 @@ 

    breakActionRemoveHttpBreakpoint

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/break/action/removeHttpBreakpoint/', params={
    -  'string': 'string',  'location': 'string',  'match': 'string',  'inverse': 'true',  'ignorecase': 'true'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/break/action/removeHttpBreakpoint/',
    -  params: {
    -  'string' => 'string',
    -'location' => 'string',
    -'match' => 'string',
    -'inverse' => 'boolean',
    -'ignorecase' => 'boolean'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/allUrls/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/break/action/removeHttpBreakpoint/

    - -

    Removes the specified break point

    - -

    Parameters

    +

    GET /JSON/spider/view/allUrls/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    stringquerystringtruenone
    locationquerystringtruenone
    matchquerystringtruenone
    inversequerybooleantruenone
    ignorecasequerybooleantruenone
    +

    Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.

    Example responses

    @@ -40759,11 +56685,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40776,29 +56703,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    authentication

    -

    authenticationViewGetSupportedAuthenticationMethods

    -

    +

    spiderViewDomainsAlwaysInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/domainsAlwaysInScope/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/domainsAlwaysInScope/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40814,34 +56738,17 @@ 

    authenticationViewG

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/view/getSupportedAuthenticationMethods/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/domainsAlwaysInScope/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/view/getSupportedAuthenticationMethods/

    +

    GET /JSON/spider/view/domainsAlwaysInScope/

    -

    Gets the name of the authentication methods.

    +

    Gets all the domains that are always in scope. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.

    Example responses

    @@ -40849,11 +56756,12 @@

    authenticationViewG

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40866,27 +56774,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationViewGetAuthenticationMethodConfigParams

    -

    +

    spiderViewExcludedFromScan

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/excludedFromScan/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/?authMethodName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/excludedFromScan/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -40902,55 +56809,17 @@ 

    authenticationVie

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/', params={
    -  'authMethodName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/view/getAuthenticationMethodConfigParams/',
    -  params: {
    -  'authMethodName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/excludedFromScan/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/view/getAuthenticationMethodConfigParams/

    - -

    Gets the configuration parameters for the authentication method with the given name.

    - -

    Parameters

    +

    GET /JSON/spider/view/excludedFromScan/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    authMethodNamequerystringtruenone
    +

    Gets the regexes of URLs excluded from the spider scans.

    Example responses

    @@ -40958,11 +56827,12 @@

    Parame

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -40975,27 +56845,26 @@

    Respons

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationViewGetAuthenticationMethod

    -

    +

    spiderViewFullResults

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/fullResults/?scanId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/view/getAuthenticationMethod/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/fullResults/?scanId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41011,37 +56880,19 @@ 

    authenticationViewGetAuthenti

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/authentication/view/getAuthenticationMethod/', params={
    -  'contextId': '0'
    +r = requests.get('http://zap/JSON/spider/view/fullResults/', params={
    +  'scanId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/authentication/view/getAuthenticationMethod/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/view/getAuthenticationMethod/

    - -

    Gets the name of the authentication method for the context with the given ID.

    +

    GET /JSON/spider/view/fullResults/

    -

    Parameters

    +

    Parameters

    @@ -41053,9 +56904,9 @@

    Parameters

    - + - + @@ -41067,11 +56918,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextIdscanId queryintegerstring true none
    @@ -41084,27 +56936,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationViewGetLoggedInIndicator

    -

    +

    spiderViewOptionAcceptCookies

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionAcceptCookies/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/view/getLoggedInIndicator/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionAcceptCookies/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41120,55 +56971,17 @@ 

    authenticationViewGetLoggedInInd

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/view/getLoggedInIndicator/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/view/getLoggedInIndicator/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionAcceptCookies/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/view/getLoggedInIndicator/

    - -

    Gets the logged in indicator for the context with the given ID.

    - -

    Parameters

    +

    GET /JSON/spider/view/optionAcceptCookies/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    +

    Gets whether or not a spider process should accept cookies while spidering.

    Example responses

    @@ -41176,11 +56989,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41193,27 +57007,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationViewGetLoggedOutIndicator

    -

    +

    spiderViewOptionDomainsAlwaysInScope

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScope/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/view/getLoggedOutIndicator/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScope/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41229,55 +57042,17 @@ 

    authenticationViewGetLoggedOutI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/view/getLoggedOutIndicator/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/view/getLoggedOutIndicator/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScope/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/view/getLoggedOutIndicator/

    - -

    Gets the logged out indicator for the context with the given ID.

    - -

    Parameters

    +

    GET /JSON/spider/view/optionDomainsAlwaysInScope/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    +

    Use view domainsAlwaysInScope instead.

    Example responses

    @@ -41285,11 +57060,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41302,27 +57078,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationActionSetAuthenticationMethod

    -

    +

    spiderViewOptionDomainsAlwaysInScopeEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=0&authMethodName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/action/setAuthenticationMethod/?contextId=0&authMethodName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41338,70 +57113,17 @@ 

    authenticationActionSetAuth

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/action/setAuthenticationMethod/', params={
    -  'contextId': '0',  'authMethodName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/action/setAuthenticationMethod/',
    -  params: {
    -  'contextId' => 'integer',
    -'authMethodName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionDomainsAlwaysInScopeEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/action/setAuthenticationMethod/

    - -

    Sets the authentication method for the context with the given ID.

    - -

    Parameters

    +

    GET /JSON/spider/view/optionDomainsAlwaysInScopeEnabled/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    authMethodNamequerystringtruenone
    authMethodConfigParamsquerystringfalsenone
    +

    Use view domainsAlwaysInScope instead.

    Example responses

    @@ -41409,11 +57131,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41426,27 +57149,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationActionSetLoggedInIndicator

    -

    +

    spiderViewOptionHandleODataParametersVisited

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=0&loggedInIndicatorRegex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionHandleODataParametersVisited/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/action/setLoggedInIndicator/?contextId=0&loggedInIndicatorRegex=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionHandleODataParametersVisited/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41462,63 +57184,15 @@ 

    authenticationActionSetLoggedI

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/action/setLoggedInIndicator/', params={
    -  'contextId': '0',  'loggedInIndicatorRegex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/action/setLoggedInIndicator/',
    -  params: {
    -  'contextId' => 'integer',
    -'loggedInIndicatorRegex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionHandleODataParametersVisited/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/action/setLoggedInIndicator/

    - -

    Sets the logged in indicator for the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    loggedInIndicatorRegexquerystringtruenone
    +

    GET /JSON/spider/view/optionHandleODataParametersVisited/

    Example responses

    @@ -41526,11 +57200,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41543,27 +57218,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authenticationActionSetLoggedOutIndicator

    -

    +

    spiderViewOptionHandleParameters

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=0&loggedOutIndicatorRegex=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionHandleParameters/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authentication/action/setLoggedOutIndicator/?contextId=0&loggedOutIndicatorRegex=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionHandleParameters/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41579,63 +57253,15 @@ 

    authenticationActionSetLogged

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authentication/action/setLoggedOutIndicator/', params={
    -  'contextId': '0',  'loggedOutIndicatorRegex': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authentication/action/setLoggedOutIndicator/',
    -  params: {
    -  'contextId' => 'integer',
    -'loggedOutIndicatorRegex' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionHandleParameters/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authentication/action/setLoggedOutIndicator/

    - -

    Sets the logged out indicator for the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    loggedOutIndicatorRegexquerystringtruenone
    +

    GET /JSON/spider/view/optionHandleParameters/

    Example responses

    @@ -41643,11 +57269,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41660,29 +57287,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    authorization

    -

    authorizationViewGetAuthorizationDetectionMethod

    -

    +

    spiderViewOptionMaxChildren

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionMaxChildren/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxChildren/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41698,55 +57322,17 @@ 

    authorizationViewGetAu

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authorization/view/getAuthorizationDetectionMethod/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionMaxChildren/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/authorization/view/getAuthorizationDetectionMethod/

    - -

    Obtains all the configuration of the authorization detection method that is currently set for a context.

    - -

    Parameters

    +

    GET /JSON/spider/view/optionMaxChildren/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    +

    Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.

    Example responses

    @@ -41754,11 +57340,12 @@

    Parameters<

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41771,27 +57358,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    authorizationActionSetBasicAuthorizationDetectionMethod

    -

    +

    spiderViewOptionMaxDepth

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionMaxDepth/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxDepth/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41807,83 +57393,17 @@ 

    authorizationAc

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/authorization/action/setBasicAuthorizationDetectionMethod/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    -
    -
    -

    GET /JSON/authorization/action/setBasicAuthorizationDetectionMethod/

    - -

    Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".

    - -

    Parameters

    +r = requests.get('http://zap/JSON/spider/view/optionMaxDepth/', headers = headers) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    headerRegexquerystringfalsenone
    bodyRegexquerystringfalsenone
    statusCodequerystringfalsenone
    logicalOperatorquerystringfalsenone
    +print(r.json()) + +
    +

    GET /JSON/spider/view/optionMaxDepth/

    + +

    Gets the maximum depth the spider can crawl, 0 if unlimited.

    Example responses

    @@ -41891,11 +57411,12 @@

    Para

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41908,29 +57429,26 @@

    Respo

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    localProxies

    -

    localProxiesViewAdditionalProxies

    -

    +

    spiderViewOptionMaxDuration

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/localProxies/view/additionalProxies/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionMaxDuration/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/localProxies/view/additionalProxies/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxDuration/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -41946,34 +57464,15 @@ 

    localProxiesViewAdditionalProxies

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/localProxies/view/additionalProxies/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/localProxies/view/additionalProxies/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionMaxDuration/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/localProxies/view/additionalProxies/

    - -

    Gets all of the additional proxies that have been configured.

    +

    GET /JSON/spider/view/optionMaxDuration/

    Example responses

    @@ -41981,11 +57480,12 @@

    localProxiesViewAdditionalProxies

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -41998,27 +57498,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    localProxiesActionAddAdditionalProxy

    -

    +

    spiderViewOptionMaxParseSizeBytes

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionMaxParseSizeBytes/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/localProxies/action/addAdditionalProxy/?address=string&port=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxParseSizeBytes/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42034,84 +57533,17 @@ 

    localProxiesActionAddAdditionalPro

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/localProxies/action/addAdditionalProxy/', params={
    -  'address': 'string',  'port': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/localProxies/action/addAdditionalProxy/',
    -  params: {
    -  'address' => 'string',
    -'port' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionMaxParseSizeBytes/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/localProxies/action/addAdditionalProxy/

    - -

    Adds an new proxy using the details supplied.

    - -

    Parameters

    +

    GET /JSON/spider/view/optionMaxParseSizeBytes/

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    addressquerystringtruenone
    portqueryintegertruenone
    behindNatquerybooleanfalsenone
    alwaysDecodeZipquerybooleanfalsenone
    removeUnsupportedEncodingsquerybooleanfalsenone
    +

    Gets the maximum size, in bytes, that a response might have to be parsed.

    Example responses

    @@ -42119,11 +57551,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42136,27 +57569,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    localProxiesActionRemoveAdditionalProxy

    -

    +

    spiderViewOptionMaxScansInUI

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionMaxScansInUI/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/localProxies/action/removeAdditionalProxy/?address=string&port=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionMaxScansInUI/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42172,63 +57604,15 @@ 

    localProxiesActionRemoveAdditio

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/localProxies/action/removeAdditionalProxy/', params={
    -  'address': 'string',  'port': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/localProxies/action/removeAdditionalProxy/',
    -  params: {
    -  'address' => 'string',
    -'port' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionMaxScansInUI/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/localProxies/action/removeAdditionalProxy/

    - -

    Removes the additional proxy with the specified address and port.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    addressquerystringtruenone
    portqueryintegertruenone
    +

    GET /JSON/spider/view/optionMaxScansInUI/

    Example responses

    @@ -42236,11 +57620,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42253,29 +57638,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    ruleConfig

    -

    ruleConfigViewRuleConfigValue

    -

    +

    spiderViewOptionParseComments

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseComments/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ruleConfig/view/ruleConfigValue/?key=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseComments/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42291,55 +57673,15 @@ 

    ruleConfigViewRuleConfigValue

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ruleConfig/view/ruleConfigValue/', params={
    -  'key': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ruleConfig/view/ruleConfigValue/',
    -  params: {
    -  'key' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionParseComments/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ruleConfig/view/ruleConfigValue/

    - -

    Show the specified rule configuration

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    keyquerystringtruenone
    +

    GET /JSON/spider/view/optionParseComments/

    Example responses

    @@ -42347,11 +57689,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42364,27 +57707,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ruleConfigViewAllRuleConfigs

    -

    +

    spiderViewOptionParseDsStore

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ruleConfig/view/allRuleConfigs/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseDsStore/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ruleConfig/view/allRuleConfigs/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseDsStore/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42400,34 +57742,15 @@ 

    ruleConfigViewAllRuleConfigs

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/ruleConfig/view/allRuleConfigs/', params={
    +r = requests.get('http://zap/JSON/spider/view/optionParseDsStore/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/ruleConfig/view/allRuleConfigs/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ruleConfig/view/allRuleConfigs/

    - -

    Show all of the rule configurations

    +

    GET /JSON/spider/view/optionParseDsStore/

    Example responses

    @@ -42435,11 +57758,12 @@

    ruleConfigViewAllRuleConfigs

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42452,27 +57776,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ruleConfigActionResetRuleConfigValue

    -

    +

    spiderViewOptionParseGit

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseGit/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ruleConfig/action/resetRuleConfigValue/?key=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseGit/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42488,55 +57811,15 @@ 

    ruleConfigActionResetRuleConfigVal

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ruleConfig/action/resetRuleConfigValue/', params={
    -  'key': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ruleConfig/action/resetRuleConfigValue/',
    -  params: {
    -  'key' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionParseGit/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ruleConfig/action/resetRuleConfigValue/

    - -

    Reset the specified rule configuration, which must already exist

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    keyquerystringtruenone
    +

    GET /JSON/spider/view/optionParseGit/

    Example responses

    @@ -42544,11 +57827,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42561,27 +57845,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ruleConfigActionResetAllRuleConfigValues

    -

    +

    spiderViewOptionParseRobotsTxt

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseRobotsTxt/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseRobotsTxt/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42597,34 +57880,15 @@ 

    ruleConfigActionResetAllRuleCo

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ruleConfig/action/resetAllRuleConfigValues/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionParseRobotsTxt/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ruleConfig/action/resetAllRuleConfigValues/

    - -

    Reset all of the rule configurations

    +

    GET /JSON/spider/view/optionParseRobotsTxt/

    Example responses

    @@ -42632,11 +57896,12 @@

    ruleConfigActionResetAllRuleCo

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42649,27 +57914,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    ruleConfigActionSetRuleConfigValue

    -

    +

    spiderViewOptionParseSVNEntries

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseSVNEntries/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/ruleConfig/action/setRuleConfigValue/?key=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseSVNEntries/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42685,62 +57949,15 @@ 

    ruleConfigActionSetRuleConfigValue

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/ruleConfig/action/setRuleConfigValue/', params={
    -  'key': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/ruleConfig/action/setRuleConfigValue/',
    -  params: {
    -  'key' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionParseSVNEntries/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/ruleConfig/action/setRuleConfigValue/

    - -

    Set the specified rule configuration, which must already exist

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    keyquerystringtruenone
    valuequerystringfalsenone
    +

    GET /JSON/spider/view/optionParseSVNEntries/

    Example responses

    @@ -42748,11 +57965,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42765,29 +57983,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    sessionManagement

    -

    sessionManagementViewGetSupportedSessionManagementMethods

    -

    +

    spiderViewOptionParseSitemapXml

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionParseSitemapXml/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionParseSitemapXml/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42803,34 +58018,15 @@ 

    sessionManage

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSupportedSessionManagementMethods/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionParseSitemapXml/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/sessionManagement/view/getSupportedSessionManagementMethods/

    - -

    Gets the name of the session management methods.

    +

    GET /JSON/spider/view/optionParseSitemapXml/

    Example responses

    @@ -42838,11 +58034,12 @@

    sessionManage

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42855,27 +58052,26 @@

    Res

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    sessionManagementViewGetSessionManagementMethodConfigParams

    -

    +

    spiderViewOptionPostForm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionPostForm/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/?methodName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionPostForm/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -42891,55 +58087,15 @@ 

    sessionMana

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/', params={
    -  'methodName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSessionManagementMethodConfigParams/',
    -  params: {
    -  'methodName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionPostForm/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/sessionManagement/view/getSessionManagementMethodConfigParams/

    - -

    Gets the configuration parameters for the session management method with the given name.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    methodNamequerystringtruenone
    +

    GET /JSON/spider/view/optionPostForm/

    Example responses

    @@ -42947,11 +58103,12 @@

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -42964,27 +58121,26 @@

    R

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    sessionManagementViewGetSessionManagementMethod

    -

    +

    spiderViewOptionProcessForm

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionProcessForm/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/sessionManagement/view/getSessionManagementMethod/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionProcessForm/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43000,55 +58156,15 @@ 

    sessionManagementViewGe

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/sessionManagement/view/getSessionManagementMethod/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/sessionManagement/view/getSessionManagementMethod/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionProcessForm/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/sessionManagement/view/getSessionManagementMethod/

    - -

    Gets the name of the session management method for the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    +

    GET /JSON/spider/view/optionProcessForm/

    Example responses

    @@ -43056,11 +58172,12 @@

    Parametersdefault Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43073,27 +58190,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    sessionManagementActionSetSessionManagementMethod

    -

    +

    spiderViewOptionRequestWaitTime

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=0&methodName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionRequestWaitTime/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/sessionManagement/action/setSessionManagementMethod/?contextId=0&methodName=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionRequestWaitTime/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43109,82 +58225,99 @@ 

    sessionManagementActi

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/sessionManagement/action/setSessionManagementMethod/', params={
    -  'contextId': '0',  'methodName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/sessionManagement/action/setSessionManagementMethod/',
    -  params: {
    -  'contextId' => 'integer',
    -'methodName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionRequestWaitTime/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/sessionManagement/action/setSessionManagementMethod/

    +

    GET /JSON/spider/view/optionRequestWaitTime/

    -

    Sets the session management method for the context with the given ID.

    +
    +

    Example responses

    -

    Parameters

    +

    default Response

    +
    +
    {
    +  "code": "string",
    +  "message": "string",
    +  "detail": "string"
    +}
    +
    +

    Responses

    - - - - + + + - - - - - - - - - - - - - - - - - - - + + + +
    NameInTypeRequiredStatusMeaning DescriptionSchema
    contextIdqueryintegertruenone
    methodNamequerystringtruenone
    methodConfigParamsquerystringfalsenonedefaultDefaultError of JSON endpoints.ErrorJson
    + +

    spiderViewOptionSendRefererHeader

    +

    + +
    +

    Code samples

    +
    +
    # You can also use wget
    +curl -X GET http://zap/JSON/spider/view/optionSendRefererHeader/ \
    +  -H 'Accept: application/json'
    +
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionSendRefererHeader/");
    +HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    +con.setRequestMethod("GET");
    +int responseCode = con.getResponseCode();
    +BufferedReader in = new BufferedReader(
    +    new InputStreamReader(con.getInputStream()));
    +String inputLine;
    +StringBuffer response = new StringBuffer();
    +while ((inputLine = in.readLine()) != null) {
    +    response.append(inputLine);
    +}
    +in.close();
    +System.out.println(response.toString());
    +
    +
    import requests
    +headers = {
    +  'Accept': 'application/json'
    +}
    +
    +r = requests.get('http://zap/JSON/spider/view/optionSendRefererHeader/', headers = headers)
    +
    +print(r.json())
    +
    +
    +

    GET /JSON/spider/view/optionSendRefererHeader/

    + +

    Gets whether or not the 'Referer' header should be sent while spidering.

    +

    Example responses

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43197,29 +58330,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    users

    -

    usersViewUsersList

    -

    +

    spiderViewOptionShowAdvancedDialog

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/view/usersList/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionShowAdvancedDialog/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/view/usersList/");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionShowAdvancedDialog/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43235,54 +58365,15 @@ 

    usersViewUsersList

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/view/usersList/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/view/usersList/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionShowAdvancedDialog/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/view/usersList/

    - -

    Gets a list of users that belong to the context with the given ID, or all users if none provided.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegerfalsenone
    +

    GET /JSON/spider/view/optionShowAdvancedDialog/

    Example responses

    @@ -43290,11 +58381,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43307,27 +58399,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersViewGetUserById

    -

    +

    spiderViewOptionSkipURLString

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/view/getUserById/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionSkipURLString/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/view/getUserById/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionSkipURLString/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43343,63 +58434,15 @@ 

    usersViewGetUserById

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/view/getUserById/', params={
    -  'contextId': '0',  'userId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/view/getUserById/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionSkipURLString/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/view/getUserById/

    - -

    Gets the data of the user with the given ID that belongs to the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    +

    GET /JSON/spider/view/optionSkipURLString/

    Example responses

    @@ -43407,11 +58450,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43424,27 +58468,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersViewGetAuthenticationCredentialsConfigParams

    -

    +

    spiderViewOptionThreadCount

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionThreadCount/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionThreadCount/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43460,55 +58503,15 @@ 

    usersViewGetAuthentic

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/', params={
    -  'contextId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionThreadCount/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/view/getAuthenticationCredentialsConfigParams/

    - -

    Gets the configuration parameters for the credentials of the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    +

    GET /JSON/spider/view/optionThreadCount/

    Example responses

    @@ -43516,11 +58519,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43533,27 +58537,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersViewGetAuthenticationCredentials

    -

    +

    spiderViewOptionUserAgent

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/optionUserAgent/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/optionUserAgent/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43569,63 +58572,15 @@ 

    usersViewGetAuthenticationCredent

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentials/', params={
    -  'contextId': '0',  'userId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/view/getAuthenticationCredentials/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/optionUserAgent/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/view/getAuthenticationCredentials/

    - -

    Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    +

    GET /JSON/spider/view/optionUserAgent/

    Example responses

    @@ -43633,11 +58588,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43650,27 +58606,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersActionNewUser

    -

    +

    spiderViewResults

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/action/newUser/?contextId=0&name=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/results/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/action/newUser/?contextId=0&name=string");
    +
    URL obj = new URL("http://zap/JSON/spider/view/results/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43686,38 +58641,17 @@ 

    usersActionNewUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/users/action/newUser/', params={
    -  'contextId': '0',  'name': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/users/action/newUser/',
    -  params: {
    -  'contextId' => 'integer',
    -'name' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/results/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/action/newUser/

    - -

    Creates a new user with the given name for the context with the given ID.

    +

    GET /JSON/spider/view/results/

    -

    Parameters

    +

    Parameters

    @@ -43729,17 +58663,10 @@

    Parameters

    - - - - - - - - + - +
    contextIdqueryintegertruenone
    namescanId query stringtruefalse none
    @@ -43750,11 +58677,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43767,27 +58695,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersActionRemoveUser

    -

    +

    spiderViewScans

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/action/removeUser/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/scans/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/action/removeUser/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/spider/view/scans/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43803,63 +58730,15 @@ 

    usersActionRemoveUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/action/removeUser/', params={
    -  'contextId': '0',  'userId': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/action/removeUser/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/scans/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/action/removeUser/

    - -

    Removes the user with the given ID that belongs to the context with the given ID.

    - -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    +

    GET /JSON/spider/view/scans/

    Example responses

    @@ -43867,11 +58746,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -43884,27 +58764,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersActionSetUserEnabled

    -

    +

    spiderViewStatus

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/action/setUserEnabled/?contextId=0&userId=0&enabled=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/spider/view/status/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/action/setUserEnabled/?contextId=0&userId=0&enabled=true");
    +
    URL obj = new URL("http://zap/JSON/spider/view/status/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -43920,39 +58799,17 @@ 

    usersActionSetUserEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/users/action/setUserEnabled/', params={
    -  'contextId': '0',  'userId': '0',  'enabled': 'true'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/users/action/setUserEnabled/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer',
    -'enabled' => 'boolean'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/spider/view/status/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/action/setUserEnabled/

    - -

    Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.

    +

    GET /JSON/spider/view/status/

    -

    Parameters

    +

    Parameters

    @@ -43964,24 +58821,10 @@

    Parameters

    - - - - - - - - - - - - - - - + - - + +
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    enabledscanId querybooleantruestringfalse none
    @@ -43992,11 +58835,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44009,27 +58853,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersActionSetUserName

    -

    + +

    stats

    +

    statsActionClearStats

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/action/setUserName/?contextId=0&userId=0&name=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/action/clearStats/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/action/setUserName/?contextId=0&userId=0&name=string");
    +
    URL obj = new URL("http://zap/JSON/stats/action/clearStats/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44045,39 +58890,19 @@ 

    usersActionSetUserName

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/users/action/setUserName/', params={
    -  'contextId': '0',  'userId': '0',  'name': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/users/action/setUserName/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer',
    -'name' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/stats/action/clearStats/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/action/setUserName/

    +

    GET /JSON/stats/action/clearStats/

    -

    Renames the user with the given ID that belongs to the context with the given ID.

    +

    Clears all of the statistics

    -

    Parameters

    +

    Parameters

    @@ -44089,24 +58914,10 @@

    Parameters

    - - - - - - - - - - - - - - - + - +
    contextIdqueryintegertruenone
    userIdqueryintegertruenone
    namekeyPrefix query stringtruefalse none
    @@ -44117,11 +58928,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44134,27 +58946,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    usersActionSetAuthenticationCredentials

    -

    +

    statsActionSetOptionInMemoryEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=true \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=true");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44170,38 +58981,21 @@ 

    usersActionSetAuthenticationCre

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/users/action/setAuthenticationCredentials/', params={
    -  'contextId': '0',  'userId': '0'
    +r = requests.get('http://zap/JSON/stats/action/setOptionInMemoryEnabled/', params={
    +  'Boolean': 'true'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/users/action/setAuthenticationCredentials/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/users/action/setAuthenticationCredentials/

    +

    GET /JSON/stats/action/setOptionInMemoryEnabled/

    -

    Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.

    +

    Sets whether in memory statistics are enabled

    -

    Parameters

    +

    Parameters

    @@ -44213,26 +59007,12 @@

    Parameters

    - - - - - - - - + - + - - - - - - -
    contextIdqueryintegertruenone
    userIdBoolean queryintegerboolean true none
    authCredentialsConfigParamsquerystringfalsenone
    @@ -44241,11 +59021,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44258,29 +59039,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    forcedUser

    -

    forcedUserViewIsForcedUserModeEnabled

    -

    +

    statsActionSetOptionStatsdHost

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/action/setOptionStatsdHost/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/");
    +
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdHost/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44296,34 +59074,39 @@ 

    forcedUserViewIsForcedUserModeEna

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/', params={
    -
    +r = requests.get('http://zap/JSON/stats/action/setOptionStatsdHost/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/forcedUser/view/isForcedUserModeEnabled/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/stats/action/setOptionStatsdHost/

    -p JSON.parse(result) +

    Sets the Statsd service hostname, supply an empty string to stop using a Statsd service

    -
    -

    GET /JSON/forcedUser/view/isForcedUserModeEnabled/

    +

    Parameters

    -

    Returns 'true' if 'forced user' mode is enabled, 'false' otherwise

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    Stringquerystringtruenone

    Example responses

    @@ -44331,11 +59114,12 @@

    forcedUserViewIsForcedUserModeEna

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44348,27 +59132,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    forcedUserViewGetForcedUser

    -

    +

    statsActionSetOptionStatsdPort

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/forcedUser/view/getForcedUser/?contextId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0 \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/forcedUser/view/getForcedUser/?contextId=0");
    +
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44384,37 +59167,21 @@ 

    forcedUserViewGetForcedUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/forcedUser/view/getForcedUser/', params={
    -  'contextId': '0'
    +r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPort/', params={
    +  'Integer': '0'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/forcedUser/view/getForcedUser/',
    -  params: {
    -  'contextId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/forcedUser/view/getForcedUser/

    +

    GET /JSON/stats/action/setOptionStatsdPort/

    -

    Gets the user (ID) set as 'forced user' for the given context (ID)

    +

    Sets the Statsd service port

    -

    Parameters

    +

    Parameters

    @@ -44426,7 +59193,7 @@

    Parameters

    - + @@ -44440,11 +59207,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextIdInteger query integer true
    @@ -44457,27 +59225,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    forcedUserActionSetForcedUser

    -

    +

    statsActionSetOptionStatsdPrefix

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/forcedUser/action/setForcedUser/?contextId=0&userId=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUser/?contextId=0&userId=0");
    +
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44493,38 +59260,21 @@ 

    forcedUserActionSetForcedUser

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/forcedUser/action/setForcedUser/', params={
    -  'contextId': '0',  'userId': '0'
    +r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPrefix/', params={
    +  'String': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/forcedUser/action/setForcedUser/',
    -  params: {
    -  'contextId' => 'integer',
    -'userId' => 'integer'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/forcedUser/action/setForcedUser/

    +

    GET /JSON/stats/action/setOptionStatsdPrefix/

    -

    Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)

    +

    Sets the prefix to be applied to all stats sent to the configured Statsd service

    -

    Parameters

    +

    Parameters

    @@ -44536,16 +59286,9 @@

    Parameters

    - - - - - - - - + - + @@ -44557,11 +59300,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    contextIdqueryintegertruenone
    userIdString queryintegerstring true none
    @@ -44574,27 +59318,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    forcedUserActionSetForcedUserModeEnabled

    -

    +

    statsViewAllSitesStats

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=true \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/allSitesStats/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/?boolean=true");
    +
    URL obj = new URL("http://zap/JSON/stats/view/allSitesStats/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44610,37 +59353,19 @@ 

    forcedUserActionSetForcedUserM

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/', params={
    -  'boolean': 'true'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/forcedUser/action/setForcedUserModeEnabled/',
    -  params: {
    -  'boolean' => 'boolean'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/allSitesStats/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/forcedUser/action/setForcedUserModeEnabled/

    +

    GET /JSON/stats/view/allSitesStats/

    -

    Sets if 'forced user' mode should be enabled or not

    +

    Gets all of the site based statistics, optionally filtered by a key prefix

    -

    Parameters

    +

    Parameters

    @@ -44652,10 +59377,10 @@

    Parameters

    - + - - + +
    booleankeyPrefix querybooleantruestringfalse none
    @@ -44666,11 +59391,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44683,29 +59409,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    script

    -

    scriptViewListEngines

    -

    +

    statsViewOptionInMemoryEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/listEngines/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/optionInMemoryEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/listEngines/");
    +
    URL obj = new URL("http://zap/JSON/stats/view/optionInMemoryEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44721,34 +59444,17 @@ 

    scriptViewListEngines

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/view/listEngines/', params={
    +r = requests.get('http://zap/JSON/stats/view/optionInMemoryEnabled/', headers = headers)
     
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/view/listEngines/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/listEngines/

    +

    GET /JSON/stats/view/optionInMemoryEnabled/

    -

    Lists the script engines available

    +

    Returns 'true' if in memory statistics are enabled, otherwise returns 'false'

    Example responses

    @@ -44756,11 +59462,12 @@

    scriptViewListEngines

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44773,27 +59480,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewListTypes

    -

    +

    statsViewOptionStatsdEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/listTypes/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/optionStatsdEnabled/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/listTypes/");
    +
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdEnabled/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44809,34 +59515,17 @@ 

    scriptViewListTypes

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/script/view/listTypes/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/script/view/listTypes/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/optionStatsdEnabled/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/listTypes/

    +

    GET /JSON/stats/view/optionStatsdEnabled/

    -

    Lists the script types available.

    +

    Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'

    Example responses

    @@ -44844,11 +59533,12 @@

    scriptViewListTypes

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44861,27 +59551,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewListScripts

    -

    +

    statsViewOptionStatsdHost

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/listScripts/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/optionStatsdHost/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/listScripts/");
    +
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdHost/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44897,34 +59586,17 @@ 

    scriptViewListScripts

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/script/view/listScripts/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/script/view/listScripts/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/optionStatsdHost/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/listScripts/

    +

    GET /JSON/stats/view/optionStatsdHost/

    -

    Lists the scripts available, with its engine, name, description, type and error state.

    +

    Gets the Statsd service hostname

    Example responses

    @@ -44932,11 +59604,12 @@

    scriptViewListScripts

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -44949,27 +59622,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewGlobalVar

    -

    +

    statsViewOptionStatsdPort

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/globalVar/?varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/optionStatsdPort/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/globalVar/?varKey=string");
    +
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPort/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -44985,55 +59657,17 @@ 

    scriptViewGlobalVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/script/view/globalVar/', params={
    -  'varKey': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/script/view/globalVar/',
    -  params: {
    -  'varKey' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/optionStatsdPort/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/globalVar/

    - -

    Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.

    - -

    Parameters

    +

    GET /JSON/stats/view/optionStatsdPort/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    varKeyquerystringtruenone
    +

    Gets the Statsd service port

    Example responses

    @@ -45041,11 +59675,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45058,27 +59693,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewGlobalVars

    -

    +

    statsViewOptionStatsdPrefix

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/globalVars/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/optionStatsdPrefix/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/globalVars/");
    +
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPrefix/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45094,34 +59728,17 @@ 

    scriptViewGlobalVars

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/script/view/globalVars/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/script/view/globalVars/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/optionStatsdPrefix/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/globalVars/

    +

    GET /JSON/stats/view/optionStatsdPrefix/

    -

    Gets all the global variables (key/value pairs).

    +

    Gets the prefix to be applied to all stats sent to the configured Statsd service

    Example responses

    @@ -45129,11 +59746,12 @@

    scriptViewGlobalVars

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45146,27 +59764,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewScriptVar

    -

    +

    statsViewSiteStats

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/siteStats/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/scriptVar/?scriptName=string&varKey=string");
    +
    URL obj = new URL("http://zap/JSON/stats/view/siteStats/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45182,38 +59799,21 @@ 

    scriptViewScriptVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/view/scriptVar/', params={
    -  'scriptName': 'string',  'varKey': 'string'
    +r = requests.get('http://zap/JSON/stats/view/siteStats/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/view/scriptVar/',
    -  params: {
    -  'scriptName' => 'string',
    -'varKey' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/scriptVar/

    +

    GET /JSON/stats/view/siteStats/

    -

    Gets the value of the variable with the given key for the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.

    +

    Gets all of the global statistics, optionally filtered by a key prefix

    -

    Parameters

    +

    Parameters

    @@ -45225,17 +59825,17 @@

    Parameters

    - + - + - +
    scriptNamesite query string true none
    varKeykeyPrefix query stringtruefalse none
    @@ -45246,11 +59846,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45263,27 +59864,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptViewScriptVars

    -

    +

    statsViewStats

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/view/scriptVars/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/stats/view/stats/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/view/scriptVars/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/stats/view/stats/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45299,37 +59899,19 @@ 

    scriptViewScriptVars

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/script/view/scriptVars/', params={
    -  'scriptName': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/script/view/scriptVars/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/stats/view/stats/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/view/scriptVars/

    +

    GET /JSON/stats/view/stats/

    -

    Gets all the variables (key/value pairs) of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    +

    Statistics

    -

    Parameters

    +

    Parameters

    @@ -45341,10 +59923,10 @@

    Parameters

    - + - +
    scriptNamekeyPrefix query stringtruefalse none
    @@ -45355,11 +59937,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45372,27 +59955,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionEnable

    -

    + +

    users

    +

    usersActionAuthenticateAsUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/enable/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/authenticateAsUser/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/enable/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/authenticateAsUser/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45408,37 +59992,21 @@ 

    scriptActionEnable

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/enable/', params={
    -  'scriptName': 'string'
    +r = requests.get('http://zap/JSON/users/action/authenticateAsUser/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/enable/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/enable/

    +

    GET /JSON/users/action/authenticateAsUser/

    -

    Enables the script with the given name

    +

    Tries to authenticate as the identified user, returning the authentication request and whether it appears to have succeeded.

    -

    Parameters

    +

    Parameters

    @@ -45450,11 +60018,18 @@

    Parameters

    - + - + + + + + + + +
    scriptNamecontextId query string truenoneThe Context ID
    userIdquerystringtrueThe User ID
    @@ -45464,11 +60039,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45481,27 +60057,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionDisable

    -

    +

    usersActionNewUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/disable/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/newUser/?contextId=string&name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/disable/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/newUser/?contextId=string&name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45517,37 +60092,21 @@ 

    scriptActionDisable

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/disable/', params={
    -  'scriptName': 'string'
    +r = requests.get('http://zap/JSON/users/action/newUser/', params={
    +  'contextId': 'string',  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/disable/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/disable/

    +

    GET /JSON/users/action/newUser/

    -

    Disables the script with the given name

    +

    Creates a new user with the given name for the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -45559,7 +60118,14 @@

    Parameters

    - + + + + + + + + @@ -45573,11 +60139,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scriptNamecontextIdquerystringtrueThe Context ID
    name query string true
    @@ -45590,27 +60157,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionLoad

    -

    +

    usersActionPollAsUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/pollAsUser/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/load/?scriptName=string&scriptType=string&scriptEngine=string&fileName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/pollAsUser/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45626,40 +60192,21 @@ 

    scriptActionLoad

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/load/', params={
    -  'scriptName': 'string',  'scriptType': 'string',  'scriptEngine': 'string',  'fileName': 'string'
    +r = requests.get('http://zap/JSON/users/action/pollAsUser/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/load/',
    -  params: {
    -  'scriptName' => 'string',
    -'scriptType' => 'string',
    -'scriptEngine' => 'string',
    -'fileName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/load/

    +

    GET /JSON/users/action/pollAsUser/

    -

    Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8859-1).

    +

    Tries to poll as the identified user, returning the authentication request and whether it appears to have succeeded. This will only work if the polling verification strategy has been configured.

    -

    Parameters

    +

    Parameters

    @@ -45671,46 +60218,18 @@

    Parameters

    - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - +
    scriptNamequerystringtruenone
    scriptTypequerystringtruenone
    scriptEnginecontextId query string truenoneThe Context ID
    fileNameuserId query string truenone
    scriptDescriptionquerystringfalsenone
    charsetquerystringfalsenoneThe User ID
    @@ -45720,11 +60239,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45737,27 +60257,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionRemove

    -

    +

    usersActionRemoveUser

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/remove/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/removeUser/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/remove/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/removeUser/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45773,37 +60292,21 @@ 

    scriptActionRemove

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/remove/', params={
    -  'scriptName': 'string'
    +r = requests.get('http://zap/JSON/users/action/removeUser/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/remove/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/remove/

    +

    GET /JSON/users/action/removeUser/

    -

    Removes the script with the given name

    +

    Removes the user with the given ID that belongs to the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -45815,11 +60318,18 @@

    Parameters

    - + - + + + + + + + +
    scriptNamecontextId query string truenoneThe Context ID
    userIdquerystringtrueThe User ID
    @@ -45829,11 +60339,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45846,27 +60357,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionRunStandAloneScript

    -

    +

    usersActionSetAuthenticationCredentials

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/runStandAloneScript/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/runStandAloneScript/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/setAuthenticationCredentials/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45882,37 +60392,21 @@ 

    scriptActionRunStandAloneScript

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/runStandAloneScript/', params={
    -  'scriptName': 'string'
    +r = requests.get('http://zap/JSON/users/action/setAuthenticationCredentials/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/runStandAloneScript/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/runStandAloneScript/

    +

    GET /JSON/users/action/setAuthenticationCredentials/

    -

    Runs the stand alone script with the given name

    +

    Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -45924,10 +60418,24 @@

    Parameters

    - + + + + + + + + + + + + + + +
    scriptNamecontextIdquerystringtrueThe Context ID
    userId query string trueThe User ID
    authCredentialsConfigParamsquerystringfalse none
    @@ -45938,11 +60446,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -45955,27 +60464,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionClearGlobalVar

    -

    +

    usersActionSetAuthenticationState

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/clearGlobalVar/?varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/setAuthenticationState/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/clearGlobalVar/?varKey=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/setAuthenticationState/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -45991,37 +60499,21 @@ 

    scriptActionClearGlobalVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/clearGlobalVar/', params={
    -  'varKey': 'string'
    +r = requests.get('http://zap/JSON/users/action/setAuthenticationState/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/clearGlobalVar/',
    -  params: {
    -  'varKey' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/clearGlobalVar/

    +

    GET /JSON/users/action/setAuthenticationState/

    -

    Clears the global variable with the given key.

    +

    Sets fields in the authentication state for the user identified by the Context and User Ids.

    -

    Parameters

    +

    Parameters

    @@ -46033,11 +60525,39 @@

    Parameters

    - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    varKeycontextId query string truenoneThe Context ID
    userIdquerystringtrueThe User ID
    lastPollResultquerystringfalseLast Poll Result - optional, should be 'true' or 'false'.
    lastPollTimeInMsquerystringfalseLast Poll Time in Milliseconds - optional, should be a long or 'NOW' for the current time in ms.
    requestsSinceLastPollquerystringfalseRequests Since Last Poll - optional, should be an integer.
    @@ -46047,11 +60567,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46064,27 +60585,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionClearGlobalVars

    -

    +

    usersActionSetCookie

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/clearGlobalVars/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/setCookie/?contextId=string&userId=string&domain=string&name=string&value=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/clearGlobalVars/");
    +
    URL obj = new URL("http://zap/JSON/users/action/setCookie/?contextId=string&userId=string&domain=string&name=string&value=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46100,34 +60620,81 @@ 

    scriptActionClearGlobalVars

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/clearGlobalVars/', params={
    -
    +r = requests.get('http://zap/JSON/users/action/setCookie/', params={
    +  'contextId': 'string',  'userId': 'string',  'domain': 'string',  'name': 'string',  'value': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/script/action/clearGlobalVars/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/users/action/setCookie/

    -p JSON.parse(result) +

    Sets the specified cookie for the user identified by the Context and User Ids.

    -
    -

    GET /JSON/script/action/clearGlobalVars/

    +

    Parameters

    -

    Clears the global variables.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextIdquerystringtrueThe Context ID
    userIdquerystringtrueThe User ID
    domainquerystringtrueThe Cookie Domain
    namequerystringtrueThe Cookie Name
    valuequerystringtrueThe Cookie Value
    pathquerystringfalseThe Cookie Path - optional default no path
    securequerystringfalseIf the Cookie is secure - optional default false

    Example responses

    @@ -46135,11 +60702,12 @@

    scriptActionClearGlobalVars

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46152,27 +60720,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionClearScriptVar

    -

    +

    usersActionSetUserEnabled

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/setUserEnabled/?contextId=string&userId=string&enabled=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/clearScriptVar/?scriptName=string&varKey=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/setUserEnabled/?contextId=string&userId=string&enabled=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46188,38 +60755,21 @@ 

    scriptActionClearScriptVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/clearScriptVar/', params={
    -  'scriptName': 'string',  'varKey': 'string'
    +r = requests.get('http://zap/JSON/users/action/setUserEnabled/', params={
    +  'contextId': 'string',  'userId': 'string',  'enabled': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/clearScriptVar/',
    -  params: {
    -  'scriptName' => 'string',
    -'varKey' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/clearScriptVar/

    +

    GET /JSON/users/action/setUserEnabled/

    -

    Clears the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    +

    Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.

    -

    Parameters

    +

    Parameters

    @@ -46231,14 +60781,21 @@

    Parameters

    - + - + - + + + + + + + + @@ -46252,11 +60809,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scriptNamecontextId query string truenoneThe Context ID
    varKeyuserIdquerystringtrueThe User ID
    enabled query string true
    @@ -46269,27 +60827,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionClearScriptVars

    -

    +

    usersActionSetUserName

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/clearScriptVars/?scriptName=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/action/setUserName/?contextId=string&userId=string&name=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/clearScriptVars/?scriptName=string");
    +
    URL obj = new URL("http://zap/JSON/users/action/setUserName/?contextId=string&userId=string&name=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46305,37 +60862,21 @@ 

    scriptActionClearScriptVars

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/clearScriptVars/', params={
    -  'scriptName': 'string'
    +r = requests.get('http://zap/JSON/users/action/setUserName/', params={
    +  'contextId': 'string',  'userId': 'string',  'name': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/clearScriptVars/',
    -  params: {
    -  'scriptName' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/clearScriptVars/

    +

    GET /JSON/users/action/setUserName/

    -

    Clears the variables of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    +

    Renames the user with the given ID that belongs to the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -46347,7 +60888,21 @@

    Parameters

    - + + + + + + + + + + + + + + + @@ -46361,11 +60916,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    scriptNamecontextIdquerystringtrueThe Context ID
    userIdquerystringtrueThe User ID
    name query string true
    @@ -46378,27 +60934,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionSetScriptVar

    -

    +

    usersViewGetAuthenticationCredentials

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/setScriptVar/?scriptName=string&varKey=string");
    +
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentials/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46414,38 +60969,21 @@ 

    scriptActionSetScriptVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/setScriptVar/', params={
    -  'scriptName': 'string',  'varKey': 'string'
    +r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentials/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/setScriptVar/',
    -  params: {
    -  'scriptName' => 'string',
    -'varKey' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/setScriptVar/

    +

    GET /JSON/users/view/getAuthenticationCredentials/

    -

    Sets the value of the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

    +

    Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -46457,25 +60995,18 @@

    Parameters

    - + - + - + - - - - - - - - +
    scriptNamecontextId query string truenoneThe Context ID
    varKeyuserId query string truenone
    varValuequerystringfalsenonethe User ID
    @@ -46485,11 +61016,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46502,27 +61034,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    scriptActionSetGlobalVar

    -

    +

    usersViewGetAuthenticationCredentialsConfigParams

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/script/action/setGlobalVar/?varKey=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/script/action/setGlobalVar/?varKey=string");
    +
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/?contextId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46538,37 +61069,21 @@ 

    scriptActionSetGlobalVar

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/script/action/setGlobalVar/', params={
    -  'varKey': 'string'
    +r = requests.get('http://zap/JSON/users/view/getAuthenticationCredentialsConfigParams/', params={
    +  'contextId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/script/action/setGlobalVar/',
    -  params: {
    -  'varKey' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/script/action/setGlobalVar/

    +

    GET /JSON/users/view/getAuthenticationCredentialsConfigParams/

    -

    Sets the value of the global variable with the given key.

    +

    Gets the configuration parameters for the credentials of the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -46580,18 +61095,11 @@

    Parameters

    - + - - - - - - - - +
    varKeycontextId query string truenone
    varValuequerystringfalsenoneThe Context ID
    @@ -46601,11 +61109,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46618,29 +61127,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    - -

    stats

    -

    statsViewStats

    -

    +

    usersViewGetAuthenticationSession

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/stats/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/getAuthenticationSession/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/stats/");
    +
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationSession/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46656,36 +61162,21 @@ 

    statsViewStats

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/stats/', params={
    -
    +r = requests.get('http://zap/JSON/users/view/getAuthenticationSession/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/view/stats/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/view/stats/

    +

    GET /JSON/users/view/getAuthenticationSession/

    -

    Statistics

    +

    Gets the authentication session information for the user identified by the Context and User Ids, e.g. cookies and realm credentials.

    -

    Parameters

    +

    Parameters

    @@ -46697,11 +61188,18 @@

    Parameters

    - + - - + + + + + + + + +
    keyPrefixcontextId query stringfalsenonetrueThe Context ID
    userIdquerystringtrueThe User ID
    @@ -46711,11 +61209,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46728,27 +61227,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewAllSitesStats

    -

    +

    usersViewGetAuthenticationState

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/allSitesStats/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/getAuthenticationState/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/allSitesStats/");
    +
    URL obj = new URL("http://zap/JSON/users/view/getAuthenticationState/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46764,36 +61262,21 @@ 

    statsViewAllSitesStats

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/allSitesStats/', params={
    -
    +r = requests.get('http://zap/JSON/users/view/getAuthenticationState/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/view/allSitesStats/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/view/allSitesStats/

    +

    GET /JSON/users/view/getAuthenticationState/

    -

    Gets all of the site based statistics, optionally filtered by a key prefix

    +

    Gets the authentication state information for the user identified by the Context and User Ids.

    -

    Parameters

    +

    Parameters

    @@ -46805,11 +61288,18 @@

    Parameters

    - + - - + + + + + + + + +
    keyPrefixcontextId query stringfalsenonetrueThe Context ID
    userIdquerystringtrueThe User ID
    @@ -46819,11 +61309,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46836,27 +61327,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewSiteStats

    -

    +

    usersViewGetUserById

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/siteStats/?site=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/getUserById/?contextId=string&userId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/siteStats/?site=string");
    +
    URL obj = new URL("http://zap/JSON/users/view/getUserById/?contextId=string&userId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46872,37 +61362,21 @@ 

    statsViewSiteStats

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/siteStats/', params={
    -  'site': 'string'
    +r = requests.get('http://zap/JSON/users/view/getUserById/', params={
    +  'contextId': 'string',  'userId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/view/siteStats/',
    -  params: {
    -  'site' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/view/siteStats/

    +

    GET /JSON/users/view/getUserById/

    -

    Gets all of the global statistics, optionally filtered by a key prefix

    +

    Gets the data of the user with the given ID that belongs to the context with the given ID.

    -

    Parameters

    +

    Parameters

    @@ -46914,18 +61388,18 @@

    Parameters

    - + - + - + - - + +
    sitecontextId query string truenoneThe Context ID
    keyPrefixuserId query stringfalsenonetrueThe User ID
    @@ -46935,11 +61409,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -46952,27 +61427,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewOptionStatsdHost

    -

    +

    usersViewUsersList

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/optionStatsdHost/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/users/view/usersList/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdHost/");
    +
    URL obj = new URL("http://zap/JSON/users/view/usersList/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -46988,34 +61462,37 @@ 

    statsViewOptionStatsdHost

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/optionStatsdHost/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +r = requests.get('http://zap/JSON/users/view/usersList/', headers = headers)
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdHost/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/users/view/usersList/

    -p JSON.parse(result) +

    Gets a list of users that belong to the context with the given ID, or all users if none provided.

    -
    -

    GET /JSON/stats/view/optionStatsdHost/

    +

    Parameters

    -

    Gets the Statsd service hostname

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    contextIdquerystringfalseThe Context ID

    Example responses

    @@ -47023,11 +61500,12 @@

    statsViewOptionStatsdHost

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47040,27 +61518,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewOptionStatsdPort

    -

    + +

    wappalyzer

    +

    wappalyzerViewListAll

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/optionStatsdPort/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/wappalyzer/view/listAll/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPort/");
    +
    URL obj = new URL("http://zap/JSON/wappalyzer/view/listAll/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47076,34 +61555,17 @@ 

    statsViewOptionStatsdPort

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/stats/view/optionStatsdPort/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdPort/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/wappalyzer/view/listAll/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/view/optionStatsdPort/

    +

    GET /JSON/wappalyzer/view/listAll/

    -

    Gets the Statsd service port

    +

    Lists all sites and their associated applications (technologies).

    Example responses

    @@ -47111,11 +61573,12 @@

    statsViewOptionStatsdPort

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47128,27 +61591,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewOptionStatsdPrefix

    -

    +

    wappalyzerViewListSite

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/optionStatsdPrefix/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/wappalyzer/view/listSite/?site=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdPrefix/");
    +
    URL obj = new URL("http://zap/JSON/wappalyzer/view/listSite/?site=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47164,34 +61626,39 @@ 

    statsViewOptionStatsdPrefix

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/optionStatsdPrefix/', params={
    -
    +r = requests.get('http://zap/JSON/wappalyzer/view/listSite/', params={
    +  'site': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    +print(r.json())
     
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdPrefix/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/wappalyzer/view/listSite/

    -p JSON.parse(result) +

    Lists all the applications (technologies) associated with a specific site.

    -
    -

    GET /JSON/stats/view/optionStatsdPrefix/

    +

    Parameters

    -

    Gets the prefix to be applied to all stats sent to the configured Statsd service

    + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    sitequerystringtruenone

    Example responses

    @@ -47199,11 +61666,12 @@

    statsViewOptionStatsdPrefix

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47216,27 +61684,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewOptionInMemoryEnabled

    -

    +

    wappalyzerViewListSites

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/optionInMemoryEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/wappalyzer/view/listSites/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/optionInMemoryEnabled/");
    +
    URL obj = new URL("http://zap/JSON/wappalyzer/view/listSites/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47252,34 +61719,17 @@ 

    statsViewOptionInMemoryEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/stats/view/optionInMemoryEnabled/', params={
    -
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/stats/view/optionInMemoryEnabled/',
    -  params: {
    -  }, headers: headers
    +r = requests.get('http://zap/JSON/wappalyzer/view/listSites/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/view/optionInMemoryEnabled/

    +

    GET /JSON/wappalyzer/view/listSites/

    -

    Returns 'true' if in memory statistics are enabled, otherwise returns 'false'

    +

    Lists all the sites recognized by the wappalyzer addon.

    Example responses

    @@ -47287,11 +61737,12 @@

    statsViewOptionInMemoryEnabled

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47304,27 +61755,28 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsViewOptionStatsdEnabled

    -

    + +

    websocket

    +

    websocketActionSendTextMessage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/view/optionStatsdEnabled/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/action/sendTextMessage/?channelId=string&outgoing=string&message=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/view/optionStatsdEnabled/");
    +
    URL obj = new URL("http://zap/JSON/websocket/action/sendTextMessage/?channelId=string&outgoing=string&message=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47340,34 +61792,53 @@ 

    statsViewOptionStatsdEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/view/optionStatsdEnabled/', params={
    -
    +r = requests.get('http://zap/JSON/websocket/action/sendTextMessage/', params={
    +  'channelId': 'string',  'outgoing': 'string',  'message': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    +print(r.json())
     
    -result = RestClient.get 'http://zap/JSON/stats/view/optionStatsdEnabled/',
    -  params: {
    -  }, headers: headers
    +
    +

    GET /JSON/websocket/action/sendTextMessage/

    -p JSON.parse(result) +

    Sends the specified message on the channel specified by channelId, if outgoing is 'True' then the message will be sent to the server and if it is 'False' then it will be sent to the client

    -
    -

    GET /JSON/stats/view/optionStatsdEnabled/

    +

    Parameters

    -

    Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameInTypeRequiredDescription
    channelIdquerystringtruenone
    outgoingquerystringtruenone
    messagequerystringtruenone

    Example responses

    @@ -47375,11 +61846,12 @@

    statsViewOptionStatsdEnabled

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47392,27 +61864,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsActionClearStats

    -

    +

    websocketActionSetBreakTextMessage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/action/clearStats/ \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/action/setBreakTextMessage/?message=string&outgoing=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/action/clearStats/");
    +
    URL obj = new URL("http://zap/JSON/websocket/action/setBreakTextMessage/?message=string&outgoing=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47428,36 +61899,21 @@ 

    statsActionClearStats

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/action/clearStats/', params={
    -
    +r = requests.get('http://zap/JSON/websocket/action/setBreakTextMessage/', params={
    +  'message': 'string',  'outgoing': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/action/clearStats/',
    -  params: {
    -  }, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/action/clearStats/

    +

    GET /JSON/websocket/action/setBreakTextMessage/

    -

    Clears all of the statistics

    +

    Sets the text message for an intercepted websockets message

    -

    Parameters

    +

    Parameters

    @@ -47469,10 +61925,17 @@

    Parameters

    - + - + + + + + + + +
    keyPrefixmessage query stringfalsetruenone
    outgoingquerystringtrue none
    @@ -47483,11 +61946,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47500,27 +61964,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsActionSetOptionStatsdHost

    -

    +

    websocketViewBreakTextMessage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/action/setOptionStatsdHost/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/view/breakTextMessage/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdHost/?String=string");
    +
    URL obj = new URL("http://zap/JSON/websocket/view/breakTextMessage/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47536,55 +61999,17 @@ 

    statsActionSetOptionStatsdHost

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/stats/action/setOptionStatsdHost/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdHost/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/websocket/view/breakTextMessage/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/action/setOptionStatsdHost/

    - -

    Sets the Statsd service hostname, supply an empty string to stop using a Statsd service

    - -

    Parameters

    +

    GET /JSON/websocket/view/breakTextMessage/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Returns a text representation of an intercepted websockets message

    Example responses

    @@ -47592,11 +62017,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47609,27 +62035,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsActionSetOptionStatsdPrefix

    -

    +

    websocketViewChannels

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/view/channels/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPrefix/?String=string");
    +
    URL obj = new URL("http://zap/JSON/websocket/view/channels/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47645,55 +62070,17 @@ 

    statsActionSetOptionStatsdPrefix

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPrefix/', params={
    -  'String': 'string'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdPrefix/',
    -  params: {
    -  'String' => 'string'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/websocket/view/channels/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/action/setOptionStatsdPrefix/

    - -

    Sets the prefix to be applied to all stats sent to the configured Statsd service

    - -

    Parameters

    +

    GET /JSON/websocket/view/channels/

    - - - - - - - - - - - - - - - - -
    NameInTypeRequiredDescription
    Stringquerystringtruenone
    +

    Returns all of the registered web socket channels

    Example responses

    @@ -47701,11 +62088,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47718,27 +62106,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsActionSetOptionInMemoryEnabled

    -

    +

    websocketViewMessage

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=string \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/view/message/?channelId=string&messageId=string \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/action/setOptionInMemoryEnabled/?Boolean=string");
    +
    URL obj = new URL("http://zap/JSON/websocket/view/message/?channelId=string&messageId=string");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47754,37 +62141,21 @@ 

    statsActionSetOptionInMemoryEnabled

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -r = requests.get('http://zap/JSON/stats/action/setOptionInMemoryEnabled/', params={
    -  'Boolean': 'string'
    +r = requests.get('http://zap/JSON/websocket/view/message/', params={
    +  'channelId': 'string',  'messageId': 'string'
     }, headers = headers)
     
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    -}
    -
    -result = RestClient.get 'http://zap/JSON/stats/action/setOptionInMemoryEnabled/',
    -  params: {
    -  'Boolean' => 'string'
    -}, headers: headers
    -
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/action/setOptionInMemoryEnabled/

    +

    GET /JSON/websocket/view/message/

    -

    Sets whether in memory statistics are enabled

    +

    Returns full details of the message specified by the channelId and messageId

    -

    Parameters

    +

    Parameters

    @@ -47796,7 +62167,14 @@

    Parameters

    - + + + + + + + + @@ -47810,11 +62188,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    BooleanchannelIdquerystringtruenone
    messageId query string true
    @@ -47827,27 +62206,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson
    -

    statsActionSetOptionStatsdPort

    -

    +

    websocketViewMessages

    +

    Code samples

    # You can also use wget
    -curl -X GET http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0 \
    -  -H 'Accept: application/json' \
    -  -H 'X-ZAP-API-Key: API_KEY'
    +curl -X GET http://zap/JSON/websocket/view/messages/ \
    +  -H 'Accept: application/json'
     
    -
    URL obj = new URL("http://zap/JSON/stats/action/setOptionStatsdPort/?Integer=0");
    +
    URL obj = new URL("http://zap/JSON/websocket/view/messages/");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -47863,37 +62241,19 @@ 

    statsActionSetOptionStatsdPort

    import requests
     headers = {
    -  'Accept': 'application/json',
    -  'X-ZAP-API-Key': 'API_KEY'
    -}
    -
    -r = requests.get('http://zap/JSON/stats/action/setOptionStatsdPort/', params={
    -  'Integer': '0'
    -}, headers = headers)
    -
    -print r.json()
    -
    -
    require 'rest-client'
    -require 'json'
    -
    -headers = {
    -  'Accept' => 'application/json',
    -  'X-ZAP-API-Key' => 'API_KEY'
    +  'Accept': 'application/json'
     }
     
    -result = RestClient.get 'http://zap/JSON/stats/action/setOptionStatsdPort/',
    -  params: {
    -  'Integer' => 'integer'
    -}, headers: headers
    +r = requests.get('http://zap/JSON/websocket/view/messages/', headers = headers)
     
    -p JSON.parse(result)
    +print(r.json())
     
     
    -

    GET /JSON/stats/action/setOptionStatsdPort/

    +

    GET /JSON/websocket/view/messages/

    -

    Sets the Statsd service port

    +

    Returns a list of all of the messages that meet the given criteria (all optional), where channelId is a channel identifier, start is the offset to start returning messages from (starting from 0), count is the number of messages to return (default no limit) and payloadPreviewLength is the maximum number bytes to return for the payload contents

    -

    Parameters

    +

    Parameters

    @@ -47905,10 +62265,31 @@

    Parameters

    - + - - + + + + + + + + + + + + + + + + + + + + + + +
    IntegerchannelId queryintegertruestringfalsenone
    startquerystringfalsenone
    countquerystringfalsenone
    payloadPreviewLengthquerystringfalse none
    @@ -47919,11 +62300,12 @@

    Parameters

    default Response

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
    -

    Responses

    +

    Responses

    @@ -47936,22 +62318,26 @@

    Responses

    - - + +
    default Defaultunexpected errorErrorError of JSON endpoints.ErrorJson

    Schemas

    -

    Error

    +

    ErrorJson

    -

    +

    + + +

    {
    +  "code": "string",
       "message": "string",
    -  "code": 100
    +  "detail": "string"
     }
     
     

    Properties

    @@ -47965,21 +62351,30 @@

    Error

    -message +code string true none none -code -integer +message +string true none none + +detail +string +false +none +none + +

    undefined

    +