{"templateId":"api_docs","sharedDataIds":{"apiDocsStore":"api-docs-docs/openapi.json","sidebar":"sidebar-developer/sidebars.yaml"},"props":{"definitionId":"docs/openapi.json","settings":{"baseUrlPath":"/docs/openapi"},"disableAutoScroll":true,"seo":{"title":"Save a draft","description":"Save a draft someone wrote, such as an email: its subject and body. It is recorded as their own text. Send an Idempotency-Key so a retry saves one draft. Use this when someone asks to keep a draft in HRC Ledger. The subject is saved as the draft's title and the body as its one section. It is recorded as the key holder's own text with the key, never as written by the assistant. Answers 201 with the draft; the same Idempotency-Key and body again answers 200 with the same id.","siteUrl":"https://docs.hrcledger.com","llmstxt":{"title":"HRC Ledger API","description":"One key, one envelope, every route and guide."}},"dynamicMarkdocComponents":[],"metadata":{"subType":"openapi-operation"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"docs.societyhealth.co","port":4000,"ipAddress":"216.73.216.25"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/docs/openapi/drafts/createdraft","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}