---
title: "Update order"
method: PATCH
path: "/accounts/{account_id}/orders/{order_id}"
tags: ["Orders"]
---

# Update order

`PATCH /accounts/{account_id}/orders/{order_id}`

Attempts to update an existing order. This can be used to update a subset of an order's attributes, for example price and quantity.

## Path parameters

- `account_id` string, required — Account ID for the account.
- `order_id` string, required — Unique order ID assigned by us.

## Request body

- UpdateOrder
  - `quantity` string, required — String representation of quantity.
  - `price` string — String representation of a price.
  - `stop_price` string — String representation of a price.

## Response `201`

Order update successfully attempted.

## Other responses

- `default` — Error response

## Changes

- **2024-11-29** `5efb31773884` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/clear-street/apis/common-api-models/changes/accounts/:account_id/orders/:order_id/patch.md)

---

[API](https://skmtc.dev/clear-street/apis/common-api-models.md) · [All operations](https://skmtc.dev/clear-street/apis/common-api-models/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clear-street/common-api-models/revisions/05b4df42c056/schema)
