amendment_drafts

Auto-save draft (current_doc_json, amended_doc_json, title)

Optimistic locking via If-Unmodified-Since header. Returns 409 if the draft was modified since the client last read it. Pass ?force=true to skip the staleness check (user chose "Override").

put/bills/{bill_id}/drafts/{draft_id}

Request

  • Base URL: https://api.fed10.ai/api
  • URL: https://api.fed10.ai/api/bills/{bill_id}/drafts/{draft_id}
  • Auth: API key in header Authorization

Response

Success

idstring
bill_idstring
bill_version_idinteger
titlestring
base_htmlstring

Frozen HTML snapshot

current_doc_jsonobject

TipTap editor state

amended_doc_jsonobject

AI-amended document

suggested_goalstring

Template amendment goal

editing_usersobject

Active editors list

created_bystring
last_modified_bystring
created_atstring
updated_atstring

Changes

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