---
updatedAt: 2026-08-11T10:25:44.000Z
agentTools:
  projectIndex: https://directiq.readme.io/llms.txt
---

# /survey/answer

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Core API",
    "termsOfService": "https://directiq.com/terms",
    "contact": {
      "name": "Baris Ergin",
      "url": "https://directiq.com/contact",
      "email": ""
    },
    "version": "v1-current"
  },
  "servers": [
    {
      "url": "https://rest.directiq.com/core",
      "description": "Production"
    }
  ],
  "paths": {
    "/survey/answer": {
      "post": {
        "tags": [
          "Survey"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SurveyAnswerRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SurveyAnswerRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SurveyAnswerRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SurveyAnswerRequestDto": {
        "type": "object",
        "properties": {
          "questionId": {
            "$ref": "#/components/schemas/Ulid"
          },
          "questionIndex": {
            "type": "integer",
            "format": "int32"
          },
          "questionLabel": {
            "type": "string",
            "nullable": true
          },
          "optionId": {
            "$ref": "#/components/schemas/Ulid"
          },
          "responseId": {
            "type": "integer",
            "format": "int64"
          },
          "answerText": {
            "type": "string",
            "nullable": true
          },
          "answerNumber": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "optionLabel": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Ulid": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "random": {
            "type": "string",
            "format": "byte",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "description": "Basic Authentication",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
```