---
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
- `503` — AI assistant is not available

## Changes

- **2026-09-17** `a81265c49fa9` — 1 info
  - added the non-success response with the status `503`

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/ai/chat/:chat-id/answer/post.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/netxms/apis/netxms-api/revisions/a81265c49fa9?raw)
