---
title: "Change deal status"
method: POST
path: "/deals/{dealId}/actions"
tags: ["Deals"]
---

# Change deal status

`POST /deals/{dealId}/actions`

## Request

- Base URL: `https://api.darwin.so/api/v1`
- URL: `https://api.darwin.so/api/v1/deals/{dealId}/actions`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `dealId` string, required

## Request body

- DealActionRequest
  - `action` 'SEND' | 'ACCEPT' | 'REJECT' | 'WITHDRAW', required

## Response `201`

The updated deal.

- object
  - `deal` Deal, required: A customer-safe commercial work record. Darwin keeps matching, routing, and provider identifiers private.
    - `id` string, required
    - `aiId` string, required
    - `taskId` string, nullable: Deprecated compatibility alias for goalId.
    - `goalId` string, nullable, required
    - `mode` 'BUY' | 'SELL', required
    - `direction` 'demand' | 'supply', required: Deprecated compatibility field. Use mode.
    - `title` string, required
    - `status` 'draft' | 'sent' | 'accepted' | 'rejected' | 'withdrawn', required
    - `visibility` 'PUBLIC' | 'RESTRICTED' | 'PRIVATE', required
    - `accessPolicyId` string, nullable
    - `terms` object, required
    - `counterparty` object, required
    - `traceId` string, nullable
    - `sentAt` string, date-time, nullable
    - `respondedAt` string, date-time, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: The API key or access token is missing, invalid, expired, or revoked.
- `403`: The principal does not have the required scope or resource access.
- `404`: The resource was not found for this principal.

---

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