Organisations

Replace a DateSet

Replaces the name and dates of a DateSet with the supplied values. Functionally equivalent to the PATCH route — both end up routed to the same handler — exposed as PUT for legacy API clients that prefer the verb's "full replacement" semantics. Any field omitted from the body is treated as unchanged, matching the PATCH behaviour.

put/shop/organisations/{organisationId}/date-sets/{dateSetId}

Request body

namestring

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.

Example request

{
  "name": "Bank holidays"
}

Response

The date set was successfully updated.

Example response

{
  "data": {
    "name": "Bank holidays"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.