PATCH
Change a target's limits, credential or API description

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json
requests_per_second
integer
Required range: 1 <= x <= 50
max_duration_minutes
integer
Required range: 5 <= x <= 60
auth_header_name
string
Maximum string length: 100
Example:

"Authorization"

auth_header_value
string
write-only

A single line. Never returned.

Maximum string length: 4096
clear_auth
boolean
openapi_document
string

OpenAPI 2 or 3, JSON or YAML, at most 1 MB. Empty removes it.

graphql_endpoint
string

A path on the target's origin. Empty removes it, which needs the schema removed too.

Maximum string length: 512
Example:

"/graphql"

graphql_schema
string

SDL or a JSON introspection result, at most 1 MB. Needs an endpoint. Empty removes it.

wsdl_path
string

A path on the target's origin that serves the WSDL. Empty removes it.

Maximum string length: 512
Example:

"/ws?wsdl"

wsdl_document
string

A WSDL 1.1 or 2.0 document, at most 1 MB, used instead of wsdl_path. Empty removes it.

grpc_address
string

host:port of the target's gRPC server, on the target's host. Empty removes it.

Maximum string length: 300
Example:

"api.example.com:443"

Response

One dynamic scan target.

target
object
required

A web application an organization scans dynamically. The stored credential, API description, GraphQL schema and uploaded WSDL are never returned; has_auth, has_openapi, has_graphql_schema and has_wsdl_document say whether they are set.