> For the complete documentation index, see [llms.txt](https://docs.sparkloop.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/surveys.md).

# Surveys

## Surveys

A **Survey** is a welcome survey a publication shows in its signup flow to collect subscriber profile data. Surveys are addressed by UUID and nested under a publication's `tools`, so the API can serve several per publication (a publication currently has at most one).

A survey's **questions** are a first-class sub-resource, and each question owns the feed of individual **answers** submitted to it. Completed **submissions** — each with the subscriber's email and every answer given — are a sibling sub-resource.

This page also creates the survey and adds, edits and deletes its questions. To show the survey to new subscribers, see the [Survey](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/survey.md) stage of the Signup Flow.

### List surveys

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys`

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "surveys": [
    <Survey Object>
  ],
  "meta": {
    "per_page": 50,
    "page": 1,
    "total_pages": 1,
    "total_surveys": 1
  }
}
```

{% endtab %}
{% endtabs %}

### Get survey

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:uuid`

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| uuid<mark style="color:red;">\*</mark>              | String | The survey's UUID.      |

**Query Parameters**

| Name   | Type   | Description                                             |
| ------ | ------ | ------------------------------------------------------- |
| expand | String | `stats` to include the survey step's completion funnel. |
| from   | String | Start date (`YYYY-MM-DD`) for `stats`.                  |
| to     | String | End date (`YYYY-MM-DD`) for `stats`.                    |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "survey": <Survey Object>
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}
{% endtabs %}

### Create survey

<mark style="color:green;">`POST`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys`

Creates the survey for the publication. Send no body. A new survey has no questions. Add them with [Add question](#add-question).

Creating a survey does not show it to subscribers. Then [enable the survey stage](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/survey.md#enable-survey-stage).

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |

{% tabs %}
{% tab title="201: Created" %}

```json
{
  "survey": <Survey Object>
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}

{% tab title="422: Unprocessable Content" %}

```json
{
  "error": "This publication already has a survey."
}
```

{% endtab %}
{% endtabs %}

### List questions

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions`

Questions are returned in ascending `position` order.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "questions": [
    <Survey Question Object>
  ],
  "meta": {
    "per_page": 50,
    "page": 1,
    "total_pages": 1,
    "total_questions": 4
  }
}
```

{% endtab %}
{% endtabs %}

### Get question

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions/:uuid`

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |
| uuid<mark style="color:red;">\*</mark>              | String | The question's UUID.    |

**Query Parameters**

| Name   | Type   | Description                                                                   |
| ------ | ------ | ----------------------------------------------------------------------------- |
| expand | String | `stats` to include the per-option answer distribution. Select questions only. |

{% hint style="info" %}
`expand=stats` is only valid for select questions (`single_select`, `multi_select`). Requesting it on a text question returns `422` — read the individual answers via the answers feed instead.
{% endhint %}

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "question": <Survey Question Object>
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}

{% tab title="422: Unprocessable Content" %}

```json
{
  "error": "Text questions have no answer distribution. Fetch the individual answers instead."
}
```

{% endtab %}
{% endtabs %}

### Add question

<mark style="color:green;">`POST`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions`

The question goes at the end of the survey, or at `position`. A `422` lists every error at once. See the [question types](#question-types) and [limits](#limits).

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |

**Body Parameters**

| Name                                    | Type    | Description                                                                                                                                                                                     |
| --------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark>  | String  | One of the four [question types](#question-types). It cannot change later.                                                                                                                      |
| label<mark style="color:red;">\*</mark> | String  | The question text, up to 200 characters.                                                                                                                                                        |
| required                                | Boolean | Whether an answer is required. A checkbox is always optional.                                                                                                                                   |
| max\_selections                         | Integer | `multi_select` only. `null` removes the cap.                                                                                                                                                    |
| options                                 | Array   | Select questions only. See [Options](#options).                                                                                                                                                 |
| position                                | Integer | Where the question goes, from 1 to the number of items in the survey plus one. The rest move down. A conditional question stays under its trigger. Read the final `position` from the response. |
| condition                               | Object  | Show the question only for some answers. See [Conditions](#conditions).                                                                                                                         |

**Example body**

```json
{ "type": "text_input", "label": "What do you do for work?" }
```

{% tabs %}
{% tab title="201: Created" %}

```json
{
  "question": {
    "uuid": "survey_question_51069f1c63a5",
    "position": 3,
    "label": "What do you do for work?",
    "required": false,
    "type": "text_input"
  }
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

```json
{
  "error": "`condition.question_uuid` was not found."
}
```

{% endtab %}

{% tab title="422: Unprocessable Content" %}

```json
{
  "error": "`type` is required."
}
```

```json
{
  "error": "`type` must be one of: text_input, single_select, multi_select, checkbox."
}
```

```json
{
  "error": "`label` can't be blank."
}
```

```json
{
  "error": "`required` must be true or false."
}
```

```json
{
  "error": "`options` is only accepted with type single_select or multi_select."
}
```

```json
{
  "error": "Option 2 can't be blank."
}
```

```json
{
  "error": "`label` is longer than 200 characters."
}
```

```json
{
  "error": "Select questions need at least 2 options."
}
```

```json
{
  "error": "A question can have at most 20 options."
}
```

```json
{
  "error": "Option 3 is longer than 40 characters."
}
```

```json
{
  "error": "Option 2 isn't an option of this question."
}
```

```json
{
  "error": "`options` labels must be unique."
}
```

```json
{
  "error": "`max_selections` must be between 1 and the number of options."
}
```

```json
{
  "error": "A survey can have at most 15 items."
}
```

```json
{
  "error": "The condition's question must be a `single_select`, `multi_select` or `checkbox` question."
}
```

```json
{
  "error": "`condition.value` is required unless the condition's question is a checkbox."
}
```

```json
{
  "error": "`condition.value` is not an option of the condition's question."
}
```

```json
{
  "error": "`condition.value` is not accepted when the condition's question is a checkbox."
}
```

```json
{
  "error": "Conditions can be nested at most 2 levels deep."
}
```

{% endtab %}
{% endtabs %}

A select question with options. Each option gets an id in the response.

```json
{ "type": "single_select", "label": "Favorite color", "options": ["Red", "Blue"] }
```

```json
{
  "question": {
    "uuid": "survey_question_d70f3be1a61e",
    "position": 3,
    "label": "Favorite color",
    "required": false,
    "type": "single_select",
    "options": [
      { "id": "opt_62a859d0c27d", "label": "Red" },
      { "id": "opt_6ea1d55f4b43", "label": "Blue" }
    ]
  }
}
```

### Edit question

<mark style="color:orange;">`PATCH`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions/:uuid`

Send only the fields you want to change. `options` and `condition` are replaced whole. A `422` lists every error at once.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |
| uuid<mark style="color:red;">\*</mark>              | String | The question's UUID.    |

**Body Parameters**

| Name            | Type    | Description                                                                                                                                                                                                       |
| --------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type            | String  | The current type only. A question's type cannot change.                                                                                                                                                           |
| label           | String  | The question text, up to 200 characters.                                                                                                                                                                          |
| same\_question  | Boolean | Send `true` when a new `label` is the same question. Needed when the label changes what the question asks and the question has answers or is a system question.                                                   |
| required        | Boolean | Whether an answer is required. A checkbox is always optional.                                                                                                                                                     |
| max\_selections | Integer | `multi_select` only. `null` removes the cap.                                                                                                                                                                      |
| options         | Array   | Select questions only. The full list. See [Options](#options).                                                                                                                                                    |
| condition       | Object  | Show the question only for some answers. `null` clears it. See [Conditions](#conditions).                                                                                                                         |
| position        | Integer | Moves the question to this position, from 1 to the number of items in the survey. The items in between shift by one. A conditional question stays under its trigger. Read the final `position` from the response. |

A new `label` that differs only in case or surrounding spaces needs no confirmation. `same_question` is read the way Rails reads a boolean: `false`, `0`, `"0"`, `"f"`, `"F"`, `"false"`, `"FALSE"`, `"off"`, `"OFF"`, `""` and `null` don't confirm, and any other value does.

**Example body**

```json
{ "label": "What is your job title?" }
```

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "question": <Survey Question Object>
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

```json
{
  "error": "`condition.question_uuid` was not found."
}
```

{% endtab %}

{% tab title="422: Unprocessable Content" %}

```json
{
  "error": "A question's type can't be changed."
}
```

```json
{
  "error": "`type` is required. A question's type can't be changed."
}
```

```json
{
  "error": "`type` must be one of: text_input, single_select, multi_select, checkbox. A question's type can't be changed."
}
```

```json
{
  "error": "`label` changes what this question asks, and it has answers or is a system question. Send `same_question: true` if it is the same question, or delete it and add a new one."
}
```

```json
{
  "error": "`label` can't be blank."
}
```

```json
{
  "error": "`required` must be true or false."
}
```

```json
{
  "error": "`options` is only accepted with type single_select or multi_select."
}
```

```json
{
  "error": "Option 2 can't be blank."
}
```

```json
{
  "error": "Which? still uses an option this update removes."
}
```

```json
{
  "error": "`label` is longer than 200 characters."
}
```

```json
{
  "error": "Select questions need at least 2 options."
}
```

```json
{
  "error": "A question can have at most 20 options."
}
```

```json
{
  "error": "Option 3 is longer than 40 characters."
}
```

```json
{
  "error": "`options` labels must be unique."
}
```

```json
{
  "error": "Option 2 isn't an option of this question."
}
```

```json
{
  "error": "Option 2 is already used by option 1."
}
```

```json
{
  "error": "`options` can't rename Red and add a new Red in the same save."
}
```

```json
{
  "error": "`max_selections` must be between 1 and the number of options."
}
```

```json
{
  "error": "A question's condition can't use the question itself."
}
```

```json
{
  "error": "The condition's question must be a `single_select`, `multi_select` or `checkbox` question."
}
```

```json
{
  "error": "The condition's question must come earlier in the survey."
}
```

```json
{
  "error": "`condition.value` is required unless the condition's question is a checkbox."
}
```

```json
{
  "error": "`condition.value` is not an option of the condition's question."
}
```

```json
{
  "error": "`condition.value` is not accepted when the condition's question is a checkbox."
}
```

```json
{
  "error": "Conditions can be nested at most 2 levels deep."
}
```

{% endtab %}
{% endtabs %}

### Delete question

<mark style="color:red;">`DELETE`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions/:uuid`

Deletes the question and the answers subscribers gave to that question. A survey must keep at least one question. A question that another item's condition uses can't be deleted until that condition changes. Later items move up one position.

The `422` message names each item whose condition uses the question, a question by its label and a promotion by its title.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |
| uuid<mark style="color:red;">\*</mark>              | String | The question's UUID.    |

{% tabs %}
{% tab title="204: No Content" %}
No body.
{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}

{% tab title="422: Unprocessable Content" %}

```json
{
  "error": "A survey must keep at least one question."
}
```

```json
{
  "error": "Which? still uses this question."
}
```

```json
{
  "error": "Which? and Why? still use this question."
}
```

{% endtab %}
{% endtabs %}

### List answers

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/questions/:question_uuid/answers`

A paginated, reverse-chronological feed of the individual answers to one question. Unlike the question's `stats` distribution, this includes text questions — for a free-text question it's the only way to read what subscribers submitted. Answers carry no subscriber identity; to see who gave them, use the submissions feed, which includes each subscriber's `email`.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |
| question\_uuid<mark style="color:red;">\*</mark>    | String | The question's UUID.    |

**Query Parameters**

| Name   | Type   | Description                                                                                 |
| ------ | ------ | ------------------------------------------------------------------------------------------- |
| expand | String | `question` to inline the full question object on each answer (a UUID reference by default). |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "answers": [
    <Survey Answer Object>
  ],
  "meta": {
    "per_page": 50,
    "page": 1,
    "total_pages": 3,
    "total_answers": 128
  }
}
```

{% endtab %}
{% endtabs %}

### List submissions

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/submissions`

A paginated, reverse-chronological feed of completed submissions, each with the subscriber's `email` and every answer given. A subscriber who completes the survey more than once has one submission per completion.

Pass `email` to return only that subscriber's submissions. The match is case-insensitive, results stay newest first and are still paginated. A blank `email` is ignored and returns the full feed; an email with no submissions returns an empty `submissions` list with a `200`.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |

**Query Parameters**

| Name  | Type   | Description                                                                                                                 |
| ----- | ------ | --------------------------------------------------------------------------------------------------------------------------- |
| email | String | A subscriber's email address. Returns only that subscriber's submissions (case-insensitive). Must be a valid email address. |

{% hint style="info" %}
URL-encode a `+` in the email as `%2B` — for example, `?email=jane%2Bnews@example.com`. An unencoded `+` is read as a space, so the value is no longer a valid email address and the request returns `400`.
{% endhint %}

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "submissions": [
    <Survey Submission Object>
  ],
  "meta": {
    "per_page": 50,
    "page": 1,
    "total_pages": 5,
    "total_submissions": 214
  }
}
```

{% endtab %}

{% tab title="400: Bad Request" %}

```json
{
  "error": "`email` must be a valid email address (URL-encode `+` as `%2B`)."
}
```

{% endtab %}
{% endtabs %}

#### Example: filter by subscriber email

```bash
curl "https://api.sparkloop.app/v3/publications/PUBLICATION_UUID/tools/surveys/SURVEY_UUID/submissions?email=jane@example.com" \
  -H "x-api-key: YOUR_API_KEY"
```

```json
{
  "submissions": [
    {
      "uuid": "survey_submission_77cc33dd91e4",
      "email": "jane@example.com",
      "submitted_at": "2026-07-15T10:00:00Z",
      "source": "recommendations_hub",
      "answers": [
        {
          "value": "Founder",
          "answered_at": "2026-07-15T10:00:00Z",
          "question": {
            "uuid": "survey_question_9f8e7d6c1a2b",
            "position": 1,
            "label": "What best describes your role?",
            "required": true,
            "type": "single_select",
            "options": [
              { "id": "opt_1a2b3c4d5e6f", "label": "Founder" },
              { "id": "opt_2b3c4d5e6f7a", "label": "Engineer" },
              { "id": "opt_3c4d5e6f7a8b", "label": "Marketer" },
              { "id": "opt_4d5e6f7a8b9c", "label": "Other" }
            ]
          }
        },
        {
          "value": ["Newsletters", "Podcasts"],
          "answered_at": "2026-07-15T10:00:00Z",
          "question": {
            "uuid": "survey_question_1a2b3c4d5e6f",
            "position": 2,
            "label": "What do you like to read?",
            "required": false,
            "type": "multi_select",
            "options": [
              { "id": "opt_5e6f7a8b9c0d", "label": "Newsletters" },
              { "id": "opt_6f7a8b9c0d1e", "label": "Podcasts" },
              { "id": "opt_7a8b9c0d1e2f", "label": "Blogs" },
              { "id": "opt_8b9c0d1e2f3a", "label": "Books" }
            ]
          }
        }
      ]
    },
    {
      "uuid": "survey_submission_44aa22bb7c05",
      "email": "jane@example.com",
      "submitted_at": "2026-06-02T14:20:00Z",
      "source": "signup_flow",
      "answers": [
        {
          "value": "Engineer",
          "answered_at": "2026-06-02T14:20:00Z",
          "question": {
            "uuid": "survey_question_9f8e7d6c1a2b",
            "position": 1,
            "label": "What best describes your role?",
            "required": true,
            "type": "single_select",
            "options": [
              { "id": "opt_1a2b3c4d5e6f", "label": "Founder" },
              { "id": "opt_2b3c4d5e6f7a", "label": "Engineer" },
              { "id": "opt_3c4d5e6f7a8b", "label": "Marketer" },
              { "id": "opt_4d5e6f7a8b9c", "label": "Other" }
            ]
          }
        }
      ]
    }
  ],
  "meta": {
    "per_page": 50,
    "page": 1,
    "total_pages": 1,
    "total_submissions": 2
  }
}
```

### Get submission

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/surveys/:survey_uuid/submissions/:uuid`

Returns one submission by UUID, including the subscriber's `email`.

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |
| survey\_uuid<mark style="color:red;">\*</mark>      | String | The survey's UUID.      |
| uuid<mark style="color:red;">\*</mark>              | String | The submission's UUID.  |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "submission": <Survey Submission Object>
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}
{% endtabs %}

### Question types

| `type`          | Options                             |
| --------------- | ----------------------------------- |
| `text_input`    | No                                  |
| `single_select` | 2 to 20                             |
| `multi_select`  | 2 to 20. Optional `max_selections`. |
| `checkbox`      | No. Always optional.                |

### Limits

| What                                         | Limit                         |
| -------------------------------------------- | ----------------------------- |
| Items in a survey (questions and promotions) | 15                            |
| Question `label`                             | 200 characters                |
| Options on a question                        | 2 to 20                       |
| One option label                             | 40 characters                 |
| `max_selections`                             | 1 up to the number of options |
| Condition nesting                            | 2 levels                      |

Adding a 16th item returns a `422` error: `A survey can have at most 15 items.`

A promotion is a recommendation or lead offer shown inside the survey. You manage promotions in the dashboard. Questions and promotions share positions, so question `position` values can skip numbers.

### Options

`options` is the **full ordered list** and replaces the existing one. Each entry is either:

* a label string, such as `"Red"`, or
* an object with a `label`, and optionally an `id`: `{ "id", "label" }`.

An entry with no label or a blank label, such as an object without a `label`, returns `422`, and the message names its position: `Option 2 can't be blank.`

A `null` entry in `options` is ignored, and error positions count the list without it.

Option labels must be unique. The check is case-sensitive, so `Red` and `red` are two options.

Option ids:

* Send an existing option's `id` with it. Leave `id` out for a new option.
* To rename an option and keep its id, send the id with the new label.
* A label with no id keeps its old id only when the text is unchanged. Otherwise the option gets a new `opt_` id.
* Reads always return `{ "id", "label" }` objects. See [Survey Question Object](https://docs.sparkloop.app/api-v3/objects-schema/survey-question-object.md).

### Conditions

A condition shows a question only when an earlier question was answered a certain way. The condition's question must be a `single_select`, `multi_select` or `checkbox` question earlier in the survey.

You write a condition with the question's UUID and the option **label**.

```json
{ "condition": { "question_uuid": "survey_question_ce21e00a73cb", "value": "Green" } }
```

* Omit `value` when the condition's question is a checkbox.
* Send `"condition": null` to clear it.
* A `question_uuid` that is missing or not in this survey returns `404`, including a `condition` of `{}`.

A condition that names the question itself returns every reason at once. For a text question:

```json
{
  "error": "A question's condition can't use the question itself. The condition's question must be a `single_select`, `multi_select` or `checkbox` question. The condition's question must come earlier in the survey."
}
```

You read a condition back in a different shape. The condition's question is the full question and `value` is the label. This is an example of the shape.

```json
{
  "condition": {
    "question": { "uuid": "survey_question_ce21e00a73cb", "position": 2, "label": "Favorite color", "required": false, "type": "single_select", "options": [ { "id": "opt_4b8e2d6a1c9f", "label": "Green" } ] },
    "value": "Green"
  }
}
```

The key is missing when the question is always shown. `value` is missing for a checkbox question.

Saving a condition can change the question's `position`, so read `position` from the response.

#### Removing an option that a condition uses

An update that removes an option still used by a condition is rejected. The condition can belong to a question or to a promotion.

For example, a question has the options Red, Blue and Green. The question `Which?` is shown only when the answer is Red. This update drops **Red**:

```json
{ "options": [ { "id": "opt_6ea1d55f4b43", "label": "Blue" }, { "label": "Green" } ] }
```

```json
{ "error": "Which? still uses an option this update removes." }
```

The message names the item that uses the dropped option, here `Which?`, not the option itself (`Red`). It starts with the label of that question, or the title of that promotion. With two items it reads `Which? and Partner perk still use an option this update removes.` To swap an option, do it in three steps.

1. Add the new option and keep the old ones.
2. Point the condition at the new option. When the condition belongs to a promotion, do this step in the dashboard.
3. Remove the old option.
