---
title: "Replace a saved draft."
method: PUT
path: "/v1/drafts/{id}"
tags: ["drafts"]
---

# Replace a saved draft.

`PUT /v1/drafts/{id}`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/drafts/{id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `questions:write`)

404 `not_found` when the draft is not in the account the caller acts for.

## Path parameters

- `id` string, required

## Request body

- DraftsUpdateRequest
  - `type` 'single_choice' | 'multi_choice' | 'ab_image' | 'pairwise' | 'scale_1_5' | 'ranking' | 'yes_no' | 'yes_mostly_no' | 'free_text' | 'click_test' | 'reaction' | 'rate_each', required
  - `text` string
  - `context` string
  - `language` string
  - `options` object[]
    - `label` string, required
    - `imageUrl` string, uri
    - `imageUrls` string[]
  - `scaleLabels` object
    - `low` string, required
    - `high` string, required
  - `neither` boolean
  - `stimulus` object
    - `imageUrl` string, uri
    - `audioUrl` string, uri
    - `text` string
    - `exposureMs` integer
  - `n` integer
  - `tier` union
    - 1
    - 2
    - 3
  - `rush` boolean
  - `targeting` object
    - `countries` string[]
    - `tags` string[]
    - `ageBands` string[]
    - `genders` string[]
    - `verifiedAge` boolean
  - `clickTest` object
    - `maxTaps` integer
  - `scheduledFor` string, date-time
  - `publicResults` boolean
  - `reason` 'off' | 'optional' | 'required'
  - `goRule` object
    - `goAbove` number, required
    - `minAnswers` integer, required
  - `contentFlag` 'none' | 'medical' | 'violence' | 'distressing' | 'alcohol_gambling' | 'political'
  - `interestAudienceId` string
  - `minGrade` union
    - 1
    - 2
    - 3
  - `interestPrice` object
    - `perAnswerPence` integer, required
    - `headShareBps` integer, required
  - `answeredBy` 'heads' | 'private'
  - `openForDays` union
    - 1
    - 7
    - 14
    - 30
  - `shownAs` string

## Response `200`

OK

- Draft
  - `id` string, required
  - `draft` object, required
    - `type` 'single_choice' | 'multi_choice' | 'ab_image' | 'pairwise' | 'scale_1_5' | 'ranking' | 'yes_no' | 'yes_mostly_no' | 'free_text' | 'click_test' | 'reaction' | 'rate_each', required
    - `text` string
    - `context` string
    - `language` string
    - `options` object[]
      - `label` string, required
      - `imageUrl` string, uri
      - `imageUrls` string[]
    - `scaleLabels` object
      - `low` string, required
      - `high` string, required
    - `neither` boolean
    - `stimulus` object
      - `imageUrl` string, uri
      - `audioUrl` string, uri
      - `text` string
      - `exposureMs` integer
    - `n` integer
    - `tier` union
      - 1
      - 2
      - 3
    - `rush` boolean
    - `targeting` object
      - `countries` string[], required
      - `tags` string[], required
      - `ageBands` string[]
      - `genders` string[]
      - `verifiedAge` boolean
    - `clickTest` object
      - `maxTaps` integer, required
    - `scheduledFor` string, date-time
    - `publicResults` boolean
    - `reason` 'off' | 'optional' | 'required'
    - `goRule` object
      - `goAbove` number, required
      - `minAnswers` integer, required
    - `contentFlag` 'none' | 'medical' | 'violence' | 'distressing' | 'alcohol_gambling' | 'political'
    - `interestAudienceId` string
    - `minGrade` union
      - 1
      - 2
      - 3
    - `interestPrice` object
      - `perAnswerPence` integer, required
      - `headShareBps` integer, required
    - `answeredBy` 'heads' | 'private'
    - `openForDays` union
      - 1
      - 7
      - 14
      - 30
    - `shownAs` string
  - `updatedAt` string, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `404`: No such question, endpoint or delivery on this account.
- `429`: Too many requests; wait for Retry-After.

---

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