Aprovan Registry
provider 2506 operations 141 docs pages
@utdk/posthog
PostHog API

Generated UTDK provider client for PostHog API. Generated UTDK provider types and OpenAPI-backed client for https://us.posthog.com/api/schema/.

Import sample

import posthog from "@utdk/posthog"

Factory sample

import { createPosthogClient } from "@utdk/posthog"
Provider path
posthog
Source API title
PostHog API
Version
1.0.0
Generated
Jul 12, 2026, 9:26 PM
Homepage
Open site
API spec
View spec
Scheduled Changes
Optional generated docs page for @utdk/posthog.

Scheduled Changes

Operations

posthog.scheduledChangesList

  • HTTP: GET /api/projects/{project_id}/scheduled_changes/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_list
  • Path params: None
  • Query params: limit, model_name, offset, record_id
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { count: number; next?: string | null; previous?: string | null; results: ({ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null;...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type ScheduledChangesListInput = Parameters<typeof posthog.scheduledChangesList> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesListOutput = Awaited<ReturnType<typeof posthog.scheduledChangesList>>;

const result: ScheduledChangesListOutput = await posthog.scheduledChangesList();

// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null;...

posthog.scheduledChangesCreate

  • HTTP: POST /api/projects/{project_id}/scheduled_changes/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_create
  • Path params: None
  • Query params: None
  • Response codes: 201
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...
  • OpenAPI response codes: 201
import posthog from "@utdk/posthog";

type ScheduledChangesCreateInput = Parameters<typeof posthog.scheduledChangesCreate> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesCreateOutput = Awaited<ReturnType<typeof posthog.scheduledChangesCreate>>;

const result: ScheduledChangesCreateOutput = await posthog.scheduledChangesCreate();

// Result shape (from schema): { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...

posthog.scheduledChangesDestroy

  • HTTP: DELETE /api/projects/{project_id}/scheduled_changes/{id}/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_destroy
  • Path params: id
  • Query params: None
  • Response codes: 204
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: unknown
  • OpenAPI response codes: 204
import posthog from "@utdk/posthog";

type ScheduledChangesDestroyInput = Parameters<typeof posthog.scheduledChangesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesDestroyOutput = Awaited<ReturnType<typeof posthog.scheduledChangesDestroy>>;

const result: ScheduledChangesDestroyOutput = await posthog.scheduledChangesDestroy();

// Result shape (from schema): unknown

posthog.scheduledChangesRetrieve

  • HTTP: GET /api/projects/{project_id}/scheduled_changes/{id}/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_retrieve
  • Path params: id
  • Query params: None
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type ScheduledChangesRetrieveInput = Parameters<typeof posthog.scheduledChangesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesRetrieveOutput = Awaited<ReturnType<typeof posthog.scheduledChangesRetrieve>>;

const result: ScheduledChangesRetrieveOutput = await posthog.scheduledChangesRetrieve();

// Result shape (from schema): { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...

posthog.scheduledChangesPartialUpdate

  • HTTP: PATCH /api/projects/{project_id}/scheduled_changes/{id}/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_partial_update
  • Path params: id
  • Query params: None
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type ScheduledChangesPartialUpdateInput = Parameters<typeof posthog.scheduledChangesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.scheduledChangesPartialUpdate>>;

const result: ScheduledChangesPartialUpdateOutput = await posthog.scheduledChangesPartialUpdate();

// Result shape (from schema): { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...

posthog.scheduledChangesUpdate

  • HTTP: PUT /api/projects/{project_id}/scheduled_changes/{id}/
  • What it does: Create, read, update and delete scheduled changes.
  • OpenAPI operationId: scheduled_changes_update
  • Path params: id
  • Query params: None
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type ScheduledChangesUpdateInput = Parameters<typeof posthog.scheduledChangesUpdate> extends [infer T, ...unknown[]] ? T : undefined;
type ScheduledChangesUpdateOutput = Awaited<ReturnType<typeof posthog.scheduledChangesUpdate>>;

const result: ScheduledChangesUpdateOutput = await posthog.scheduledChangesUpdate();

// Result shape (from schema): { id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: numbe...