For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a day in the holiday calendar

Rename a day in the holiday calendar, or say whether it counts as non-working. The date of a day cannot be changed: a day with an empty countryCode — the tenant's own — that sits on the wrong date is deleted and added again where it belongs, and a day carrying a countryCode, which cannot be deleted, is deactivated instead. Clearing active is what the tenant does with a public holiday their stores work through. The day stops counting as non-working from then on: whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone. Setting it again brings the day back. Renaming a public holiday is allowed and changes nothing but the label.

Required permissions: SERVICE_CONFIG

put
/tenants/{tenantUid}/serviceorders/holidays/{serviceHolidayUid}
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
serviceHolidayUidstringRequired

Reference to a day in the tenant's service holiday calendar

Pattern: ^[A-Za-z0-9-_]+
Body

The day as it should read from now on. Only the name and whether it counts can be changed — the date of a day is fixed, and a day on the wrong date is deleted and added again where it belongs, or, where it carries a countryCode and cannot be deleted, deactivated instead. Clearing active is what the tenant does with a public holiday their stores work through: the day stops counting as non-working, and whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone.

namestringRequired

What the day is called. Renaming a public holiday is allowed and changes nothing but the label.

activebooleanOptional

Whether the day counts as non-working. Left out, the day keeps what it has.

Responses
200

Example response

application/json

One day the tenant's stores do not work — a public holiday out of a country's calendar, or a closure day the tenant added itself. Together the days of a year make up the tenant's holiday calendar. The calendar is what the business-day math runs on: its active days that apply to a store are not among the store's working days, which both the readyAtEstimate prefill from the expected turnaround and avgWorkOpenDays on the service order statistics count. Nothing else reads it: it closes no store, blocks no work and stops no message from going out. countryCode says which of the two a day is, and it is the only thing that says it. A day carrying a countryCode is one Flow put in the calendar from that country's public holidays: it can be renamed and deactivated, but never deleted. A day with an empty countryCode is the tenant's own, applies to every store, and can be deleted as well. A day only counts as non-working while active is true. Deactivating a public holiday is how the tenant says its stores keep that day as any other, and the day then takes no part in either calculation: whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone.

serviceHolidayUidstringRequiredPattern: ^[A-Za-z0-9-_]+
tenantUidstringRequiredPattern: ^[A-Za-z0-9-_]+
datestring · dateRequired

The day that is not worked, as a date in the tenant's timezone. ISO 8601 date format: YYYY-MM-DD, e.g. 2026-05-17.

namestringRequired

What the day is called — the name of the public holiday, or whatever the tenant called its own closure day. A public holiday Flow put in the calendar is named in its country's own language (a Norwegian day reads "Grunnlovsdag", a Swedish one "Sveriges nationaldag") until the tenant renames it.

countryCodestringRequired

The country whose public holiday calendar the day came out of, which is how the same calendar carries days that only some of the tenant's stores keep: a day applies to a store when this matches the store's countryCode. It is also what says where the day came from. A day carrying a country is one Flow put there: it can be renamed and deactivated, but never deleted. An empty string on a day the tenant added itself, which applies to every store and can be deleted as well. This is what "the days that apply to the store" means everywhere the working-day count is described.

activebooleanRequired

Whether the day counts as non-working. Clearing it means the day stops counting as non-working: whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone. It is what a public holiday the tenant works through gets instead of a deletion — a day carrying a countryCode is deactivated rather than removed.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
put/tenants/{tenantUid}/serviceorders/holidays/{serviceHolidayUid}
PUT /v2/tenants/{tenantUid}/serviceorders/holidays/{serviceHolidayUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "name": "text",
  "active": true
}
200

Example response

{
  "serviceHolidayUid": "text",
  "tenantUid": "text",
  "date": "2026-01-01",
  "name": "text",
  "countryCode": "text",
  "active": true,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "text",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedBy": "text"
}

Last updated

Was this helpful?