provider agent_platformagent_applications POST /api/projects/{project_id}/agent_applications/{application_id}/revisions/
@utdk/posthog /api/projects/{project_id}/agent_applications/{application_id}/revisions/
agent_applications_revisions_create
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
application_id path required
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
agentApplicationsRevisionsCreate
POST/api/projects/{project_id}/agent_applications/{application_id}/revisions/
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)

Parameters

required
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

Storage-prefix metadata for the bundle, e.g. `fs://my-agent/`. Optional — leave blank and the server fills `fs://<application-slug>/`. Bundles are addressed by revision id regardless, so this is only a prefix hint.

required
required

Store-skill references for this draft, set via the `skill_refs` action and resolved into the bundle at freeze. Preserved as the authoring record on the frozen revision (and carried forward when forking a new draft); resolved provenance is stamped onto `spec.skills[].source_version_id`.

required
required

Resolved creator (id, first_name, email) from `created_by_id`, or null if unset or the user was deleted.

required
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.agentApplicationsRevisionsCreate()