Rulebase Holiday Calendars API

The Holiday Calendars API from Rulebase — 6 operation(s) for holiday calendars.

Operations 9

GET /holiday-calendars Get holiday calendars #
POST /holiday-calendars Create holiday calendars #
GET /holiday-calendars/options Get holiday calendars options #
GET /holiday-calendars/preview Get holiday calendars preview #
PATCH /holiday-calendars/{id} Update holiday calendars by id #
DELETE /holiday-calendars/{id} Delete holiday calendars by id #
POST /holiday-calendars/{id}/holidays Create holiday calendars by id holidays #
PATCH /holiday-calendars/{calendarId}/holidays/{holidayId} Update holiday calendars by calendar id holidays by holiday id #
DELETE /holiday-calendars/{calendarId}/holidays/{holidayId} Delete holiday calendars by calendar id holidays by holiday id #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rulebase:rulebase-holiday-calendars-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rulebase-holiday-calendars-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rulebase API2 Holiday Calendars API
  version: 0.0.1
tags:
- name: Holiday Calendars
paths:
  /holiday-calendars:
    get:
      responses:
        '200':
          description: List holiday calendars
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        countryCode:
                          type: string
                        subdivisionCode:
                          type: string
                          nullable: true
                        linkedWorkScheduleIds:
                          type: array
                          items:
                            type: string
                        holidays:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              date:
                                type: string
                                pattern: ^\d{4}-\d{2}-\d{2}$
                              name:
                                type: string
                              source:
                                type: string
                                enum:
                                - imported
                                - manual
                              createdAt:
                                type: string
                              updatedAt:
                                type: string
                            required:
                            - id
                            - date
                            - name
                            - source
                            - createdAt
                            - updatedAt
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                      required:
                      - id
                      - name
                      - countryCode
                      - subdivisionCode
                      - linkedWorkScheduleIds
                      - holidays
                      - createdAt
                      - updatedAt
                required:
                - data
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Get holiday calendars
      x-summary-source: derived
      operationId: getHolidayCalendars
      x-operation-id-source: derived
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                countryCode:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                subdivisionCode:
                  type: string
                  nullable: true
                  minLength: 1
              required:
              - name
              - countryCode
      responses:
        '201':
          description: Holiday calendar created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      countryCode:
                        type: string
                      subdivisionCode:
                        type: string
                        nullable: true
                      linkedWorkScheduleIds:
                        type: array
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            date:
                              type: string
                              pattern: ^\d{4}-\d{2}-\d{2}$
                            name:
                              type: string
                            source:
                              type: string
                              enum:
                              - imported
                              - manual
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                          - id
                          - date
                          - name
                          - source
                          - createdAt
                          - updatedAt
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - name
                    - countryCode
                    - subdivisionCode
                    - linkedWorkScheduleIds
                    - holidays
                    - createdAt
                    - updatedAt
                required:
                - data
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Create holiday calendars
      x-summary-source: derived
      operationId: postHolidayCalendars
      x-operation-id-source: derived
  /holiday-calendars/options:
    get:
      responses:
        '200':
          description: Holiday calendar country and subdivision options
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      countries:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                            name:
                              type: string
                            subdivisions:
                              type: array
                              items:
                                type: object
                                properties:
                                  code:
                                    type: string
                                  name:
                                    type: string
                                required:
                                - code
                                - name
                          required:
                          - code
                          - name
                          - subdivisions
                    required:
                    - countries
                required:
                - data
      tags:
      - Holiday Calendars
      summary: Get holiday calendars options
      x-summary-source: derived
      operationId: getHolidayCalendarsOptions
      x-operation-id-source: derived
  /holiday-calendars/preview:
    get:
      parameters:
      - schema:
          type: string
          pattern: ^[A-Za-z]{2}$
        required: true
        name: countryCode
        in: query
      - schema:
          type: string
          minLength: 1
        required: false
        name: subdivisionCode
        in: query
      - schema:
          type: integer
          minimum: 1900
          maximum: 2200
        required: false
        name: year
        in: query
      responses:
        '200':
          description: Preview imported public holidays
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      year:
                        type: number
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            name:
                              type: string
                          required:
                          - date
                          - name
                    required:
                    - year
                    - holidays
                required:
                - data
      tags:
      - Holiday Calendars
      summary: Get holiday calendars preview
      x-summary-source: derived
      operationId: getHolidayCalendarsPreview
      x-operation-id-source: derived
  /holiday-calendars/{id}:
    patch:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
              required:
              - name
      responses:
        '200':
          description: Holiday calendar updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      countryCode:
                        type: string
                      subdivisionCode:
                        type: string
                        nullable: true
                      linkedWorkScheduleIds:
                        type: array
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            date:
                              type: string
                              pattern: ^\d{4}-\d{2}-\d{2}$
                            name:
                              type: string
                            source:
                              type: string
                              enum:
                              - imported
                              - manual
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                          - id
                          - date
                          - name
                          - source
                          - createdAt
                          - updatedAt
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - name
                    - countryCode
                    - subdivisionCode
                    - linkedWorkScheduleIds
                    - holidays
                    - createdAt
                    - updatedAt
                required:
                - data
        '404':
          description: Holiday calendar not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Update holiday calendars by id
      x-summary-source: derived
      operationId: patchHolidayCalendarsById
      x-operation-id-source: derived
    delete:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '204':
          description: Holiday calendar discarded
        '404':
          description: Holiday calendar not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Delete holiday calendars by id
      x-summary-source: derived
      operationId: deleteHolidayCalendarsById
      x-operation-id-source: derived
  /holiday-calendars/{id}/holidays:
    post:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                name:
                  type: string
                  minLength: 1
              required:
              - date
              - name
      responses:
        '201':
          description: Manual holiday created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      countryCode:
                        type: string
                      subdivisionCode:
                        type: string
                        nullable: true
                      linkedWorkScheduleIds:
                        type: array
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            date:
                              type: string
                              pattern: ^\d{4}-\d{2}-\d{2}$
                            name:
                              type: string
                            source:
                              type: string
                              enum:
                              - imported
                              - manual
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                          - id
                          - date
                          - name
                          - source
                          - createdAt
                          - updatedAt
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - name
                    - countryCode
                    - subdivisionCode
                    - linkedWorkScheduleIds
                    - holidays
                    - createdAt
                    - updatedAt
                required:
                - data
        '404':
          description: Holiday calendar not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Create holiday calendars by id holidays
      x-summary-source: derived
      operationId: postHolidayCalendarsByIdHolidays
      x-operation-id-source: derived
  /holiday-calendars/{calendarId}/holidays/{holidayId}:
    patch:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: calendarId
        in: path
      - schema:
          type: string
          format: uuid
        required: true
        name: holidayId
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
              required:
              - name
      responses:
        '200':
          description: Holiday updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      countryCode:
                        type: string
                      subdivisionCode:
                        type: string
                        nullable: true
                      linkedWorkScheduleIds:
                        type: array
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            date:
                              type: string
                              pattern: ^\d{4}-\d{2}-\d{2}$
                            name:
                              type: string
                            source:
                              type: string
                              enum:
                              - imported
                              - manual
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                          - id
                          - date
                          - name
                          - source
                          - createdAt
                          - updatedAt
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - name
                    - countryCode
                    - subdivisionCode
                    - linkedWorkScheduleIds
                    - holidays
                    - createdAt
                    - updatedAt
                required:
                - data
        '404':
          description: Holiday not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Update holiday calendars by calendar id holidays by holiday id
      x-summary-source: derived
      operationId: patchHolidayCalendarsByCalendarIdHolidaysByHolidayId
      x-operation-id-source: derived
    delete:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: calendarId
        in: path
      - schema:
          type: string
          format: uuid
        required: true
        name: holidayId
        in: path
      responses:
        '200':
          description: Holiday discarded
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      countryCode:
                        type: string
                      subdivisionCode:
                        type: string
                        nullable: true
                      linkedWorkScheduleIds:
                        type: array
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            date:
                              type: string
                              pattern: ^\d{4}-\d{2}-\d{2}$
                            name:
                              type: string
                            source:
                              type: string
                              enum:
                              - imported
                              - manual
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                          - id
                          - date
                          - name
                          - source
                          - createdAt
                          - updatedAt
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - name
                    - countryCode
                    - subdivisionCode
                    - linkedWorkScheduleIds
                    - holidays
                    - createdAt
                    - updatedAt
                required:
                - data
        '404':
          description: Holiday not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Holiday Calendars
      summary: Delete holiday calendars by calendar id holidays by holiday id
      x-summary-source: derived
      operationId: deleteHolidayCalendarsByCalendarIdHolidaysByHolidayId
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Rulebase organization API key