OfficialHoliday

Create an official holiday

POST
http://localhost:3000/api/official-holiday

Body

application/json
tenantobject
tenantIdstring
organizationobjectrequired
organizationIdstringrequired
sentTostring
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
namestringrequired

Display name of the holiday, e.g. "Christmas Day"

countryCodestringrequired

ISO 3166-1 alpha-2 country code, e.g. "US", "DE"

datestring<date-time>required

The holiday date, or the first day of a multi-day holiday

endDatestring<date-time>

Last day of a multi-day holiday

isRecurringboolean

Whether the holiday falls on the same date every year

Response

201Created

The holiday has been created.

400Bad Request

Invalid input, check the response body for details

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey