skill-drafts

Write one file into a draft

Create or replace ONE file by its bundle-relative path — this is the route that makes editing a skill cost one file instead of a whole re-upload. Returns the draft's file list. The same per-file and per-skill size caps a published skill obeys apply here, so a draft can never grow into something publishing would refuse.

put/v1/skill-drafts/{draft_id}/files

Request

  • Base URL: https://api.patricia.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.patricia.app/v1/skill-drafts/{draft_id}/files
  • Auth: HTTP bearer

Path parameters

draft_idstring uuid required

Headers

X-Tenant-Idstring nullable

Request body

pathstring required

The bundle-relative path, e.g. 'references/api.md'.

kindstring required

skill_md · reference · script · asset.

contentstring required

The file's text.

Response

Successful Response

pathstring required
kindstring required
size_bytesinteger required
sha256string required

Changes

No recorded changes to this operation across all 1 revision of this API.