---
title: "GET /JSON/authorization/action/setBasicAuthorizationDetectionMethod/"
method: GET
path: "/JSON/authorization/action/setBasicAuthorizationDetectionMethod/"
tags: ["authorization"]
---

# GET /JSON/authorization/action/setBasicAuthorizationDetectionMethod/

`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".

## Response `default`

Error of JSON endpoints.

- ErrorJson
  - `code` string, required
  - `message` string, required
  - `detail` string

---

[API](https://skmtc.net/zaproxy/apis/zap-api.md) · [All operations](https://skmtc.net/zaproxy/apis/zap-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zaproxy/zap-api/revisions/bbb71f68ed4c/schema)
