Smenso icon

Smenso

Interact with the smenso project management API

Reporting (Export) → Get Absences

AI-generated

Summary

Retrieve absence records filtered by mode and optional expression, and export them in JSON or CSV format.

Inputs

  • Format — Select output format: JSON (parsed data) or CSV (raw CSV text). Defaults to JSON.
  • Language — Specify the language code (e.g. 'de-DE') for the query. Defaults to 'de-DE'.
  • Timezone (IANA) — Provide the IANA timezone string for date/time values (e.g. 'Europe/Berlin'). Defaults to 'Europe/Berlin'.
  • Column Headers (comma-separated) — Optional comma-separated list of column headers to include in the export.
  • Mode — Choose whether to retrieve all absences ('all') or only your own records ('my'). Defaults to 'all'.
  • Filter — Optional filter expression string to narrow down the absence records.

Output shape

a list of absence records, either parsed as JSON objects (if Format is JSON) or as CSV-formatted text (if Format is CSV).

The operation returns all absence records matching the specified mode and filter. The records include fields according to the selected headers if provided. When CSV format is chosen, the response is raw CSV text; when JSON is chosen, it returns structured data arrays.

Examples

Example 1: Export all absences in JSON format including only specific columns

Set Format to JSON, Mode to 'all', and specify desired columns in Column Headers.

Example 2: Export your own absences as CSV with no filter

Set Format to CSV, Mode to 'my', and leave Filter empty.

Links

Discussion