provider scheduled_changes POST /api/projects/{project_id}/scheduled_changes/
@utdk/posthog /api/projects/{project_id}/scheduled_changes/
scheduled_changes_create
Create, read, update and delete scheduled changes.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
scheduledChangesCreate
POST/api/projects/{project_id}/scheduled_changes/
Create, read, update and delete scheduled changes.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required
required

The ID of the record to modify (e.g. the feature flag ID).

required

The type of record to modify. Currently only "FeatureFlag" is supported. * `FeatureFlag` - feature flag

required

The change to apply. Must include an 'operation' key and a 'value' key. Supported operations: 'update_status' (value: true/false to enable/disable the flag), 'add_release_condition' (value: object with 'groups', 'payloads', and 'multivariate' keys), 'update_variants' (value: object with 'variants' and 'payloads' keys).

required

ISO 8601 datetime when the change should be applied (e.g. '2025-06-01T14:00:00Z').

required
required

Return the safely formatted failure reason instead of raw data.

required
required
required

Whether this schedule repeats. Only the 'update_status' operation supports recurring schedules.

How often the schedule repeats. Required when is_recurring is true. One of: daily, weekly, monthly, yearly. * `daily` - daily * `weekly` - weekly * `monthly` - monthly * `yearly` - yearly

required

Optional ISO 8601 datetime after which a recurring schedule stops executing.

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.scheduledChangesCreate({
  "is_recurring": false
})