Create a workflow draft
Creates a draft that expires after 24 hours. For an edit, send targetSkillId and baseRevision; the draft inherits that revision's supporting files. The target and base revision cannot change later. Generate a lowercase UUID draftId before sending the request. Retrying the exact initial body with the same ID returns the same draft and preserves staged files. Changed reuse returns 409; another owner's ID returns 404. Requires the admin role.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/skills/drafts" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "body": "string" }'{ "id": "string", "expiresAt": "2019-08-24T14:15:22Z", "targetSkillId": "string", "baseRevision": 1, "publishSkillId": "string", "files": [ "string" ]}Create a local workflow POST
Publishes instructions and optional base64 supporting files. Bundles allow 64 MiB, 512 files including SKILL.md, and 16 directory levels. Each supporting file is limited to 16 MiB. Requires the admin role.
Delete a local workflow DELETE
Removes a local catalog entry. Revisions referenced by conversations or active drafts remain available to those consumers. Synced entries cannot be deleted here. Requires the admin role.