---
title: "Update order measure by id"
method: PATCH
path: "/order-measures/{id}"
tags: ["OrderMeasures"]
---

# Update order measure by id

`PATCH /order-measures/{id}`

## Request

- Base URL: `https://flash-api.quadminds.com/api/v2`
- URL: `https://flash-api.quadminds.com/api/v2/order-measures/{id}`
- Auth: API key in header `x-saas-apikey`

Update order measure by id

## Path parameters

- `id` integer, required

## Request body

- object
  - `orderId` integer: Order id
  - `constraintId` integer: Constraint id
  - `value` number: Value

## Response `200`

Update order measure

- object
  - `meta` object
    - `error` number: Error number
    - `message` string: Error message
  - `data` object
    - `orderId` integer: Order id
    - `constraintId` integer: Constraint id
    - `value` number: Value

## Other responses

- `400`: On Error, response will contain an error and message with these posible values ### Error codes: Code | Description | Field ----------------|-------------|------------- 2027 | Order id not found or not allowed for this user | orderId 2033 | Order measure id not found or not allowed for this user | _id 2034 | Constraint id not found or not allowed for this user | constraintId 2035 | Constraint id already present for this order | constraintId 2036 | Constraint type is not valid | constraintId
- `403`: Not authorized access

---

[API](https://skmtc.dev/quadminds/apis/cloudflash-api.md) - [All operations](https://skmtc.dev/quadminds/apis/cloudflash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quadminds/apis/cloudflash-api/revisions/7731f1076b80?raw)
