OfficialHoliday
Create an official holiday
POST
http://localhost:3000/api/official-holiday
Body
application/json
tenantobjecttenantIdstringorganizationobjectrequiredorganizationIdstringrequiredsentTostringdeletedAtstring<date-time>Example
2018-11-21T06:20:32.232ZcreatedAtstring<date-time>The creation timestamp of the entity.
Example
2018-11-21T06:20:32.232ZupdatedAtstring<date-time>The last update timestamp of the entity.
Example
2018-11-21T06:20:32.232ZidstringisActivebooleantrueisArchivedbooleanfalsearchivedAtstring<date-time>Example
2018-11-21T06:20:32.232ZnamestringrequiredDisplay name of the holiday, e.g. "Christmas Day"
countryCodestringrequiredISO 3166-1 alpha-2 country code, e.g. "US", "DE"
datestring<date-time>requiredThe holiday date, or the first day of a multi-day holiday
endDatestring<date-time>Last day of a multi-day holiday
isRecurringbooleanWhether 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