Ethiack Docs
Settings

Update the partner's default pentest duration

PUT
/v1/settings/default-pentest-duration/

Set the default pentest duration for the caller's partner.

Answers the write envelope, not the updated setting: a caller that needs the stored value reads it back from the GET.

AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://api.ethiack.com/v1/settings/default-pentest-duration/" \  -H "Content-Type: application/json" \  -d '{    "default_pentest_duration_days": 1,    "unit": "days"  }'
{
  "code": 0,
  "description": "string",
  "id": 0,
  "success": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}