Ethiack Docs
Pentests

Update a pentest launch

PATCH
/v1/pentests/{pentest_slug}/launches/{launch_id}

Update a launch's mutable fields.

Restricted to machine callers operating within the pentest's scope.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

launch_id*integer
pentest_slug*string

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/launches/0" \  -H "Content-Type: application/json" \  -d '{    "status": "pending",    "error_info": "string",    "start_time": "2019-08-24T14:15:22Z",    "finish_time": "2019-08-24T14:15:22Z"  }'
{
  "id": 0,
  "pentest_id": 0,
  "machine_user_id": "8627f65e-e325-4242-8d74-74ec65babc68",
  "mode": 0,
  "status": "pending",
  "error_info": "string",
  "sub_job_id": 0,
  "start_time": "2019-08-24T14:15:22Z",
  "finish_time": "2019-08-24T14:15:22Z",
  "created": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}