---
updatedAt: 2025-06-05T21:43:53.000Z
agentTools:
  projectIndex: https://developer.surveypal.com/llms.txt
---

# /survey/{id}/answer

Create a new answer to the survey.

Will create a new answer to the survey. With this request all answers to survey questions can be added at the same time. Also supports adding meta data for the answer. Read how you can use this: <https://support.surveypal.com/hc/en-us/articles/6469398719890>

```curl
curl -i -X PUT \
   -H "Authorization: Basic YOUR-USERNAME-AND-TOKEN-BASE64-ENCODED" \
   -H "Accept:application/json" \
 'https://my.surveypal.com/api/rest/survey/:id/answer?source=:source&state=:state&startTime=:startTime&localeId=:localeId&meta=:meta'
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://my.surveypal.com/api/rest"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/survey/{id}/answer": {
      "put": {
        "summary": "/survey/{id}/answer",
        "description": "Create a new answer to the survey.",
        "operationId": "surveyidanswer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Target survey id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "source",
            "in": "query",
            "description": "The answer source. Options are: external",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "The answer state. Options are unstarted, incomplete, complete",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startTime",
            "in": "query",
            "description": "The answer start date and time. https://developer.surveypal.com/reference/timestamp-parameter",
            "schema": {
              "type": "string",
              "default": "now"
            }
          },
          {
            "name": "localeId",
            "in": "query",
            "description": "The answer language identifier. If survey doesn't contain specified language then first language will be selected. https://developer.surveypal.com/reference/locale-id-parameter",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "meta",
            "in": "query",
            "description": "A JSON array of meta information for the answer. https://developer.surveypal.com/reference/meta-parameter",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"answerId\":2147483647,\n   \"hash\":\"QnMliuhiZfXkmKvLQEo3IUyWlfgLFmdZ2m4XtE5-BeJRmiXPkWFabgIb0wEUD7m8\",\n   \"url\":\"https://my.surveypal.com/app/form?_d=0&amp;_aid=2147483647&amp;_k=QnMliuhiZfXkmKvLQEo3IUyWlfgLFmdZ2m4XtE5-BeJRmiXPkWFabgIb0wEUD7m8\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "answerId": {
                      "type": "integer",
                      "example": 2147483647,
                      "default": 0
                    },
                    "hash": {
                      "type": "string",
                      "example": "QnMliuhiZfXkmKvLQEo3IUyWlfgLFmdZ2m4XtE5-BeJRmiXPkWFabgIb0wEUD7m8"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://my.surveypal.com/app/form?_d=0&amp;_aid=2147483647&amp;_k=QnMliuhiZfXkmKvLQEo3IUyWlfgLFmdZ2m4XtE5-BeJRmiXPkWFabgIb0wEUD7m8"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```