---
title: "Answer pending AI question"
method: POST
path: "/v1/ai/chat/{chat-id}/answer"
tags: ["AI Chat"]
---

# Answer pending AI question

`POST /v1/ai/chat/{chat-id}/answer`

Provide an answer to a pending question from the AI assistant.

## Path parameters

- `chat-id` integer, required

## Request body

- object
  - `questionId` integer, required — ID of the question being answered
  - `positive` boolean — Whether the answer is positive (default false)
  - `selectedOption` integer — Index of selected option (-1 if none)

## Response `200`

Answer accepted

- object
  - `success` boolean

## Other responses

- `400` — Invalid chat ID or missing question ID
- `401` — Unauthorized
- `403` — Access denied
- `404` — Chat session not found

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/versions/14d93e5115dd/schema)
