provider agent_platformagent_applications PUT /api/projects/{project_id}/agent_applications/{application_id}/revisions/{id}/bundle/file/
@utdk/posthog /api/projects/{project_id}/agent_applications/{application_id}/revisions/{id}/bundle/file/
agent_applications_revisions_bundle_file_update
Update one `.md` file on a draft revision. `agent.md` writes go to the draft bundle. `skills/<id>/SKILL.md` writes are store-backed — skills are materialized from the skill store at freeze, so the edit publishes a new version of the referenced store skill and re-pins the draft's `skill_refs` entry to it. `<id>` must be a ref alias on this revision; add new skills via `bundle/import/` or `skill_refs`. Tool source / schema editing is out of scope here — use the per-tool endpoints. Returns the updated revision so the caller can refresh in one round-trip.
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
agentApplicationsRevisionsBundleFileUpdate
PUT/api/projects/{project_id}/agent_applications/{application_id}/revisions/{id}/bundle/file/
Update one `.md` file on a draft revision. `agent.md` writes go to the draft bundle. `skills/<id>/SKILL.md` writes are store-backed — skills are materialized from the skill store at freeze, so the edit publishes a new version of the referenced store skill and re-pins the draft's `skill_refs` entry to it. `<id>` must be a ref alias on this revision; add new skills via `bundle/import/` or `skill_refs`. Tool source / schema editing is out of scope here — use the per-tool endpoints. Returns the updated revision so the caller can refresh in one round-trip.

Parameters

required
required

A UUID string identifying this agent revision.

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

Canonical bundle path. Must be `agent.md` or `skills/<id>/SKILL.md` where `<id>` is a skill-reference alias on this revision.

required

The new file contents. For `agent.md`, written verbatim to the draft bundle. For a skill, published as a new version of the referenced store skill — shared with every agent that references it. SKILL.md frontmatter (description, license, allowed-tools, metadata) is honoured when present; body-only content carries those fields forward.

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.agentApplicationsRevisionsBundleFileUpdate()