Set or remove a project's default flag lifetime
set_default_flag_lifetimeSet how many days temporary flags without an expiry date remain active before counting as expired, or remove the default. Preview impact first.
Instructions
Set how many days a temporary flag with no expiry date of its own lives before it counts as expired, or pass days: null to remove the default. Advisory only: evaluation never changes. Pass preview: true first to see how many flags would newly be, or stop being, past expiry without changing anything. Setting a value is refused with FEATURE_NOT_ENABLED when the organization's plan lacks it; removal is always allowed. The current value is defaultFlagLifetimeDays in list_projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Lifetime in days (1–3650), or null to remove the default | |
| preview | No | true: only report the impact; nothing is changed | |
| project | Yes | Project key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applied | Yes | false for a preview | |
| project | Yes | ||
| newlyPastExpiry | Yes | Flags this would put past expiry | |
| noLongerPastExpiry | Yes | Flags this would take back out of expiry | |
| defaultFlagLifetimeDays | Yes |