---
title: "Reject pending tool calls in an AI chat"
method: POST
path: "/v1/org/{orgId}/ai/chat/{chatId}/reject-tool"
tags: ["ai"]
---

# Reject pending tool calls in an AI chat

`POST /v1/org/{orgId}/ai/chat/{chatId}/reject-tool`

## Request

- Base URL: `https://localhost`
- URL: `https://localhost/v1/org/{orgId}/ai/chat/{chatId}/reject-tool`
- Auth: none declared

## Path parameters

- `orgId` string, required
- `chatId` string, required

## Request body

- AiChatRejectToolRequest
  - `toolUseIds` string[], required
  - `message` string

## Response `200`

successful operation

## Other responses

- `400`: invalid data
- `401`: not authorized
- `403`: permission denied
- `404`: not found

---

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