---
title: "Creating a new Survey Answer"
method: POST
path: "/survey_answers"
tags: ["Survey Answers (Legacy)"]
---

# Creating a new Survey Answer

`POST /survey_answers`

## Request

- Base URL: `https://api.mavenlink.com/api/v1`
- URL: `https://api.mavenlink.com/api/v1/survey_answers`
- Auth: none declared

This endpoint returns structured Survey Answer objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the `results` array
and will be indexed by ID in the `survey_answers` top-level JSON key.
Please see our [Response Format](#section/Response-Format) section for more information.

## Query parameters

- `include` string

## Request body

- object
  - `survey_answer` object
    - `survey_response_id` integer, required: Survey Response associated with the answer.
    - `survey_question_id` integer, required: Survey Question that is being answered.
    - `date_value` string, date: The date value for the answer. The date must be in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.
    - `string_value` string: The string value for the answer.
    - `integer_value` integer: The integer value for the answer.
    - `decimal_value` number, float: The decimal value for the answer.
    - `choice_values` string[]: An array of choice values for the answer.
    - `choice_ids` integer[]: An array of choice ids for the answer.

## Response `200`

Survey Answer has been created.

- object
  - `count` integer
  - `meta` object
    - `count` integer
    - `page_count` integer
    - `page_number` integer
    - `page_size` integer
  - `results` object[]
    - `key` string
    - `id` string
  - `survey_answers` object
  - `external_references` object
  - `survey_questions` object
  - `survey_responses` object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized request
- `403`: Forbidden request
- `404`: Page Not Found
- `422`: Unprocessable Entity
- `503`: Service is unavailable

---

[API](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation.md) - [All operations](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/revisions/9d4ebed2fa98?raw)
