---
title: "Fill in a draft's blanks"
method: PATCH
path: "/drafts/{draft_id}"
tags: ["draft"]
---

# Fill in a draft's blanks

`PATCH /drafts/{draft_id}`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/drafts/{draft_id}`
- Auth: HTTP bearer

Sets blanks by name. An agent or API key passes each value with source_quote and source_ref, a stored document version the quote must appear in; Binderwork checks the quote and calls no model. A name that isn't one of the template's blanks, and directors or officers, which come from the records, are refused field by field and nothing is written.

## Path parameters

- `draft_id` string, required

## Request body

- object
  - `values` object[], required
    - `name` string, required
    - `value` string, required
    - `source_quote` string
    - `source_ref` string
    - `read_by_ai` object
      - `model` string, required
      - `quote` string, required

## Response `200`

The result.

- object
  - `id` string, required
  - `template_key` string, required
  - `template_version` string, required
  - `title` string, required
  - `round_id` string, nullable, required
  - `status` 'draft' | 'finalized', required
  - `fields` object[], required
    - `name` string, required
    - `label` string, required
    - `type` 'text' | 'email' | 'money' | 'date' | 'forms' | 'people' | 'choice', required
    - `required` boolean, required
    - `options` object[], required
      - `value` string, required
      - `label` string, required
    - `from_records_only` boolean, required
    - `text` string, nullable, required
    - `input` string, nullable, required
    - `provenance` string, nullable, required
    - `quote` string, nullable, required
    - `source_ref` string, nullable, required
  - `missing` string[], required
  - `blocked` string, nullable, required
  - `rule_changes` string[], required
  - `rule_acknowledgment` object, nullable, required
    - `text` string, required
    - `by` string, required
    - `at` string, date-time, required
  - `signers` object[], required
    - `name` string, required
    - `email` string, nullable, required
  - `preview` object[], required
    - `id` string, required
    - `level` integer, required
    - `text` string, required
  - `provenance` object, required
    - `template_key` string, required
    - `title` string, required
    - `publisher` string, required
    - `source_url` string, required
    - `license` string, required
    - `source_version` string, required
    - `packaging_revision` integer, required
    - `source_sha256` string, required
    - `modifications` string, required
  - `explainer` object, nullable, required
    - `title` string, required
    - `url` string, required
  - `document_id` string, nullable, required
  - `version_id` string, nullable, required
  - `envelope_id` string, nullable, required
  - `consent` object, nullable, required
    - `id` string, required
    - `effective_on` string, date, nullable, required
    - `status` string, required
  - `created_at` string, date-time, required
  - `finalized_at` string, date-time, nullable, required

## Other responses

- `default`: An RFC 9457 problem.

---

[API](https://skmtc.dev/binderwork/apis/binderwork-api.md) · [All operations](https://skmtc.dev/binderwork/apis/binderwork-api/llms.txt) · [OpenAPI document](https://skmtc.dev/binderwork/apis/binderwork-api/revisions/f8fab0ebee53?raw)
