---
title: "Update the labels on an order"
method: POST
path: "/shop/orders/{orderId}/labels"
tags: ["Orders"]
---

# Update the labels on an order

`POST /shop/orders/{orderId}/labels`

Use this endpoint to replace all labels on an order with the given values.

## Request body

- object
  - `labels` UpdateOrderLabel[], required
    - `id` string, mongo-id, required — The ID of the label to be added

## Response `201`

The `Order` was successfully retrieved

- object
  - `data` Order, required — A customer order containing items and payments. This format replaces an older version of the order schema, and must be requested explicitly by passing `generic_items_array=true` as a query parameter.
    - `id` string, object-id — The ID of the order.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
