# Save an answer, from the client's link

Saves the client's answer to one question. Send the version of the answer you were looking at (0 for none): an answer that changed since is refused with its current value. Answers already sent cannot change. No authentication: the link's token is the key.

```http
POST https://hiresweep.com/api/openapi/intake-links/{token}/answers
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `token` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "questionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "value": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8000
        },
        {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "object",
            "properties": {
              "company": {
                "type": "string",
                "maxLength": 200,
                "default": ""
              },
              "title": {
                "type": "string",
                "maxLength": 200,
                "default": ""
              },
              "start": {
                "type": "string",
                "pattern": "^(\\d{4}(-\\d{2})?)?$",
                "default": ""
              },
              "end": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(\\d{4}(-\\d{2})?)?$"
                  },
                  {
                    "const": "present"
                  }
                ],
                "default": ""
              },
              "duties": {
                "type": "string",
                "maxLength": 4000,
                "default": ""
              },
              "achievements": {
                "type": "array",
                "maxItems": 10,
                "items": {
                  "type": "string",
                  "maxLength": 1000
                },
                "default": []
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "expectedVersion": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "The version of the answer the client was looking at; 0 when it has none yet."
    }
  },
  "required": [
    "questionId",
    "value",
    "expectedVersion"
  ]
}
```

## Responses

- `200`: The new version of the answer.
