---
title: "Modifies an existing order based on the provided request."
method: POST
path: "/api/Order/modify"
tags: ["Order"]
---

# Modifies an existing order based on the provided request.

`POST /api/Order/modify`

## Request body

- ModifyOrderRequest
  - `accountId` integer, required
  - `orderId` integer, required
  - `size` integer
  - `limitPrice` number
  - `stopPrice` number
  - `trailPrice` number

## Response `200`

A response with order modification details.

- ModifyOrderResponse
  - `success` boolean, required
  - `errorCode` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7, required — 0 = Success 1 = AccountNotFound 2 = OrderNotFound 3 = Rejected 4 = Pending 5 = UnknownError 6 = AccountRejected 7 = ContractNotFound
  - `errorMessage` string

---

[API](https://skmtc.dev/topstepx/apis/projectx-gateway-api.md) · [All operations](https://skmtc.dev/topstepx/apis/projectx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/topstepx/projectx-gateway-api/revisions/688252f4f704/schema)
