---
title: "Update Order"
method: PUT
path: "/api/orders/admin/{order_id}"
tags: ["orders", "orders"]
---

# Update Order

`PUT /api/orders/admin/{order_id}`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/orders/admin/{order_id}`
- Auth: HTTP bearer

Update order status and/or add comment (admin only)

## Path parameters

- `order_id` string, uuid, required

## Request body

- OrderUpdate: Order update model (admin only)
  - `status` 'pending' | 'in_progress' | 'filled' | 'cancelled': Order status types
  - `admin_comment` string, nullable
  - `execution_type` 'market' | 'limit': Order execution types
  - `quantity` number, nullable
  - `price` number, nullable
  - `valid_until` string, date-time, nullable
  - `execution_date` string, date, nullable: Date when order was executed (defaults to today)

## Response `200`

Successful Response

- APIResponse: Generic API response model
  - `success` boolean, required
  - `message` string, required
  - `data` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
