Holiday
The holiday resource.
Basehttps://rest.carbon.ms/holiday
GET
/holidayList holidays
Retrieve a paginated list of holidays. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/holiday
curl --request GET \
--url 'https://rest.carbon.ms/holiday?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"name": "Example",
"date": "2026-01-01",
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"year": 0,
"updatedBy": "string"
}
]GET
/holidayRetrieve a holiday
Fetch a single holiday by filtering on `id`.
Query parameters
idstringMatch on the holiday's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/holiday
curl --request GET \
--url 'https://rest.carbon.ms/holiday?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"name": "Example",
"date": "2026-01-01",
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"year": 0,
"updatedBy": "string"
}POST
/holidayCreate a holiday
Create a new holiday.
Body parameters
namestringrequireddatedaterequiredyearnumbercompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayPOSThttps://rest.carbon.ms/holiday
curl --request POST \
--url https://rest.carbon.ms/holiday \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example","date":"2026-01-01","companyId":"xyz789"}'Response
{
"id": "abc123def456",
"name": "Example",
"date": "2026-01-01",
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"year": 0,
"updatedBy": "string"
}PATCH
/holidayUpdate a holiday
Update an existing holiday, matched on `id`.
Body parameters
namestringrequireddatedaterequiredyearnumbercompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayPATCHhttps://rest.carbon.ms/holiday
curl --request PATCH \
--url 'https://rest.carbon.ms/holiday?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example"}'Response
{
"id": "abc123def456",
"name": "Example",
"date": "2026-01-01",
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"year": 0,
"updatedBy": "string"
}DELETE
/holidayDelete a holiday
Delete a holiday, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the holiday to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/holiday
curl --request DELETE \
--url 'https://rest.carbon.ms/holiday?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content