---
updatedAt: 2026-05-12T10:01:02.000Z
---

# Ask a question about a vulnerability

This operation enables you to ask a question about the vulnerability specified. Metadata about the question (who asked it and when) is also added.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "Vuln API (Legacy)",
    "license": {
      "name": "(c) Copyright 2020 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/vuln/{vuln_id}/qanda": {
      "post": {
        "tags": [
          "Vuln API v1.0"
        ],
        "summary": "Ask a question about a vulnerability",
        "description": "This operation enables you to ask a question about the vulnerability specified. Metadata about the question (who asked it and when) is also added.",
        "operationId": "askQuestionAboutVuln",
        "parameters": [
          {
            "name": "vuln_id",
            "in": "path",
            "description": "Vulnerability ID.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Requested resource format for the response.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "xml",
              "example": "json",
              "enum": [
                "json",
                "xml"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "Text of the question.",
          "content": {
            "application/json": {
              "encoding": {},
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "description": "Text of the question."
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Provides the information of a question asked about the vulnerability specified.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QandaCollection"
                }
              },
              "text/xml": {
                "example": "XML preview is currently not supported."
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "Answer": {
        "type": "object",
        "nullable": true,
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "answer": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          }
        }
      },
      "Qanda": {
        "type": "object",
        "nullable": true,
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "question": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "answer": {
            "$ref": "#/components/schemas/Answer"
          }
        }
      },
      "Qandas": {
        "type": "array",
        "nullable": true,
        "default": [],
        "items": {
          "$ref": "#/components/schemas/Qanda"
        }
      },
      "QandaCollection": {
        "type": "object",
        "nullable": true,
        "properties": {
          "qanda": {
            "$ref": "#/components/schemas/Qandas"
          }
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": true
  }
}
```