settings

Update the partner's default pentest duration (deprecated path)

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

Restricted to integrators whose subscription has the integrators_events_duration_editable feature (a 402 otherwise); the feature gate and the Cerbos update_pentest_duration write are enforced by the service. The feature key keeps its pre-rename spelling because it is a row in the feature catalogue that legacy apps read — tracked in ethiack/phoenix#310.

Answers the write envelope, not the updated setting: a caller that needs the stored value reads it back from the GET. id is omitted (response_model_exclude_none) because the setting is a singleton on the subscription and has none to name.

Args: body (UpdateDefaultPentestDurationRequest): New default duration. db (AsyncSession): Request-scoped database session. context (ActiveContext): Resolved caller identity and scope. partner_id (int): The integrator's resolved partner id.

Returns: SuccessResponse: Confirmation naming the duration now stored.

put/v1/settings/default-event-duration/

Request

  • Base URL
    https://api.ethiack.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

default_pentest_duration_daysinteger required
unitstring

Unit of the duration. Only days is accepted.

Response

Successful Response

codeinteger required
descriptionstring required
successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.