---
title: "Discard a staged copilot action proposal"
method: POST
path: "/api/copilot/threads/{threadId}/actions/{actionId}/discard"
tags: ["Copilot"]
---

# Discard a staged copilot action proposal

`POST /api/copilot/threads/{threadId}/actions/{actionId}/discard`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/copilot/threads/{threadId}/actions/{actionId}/discard`
- Auth: API key in cookie `luca.session_token`

The coach's no to a staged action. A proposed reply gets rejected in the review queue, a proposed rescue gets cancelled, and a plan proposal is closed without running. A plan proposal that ended short, failed, or stopped showing progress can be closed too; its step results stay on the card. You'll get a 409 if the proposal was already decided.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Path parameters

- `threadId` string, uuid, required
- `actionId` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Request body

- CopilotProposalDecisionRequest
  - `revision` integer

## Response `200`

ok

- OkResponse
  - `ok` true, required

## Other responses

- `400`: bad request
- `401`: unauthorized
- `403`: forbidden
- `404`: not found
- `409`: conflict
- `410`: gone
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

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