Update pentest scope
Bulk-move assets between in- and out-of-scope.
Restricted to organization and partner integrators.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://api.ethiack.com/v1/pentests/string/scope/" \ -H "Content-Type: application/json" \ -d '{ "in_scope": [ 0 ], "out_of_scope": [ 0 ] }'{
"code": 0,
"description": "string",
"id": 0,
"success": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}List pentest scope GET
Return the pentest's in- and out-of-scope assets. Returns the full in- and out-of-scope collections (use `/scope/assets/` for paginated access). Beacon details for the in-scope assets are included only for machine callers. An in-scope asset with an uploaded app bundle (APK / IPA) carries a short-lived signed `attachment_url` to download it.
List pentest scope URLs GET
List the distinct URLs of the pentest's scoped assets. Available to any caller authorized for the pentest's scope (not machine-only, unlike the `/urls` listing).