---
title: "Create an Answer"
method: POST
path: "/v3/gfw/templates/{templateId}/answers"
tags: ["Answers"]
---

# Create an Answer

`POST /v3/gfw/templates/{templateId}/answers`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/v3/gfw/templates/{templateId}/answers`
- Auth: HTTP bearer

Creates a new answer

## Request body `multipart/form-data`

- object
  - `reportName` string, required
  - `areaOfInterest` string, required
  - `areaOfInterestName` string
  - `language` string, required
  - `userPosition` string
  - `clickedPosition` string
  - `date` string
  - `teamId` string, required
  - `assignmentId` string

## Response `201`

A single answer

- object
  - `data` object
    - `id` string
    - `type` string
    - `attributes` AnswerModel
      - `report` string, required
      - `reportName` string, required
      - `templateName` string
      - `fullName` string
      - `username` string
      - `organization` string
      - `teamId` string
      - `areaOfInterest` string
      - `areaOfInterestName` string
      - `language` string, required
      - `userPosition` unknown[]
        - unknown
      - `clickedPosition` unknown[]
        - unknown
      - `user` string, required
      - `responses` object, required
        - `name` string
        - `value` union
          - object
            - `url` string
          - string
          - unknown[]
            - unknown
      - `createdAt` string, required
      - `assignmentId` string

## Other responses

- `400`: Error Response
- `401`: Error Response

## Changes

- **2024-07-03** `400d22a78fbd`: 1 breaking, 2 info
  - the `data/attributes/responses` response's property type changed from `string` to `object` for status `201`
  - added the optional property `data/attributes/responses/name` to the response with the `201` status
  - added the optional property `data/attributes/responses/value` to the response with the `201` status

[Operation history](https://skmtc.dev/wri/apis/fw-core/changes/v3/gfw/templates/:templateId/answers/post.md)

---

[API](https://skmtc.dev/wri/apis/fw-core.md) - [All operations](https://skmtc.dev/wri/apis/fw-core/llms.txt) - [OpenAPI document](https://skmtc.dev/wri/apis/fw-core/revisions/400d22a78fbd?raw)
