---
title: "Add a single label to an order"
method: PUT
path: "/shop/orders/{orderId}/labels/{labelId}"
tags: ["Orders"]
---

# Add a single label to an order

`PUT /shop/orders/{orderId}/labels/{labelId}`

Attaches the given `Label` to the order. If the label is already
attached the request is a no-op and the endpoint still returns
`201`. The label must belong to the same site as the order — a
`422` is returned otherwise. Use this endpoint when you want to
incrementally add a label without replacing the order's full
label set (use `POST /shop/orders/{orderId}/labels` for the
replace-all behaviour).

## Response `201`

The label that was attached to the order.

- object
  - `data` SchemasLabel, required
    - `id` string, object-id, required — The ID of the label.
    - `color` string, required — The color of the label.
    - `name` string, required — The name of the label.
    - `order_id` string, object-id, required

## 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)
