draft
fetch the current user's own draft content at a path (any kind)
Changed onget/w/{workspace}/drafts/get_own/{kind}/{path}
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/w/{workspace}/drafts/get_own/{kind}/{path}
- Auth: one of:
- HTTP bearer
- API key in cookie token
Path parameters
workspacestring required
kind'script' | 'flow' | 'app' | 'raw_app' | 'resource' | 'variable' | 'trigger_schedule' | 'trigger_webhook' | 'trigger_default_email' | 'trigger_email' | 'trigger_http' | 'trigger_websocket' | 'trigger_postgres' | 'trigger_kafka' | 'trigger_nats' | 'trigger_mqtt' | 'trigger_amqp' | 'trigger_sqs' | 'trigger_gcp' | 'trigger_azure' | 'trigger_poll' | 'trigger_cli' | 'trigger_nextcloud' | 'trigger_google' | 'trigger_github' | 'data_pipeline' required
Closed set of item kinds a user can autosave as a draft. Mirrors the Postgres DRAFT_KIND enum and the backend UserDraftItemKind.
pathstring required
Response
the user's draft content, or null when none exists
Changes
- info
added the new enum value
trigger_amqpto thepathrequest parameterkind
- info