Skip to content
Developer

Calendar

Open data6 EndpointsOpenData / Calendar

Create all missing calendar entries of the given year

POST/api/opendata/calendar_generate/{entityType}/{year}

Used by the UI to fill an empty calendar. The requested year is created directly so the user sees the result immediately, the remaining years are created by the background command.

Path parameters

entityTyperequiredstring
yearrequiredstring

Responses

200Creates the missing calendar days and returns a small summary

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_generate/42/42

Returns a list of regions that can be selected for the public holiday import entries.

GET/api/opendata/calendar_holiday_regions

Responses

200Returns the selectable holiday regions

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_holiday_regions

Import the public holidays of the given year and region into the calendar

POST/api/opendata/calendar_holiday_import/{entityType}/{year}

The work time settings and - for the main calendar - the event settings that should be applied to every holiday are part of the request.

Path parameters

entityTyperequiredstring
yearrequiredstring

Responses

200Imports the public holidays and returns the changed days

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_holiday_import/42/42

Set the working time flags of every day in a date range (U09: school holiday periods)

POST/api/opendata/calendar_range/{entityType}

Missing days are created. Days that already carry flags are only replaced when overwrite is true (default). clear = true removes the flags of the range instead.

Path parameters

entityTyperequiredstring

Responses

200Updates the days of the range and returns a small summary

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_range/42

Set the working time flags of every day in a date range (U09: school holiday periods)

PUT/api/opendata/calendar_range/{entityType}

Missing days are created. Days that already carry flags are only replaced when overwrite is true (default). clear = true removes the flags of the range instead.

Path parameters

entityTyperequiredstring

Responses

200Updates the days of the range and returns a small summary

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_range/42

Set the working time flags of every day in a date range (U09: school holiday periods)

PATCH/api/opendata/calendar_range/{entityType}

Missing days are created. Days that already carry flags are only replaced when overwrite is true (default). clear = true removes the flags of the range instead.

Path parameters

entityTyperequiredstring

Responses

200Updates the days of the range and returns a small summary

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/opendata/calendar_range/42