Set or clear flag expiry
set_flag_expirySet the removal date for a feature flag, or clear it by passing null. Once that date passes, find_stale_flags reports the flag as expired.
Instructions
Set the date a flag is expected to be removed by, or pass expiresAtUtc: null to clear it. Expiry is advisory: evaluation never changes. Once the date passes, find_stale_flags reports the flag as expired. expiresAtUtc takes a date (2026-12-31), which means the end of that day in UTC, the same as picking it in the dashboard, or a full ISO-8601 timestamp, which is stored exactly. Refused with EXPIRY_IN_PAST for a time that has already passed (today's date is allowed), and with FEATURE_NOT_ENABLED while flag expiration is not enabled for the organization. Clearing is always allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| project | Yes | ||
| expiresAtUtc | Yes | Date (YYYY-MM-DD, end of that UTC day) or ISO-8601 timestamp, or null to clear the expiry |