---
title: "Update a DateSet"
method: PATCH
path: "/shop/organisations/{organisationId}/date-sets/{dateSetId}"
tags: ["Organisations"]
---

# Update a DateSet

`PATCH /shop/organisations/{organisationId}/date-sets/{dateSetId}`

Use this endpoint to update a `DateSet`.

## Request body

- object
  - `dates` object[] — The dates in the date set.
    - `date` string, date, required
    - `label` string, required
  - `name` string — Label for the date set, shown wherever the set is referenced in the admin UI (date pickers, coupon validity, opening exceptions). Use a meaningful label like "Bank holidays" or "Closed for refurb". 1-120 characters.

## Response `201`

The date set was successfully updated.

- object
  - `data` DateSet, required
    - `id` string, object-id, required — The ID of the date set.
    - `dates` object[], required — The dates in the date set.
      - `date` string, date, required
      - `label` string, required
    - `name` string, required — Label for the date set, shown wherever the set is referenced in the admin UI (date pickers, coupon validity, opening exceptions). Use a meaningful label like "Bank holidays" or "Closed for refurb". 1-120 characters.
    - `organisation_id` string, uuid, required — The ID of the organisation the date set belongs to.

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