provider agent_platformagent_applications POST
/api/projects/{project_id}/agent_applications/{application_id}/revisions/{id}/freeze/ @utdk/posthog
/api/projects/{project_id}/agent_applications/{application_id}/revisions/{id}/freeze/ agent_applications_revisions_freeze_create
Freeze the bundle: draft → ready, stamps sha256 on the row.
Django is a thin proxy here: resolve template refs into the
bundle, ask the janitor to seal it (the janitor returns the sha
+ the spec it derived from the typed resources), then stamp the
row. No `transaction.atomic()` — the janitor's freeze is idempotent
(on retry it re-reads the existing `.frozen` marker + re-derives
spec), so a partial failure here is recoverable by re-calling
freeze, not by transactional rollback. Holding an atomic block
across the janitor HTTP call previously deadlocked the
agent_revision row against the janitor's spec write — that's
moved off the janitor side as part of the same fix.
- application_id path required
- string
- id path required
- A UUID string identifying this agent revision.
- string
- 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
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.agentApplicationsRevisionsFreezeCreate()