Personio

HR management and recruiting platform

developer.personio.de/reference ↗
Version
1.0
OpenAPI
3.0.0
Endpoints
29
Schemas
110
Updated
3 days ago
Hr hr recruiting management
Use this API in your AI agent

Query structured spec data via REST or MCP. Get exactly what your agent needs.

Get API Key

Server URLs

https://api.personio.de/v1

Authentication

bearer

No endpoints found for this provider.

Schemas

object Absence
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 1
    },
    "status": {
      "type": "string",
      "example": "approved"
    },
    "employee": {
      "$ref": "#/components/schemas/ShortEmployee"
    },
    "end_date": {
      "type": "string",
      "example": "2017-12-79T00:00:00+0100"
    },
    "created_at": {
      "type": "string",
      "example": "2017-01-17T10:32:18.000+01:00"
    },
    "created_by": {
      "type": "string",
      "example": "API",
      "description": "API if the origin is api, otherwise returns an admin employee's name who's account is used to create the absence"
    },
    "days_count": {
      "type": "number",
      "example": 3
    },
    "start_date": {
      "type": "string",
      "example": "2017-12-27T00:00:00.000+01:00"
    },
    "updated_at": {
      "type": "string",
      "example": "2017-01-17T10:32:18.000+01:00"
    },
    "certificate": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "example": "not-required"
        }
      }
    },
    "half_day_end": {
      "type": "boolean",
      "example": false
    },
    "time_off_type": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "TimeOffType"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "example": 1
            },
            "name": {
              "type": "string",
              "example": "Vacation"
            },
            "category": {
              "type": "string",
              "example": "offsite_work"
            }
          }
        }
      }
    },
    "half_day_start": {
      "type": "boolean",
      "example": false
    }
  }
}
object AbsenceEntitlement
{
  "type": "object",
  "required": [
    "label",
    "value"
  ],
  "properties": {
    "label": {
      "example": "Absence entitlement"
    },
    "value": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "TimeOffType"
            ],
            "type": "string"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 1
              },
              "name": {
                "example": "Paid Vacation"
              },
              "entitlement": {
                "example": 30
              }
            }
          }
        }
      }
    }
  }
}
object AbsenceOverviewAttribute
{
  "type": "object",
  "properties": {
    "end_date": {
      "type": "string",
      "format": "date",
      "example": "2022-03-03"
    },
    "data_type": {
      "enum": [
        "ABSENCE_OVERVIEW"
      ],
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "example": "2022-03-01"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "absence_123"
    },
    "duration_days": {
      "type": "string",
      "example": 2
    },
    "duration_hours": {
      "type": "string",
      "example": 5
    }
  }
}
object AbsencePeriodAttribute
{
  "type": "object",
  "properties": {
    "end_date": {
      "type": "string",
      "format": "date",
      "example": "2022-03-03"
    },
    "data_type": {
      "enum": [
        "ABSENCE_PERIOD"
      ],
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "example": "2022-03-01"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "absence_123:periods"
    },
    "half_day_at_end": {
      "type": "boolean"
    },
    "half_day_at_start": {
      "type": "boolean"
    }
  }
}
object AbsencePeriodBreakdown
{
  "type": "object",
  "required": [
    "date",
    "effective_duration"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "effective_duration": {
      "type": "integer",
      "example": 60,
      "description": "Number representing the value of duration in minutes."
    }
  }
}
object AbsencePeriodResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "required": [
            "type",
            "attributes"
          ],
          "properties": {
            "type": {
              "example": "TimeOffPeriod"
            },
            "attributes": {
              "$ref": "#/components/schemas/Absence"
            }
          }
        }
      }
    }
  ],
  "title": "Absence Periods response"
}
object AbsencePeriodsResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "type",
              "attributes"
            ],
            "properties": {
              "type": {
                "example": "TimeOffPeriod"
              },
              "attributes": {
                "$ref": "#/components/schemas/Absence"
              }
            }
          }
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "metadata": {
          "type": "object",
          "required": [
            "total_elements",
            "current_page",
            "total_pages"
          ],
          "properties": {
            "total_pages": {
              "type": "integer",
              "description": "The total number of pages distributing sets of items matching the query filters."
            },
            "current_page": {
              "type": "integer",
              "description": "Current page number containing the returned set of items matching with the query filters. The page number range is from 0 to total_pages - 1"
            },
            "total_elements": {
              "type": "integer",
              "description": "The total number of items matching the query filters."
            }
          }
        }
      }
    }
  ],
  "title": "List All Absence Periods response"
}
object AbsenceType
{
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "example": "61fe126b-a7b3-449a-b5ee-3865a6fcc546"
    },
    "name": {
      "type": "string",
      "example": "Absence Type Name"
    },
    "time_off_type_id": {
      "type": "integer",
      "example": 1
    }
  }
}
object AbsencesAddAbsenceDataResponse
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/AbsencePeriodResponse"
    }
  }
}
object AbsencesAddAbsencePeriodsDataResponse
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/HourlyAbsencePeriodResponse"
    }
  }
}
object AbsencesListTimeOffTypesResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/TimeOffTypeResource"
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object Attendance
{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "break": {
      "type": "integer",
      "example": 60
    },
    "status": {
      "enum": [
        "confirmed",
        "pending",
        "rejected"
      ],
      "type": "string"
    },
    "comment": {
      "type": "string",
      "example": "I was productive as hell"
    },
    "project": {
      "type": "object",
      "nullable": true,
      "properties": {
        "id": {
          "type": "integer",
          "example": 5
        },
        "type": {
          "type": "string",
          "example": "Project"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "example": "A project name"
            },
            "active": {
              "type": "boolean",
              "example": true
            }
          }
        }
      }
    },
    "employee": {
      "type": "integer",
      "example": 1
    },
    "end_time": {
      "type": "string",
      "example": "17:00",
      "pattern": "^\\d\\d:\\d\\d$",
      "nullable": true
    },
    "is_holiday": {
      "type": "boolean",
      "example": false
    },
    "start_time": {
      "type": "string",
      "example": "08:00",
      "pattern": "^\\d\\d:\\d\\d$"
    },
    "is_on_time_off": {
      "type": "boolean",
      "example": false
    }
  }
}
object Attendance404ErrorResponse
{
  "type": "object",
  "title": "404 [Not Found] Attendance Error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 404
        },
        "message": {
          "example": "The attendance period was not found."
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object AttendanceCreateRequest
{
  "type": "object",
  "properties": {
    "attendances": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "employee",
          "date",
          "start_time",
          "break"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "break": {
            "type": "integer",
            "example": 60,
            "minimum": 0
          },
          "comment": {
            "type": "string",
            "example": "I was productive as hell",
            "nullable": true
          },
          "employee": {
            "type": "integer",
            "example": 1,
            "minimum": 1
          },
          "end_time": {
            "type": "string",
            "example": "17:00",
            "pattern": "^\\d\\d:\\d\\d$",
            "nullable": true,
            "description": "Format: hh:mm"
          },
          "project_id": {
            "type": "integer",
            "example": 5,
            "nullable": true
          },
          "start_time": {
            "type": "string",
            "example": "08:00",
            "pattern": "^\\d\\d:\\d\\d$",
            "description": "Format: hh:mm"
          }
        }
      },
      "minItems": 1
    },
    "skip_approval": {
      "type": "boolean",
      "description": "Optional, default value is true. If set to false, the approval status of the attendance period will be \"pending\" if an approval rule is set for the attendances type. The respective approval flow will be triggered."
    }
  }
}
object AttendanceCreateUpdate400ErrorResponse
{
  "type": "object",
  "title": "400 [Bad Request] Attendances Creation Error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 400
        },
        "message": {
          "type": "string",
          "example": "Error when trying to insert Attendances periods rows"
        },
        "detailed_message": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": null,
                "nullable": true
              },
              "date": {
                "type": "string",
                "example": "2017-01-01T00:00:00.000Z"
              },
              "break": {
                "type": "integer",
                "example": 60
              },
              "comment": {
                "type": "string",
                "example": "Optional Test Comment"
              },
              "success": {
                "type": "boolean",
                "example": false
              },
              "employee": {
                "type": "integer",
                "example": 1234
              },
              "end_time": {
                "type": "string",
                "example": "18:00"
              },
              "error_msg": {
                "type": "string",
                "example": "Existing overlapping attendances periods"
              },
              "project_id": {
                "type": "integer",
                "example": null,
                "nullable": true
              },
              "start_time": {
                "type": "string",
                "example": "09:00"
              }
            }
          }
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object AttendanceDelete400ErrorResponse
{
  "type": "object",
  "title": "400 [Bad Request] Attendance Error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 400
        },
        "message": {
          "example": "Bad Request"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object AttendancePeriodsResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "type",
              "attributes"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "example": 1
              },
              "type": {
                "example": "AttendancePeriod"
              },
              "attributes": {
                "$ref": "#/components/schemas/Attendance"
              }
            }
          }
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "metadata": {
          "type": "object",
          "required": [
            "total_elements",
            "current_page",
            "total_pages"
          ],
          "properties": {
            "total_pages": {
              "type": "integer",
              "description": "The total number of pages distributing sets of items matching the query filters."
            },
            "current_page": {
              "type": "integer",
              "description": "Current page number containing the returned set of items matching with the query filters. The page number range is from 0 to total_pages - 1"
            },
            "total_elements": {
              "type": "integer",
              "description": "The total number of items matching the query filters."
            }
          }
        }
      }
    }
  ],
  "title": "List All Attendance Periods response"
}
object AttendanceProject
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 1
    },
    "type": {
      "type": "string",
      "example": "Project"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "example": "Project name"
        },
        "active": {
          "type": "boolean",
          "example": true,
          "description": "Marks the availability of the project. When a new project is created, it's set by default to false."
        }
      }
    }
  }
}
object AttendanceUpdateRequest
{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "break": {
      "type": "integer",
      "example": 60,
      "minimum": 0
    },
    "comment": {
      "type": "string",
      "example": "I was productive as hell",
      "nullable": true
    },
    "end_time": {
      "type": "string",
      "example": "17:00",
      "pattern": "^\\d\\d:\\d\\d$",
      "nullable": true,
      "description": "Format: hh:mm"
    },
    "project_id": {
      "type": "integer",
      "example": 5,
      "nullable": true
    },
    "start_time": {
      "type": "string",
      "example": "08:00",
      "pattern": "^\\d\\d:\\d\\d$",
      "description": "Format: hh:mm"
    },
    "skip_approval": {
      "type": "boolean",
      "description": "Optional, default value is true. If set to false, the approval status of the attendance period will be \"pending\" if an approval rule is set for the attendances type. The respective approval flow will be triggered."
    }
  }
}
object CompensationAttribute
{
  "type": "object",
  "properties": {
    "amount": {
      "type": "string",
      "example": 12.2
    },
    "data_type": {
      "enum": [
        "COMPENSATION"
      ],
      "type": "string"
    },
    "bonus_type": {
      "type": "string",
      "example": "MAX"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "ABCXXX"
    },
    "currency_code": {
      "type": "string",
      "example": "USD"
    },
    "overtime_hours": {
      "type": "string",
      "example": 12
    },
    "currency_symbol": {
      "type": "string",
      "example": "$"
    }
  }
}
object CostCenter
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "example": "Test Center"
    },
    "weight": {
      "type": "string",
      "example": "100%"
    },
    "cost_center_id": {
      "type": "string",
      "example": 1
    }
  }
}
object CostCenterAttribute
{
  "type": "object",
  "properties": {
    "data_type": {
      "enum": [
        "COST_CENTER"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "cost_center"
    },
    "cost_centers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CostCenter"
      }
    }
  }
}
object CostCenterHistoricalAttribute
{
  "type": "object",
  "properties": {
    "data_type": {
      "enum": [
        "COST_CENTER"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "cost_center"
    },
    "cost_centers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CostCenter"
      }
    },
    "effective_date": {
      "type": "string",
      "example": "2021-01-01T00:00:00.000Z"
    }
  }
}
object CostCenters
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "Cost center"
    },
    "value": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "example": "CostCenter"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number",
                "example": 1
              },
              "name": {
                "example": "Cost Center One"
              },
              "percentage": {
                "type": "number",
                "example": 50
              }
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "cost_center"
    }
  }
}
object CreateAbsencePeriodRequest
{
  "type": "object",
  "title": "Create Absence periods with **time unit** set to **hours**",
  "required": [
    "employee_id",
    "time_off_type_id",
    "start_date",
    "end_date"
  ],
  "properties": {
    "comment": {
      "type": "string",
      "example": "Some Comment",
      "description": "Optional comment"
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "description": "Absence end date. Format: yyyy-mm-dd"
    },
    "end_time": {
      "type": "string",
      "format": "date",
      "example": "15:00",
      "description": "Absence end time. Format: HH:mm (hours and minutes) and only required if the start_date and end_date are the same (partial-day absence)"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "description": "Absence start date. Format: yyyy-mm-dd"
    },
    "start_time": {
      "type": "string",
      "format": "date",
      "example": "03:00",
      "description": "Absence start time. Format: HH:mm (hours and minutes) and only required if the start_date and end_date are the same (partial-day absence)"
    },
    "employee_id": {
      "type": "integer",
      "example": 10735,
      "description": "Employee identifier"
    },
    "half_day_end": {
      "type": "boolean",
      "example": false,
      "description": "Whether the end date is a half-day off, only considered if the start_date and end_date are not the same (more than one day absence)"
    },
    "skip_approval": {
      "type": "boolean",
      "example": false,
      "description": "Optional, default value is true. If set to false, the approval status of the absence request will be \"pending\" if an approval rule is set for the absence type in Personio. The respective approval flow will be triggered."
    },
    "half_day_start": {
      "type": "boolean",
      "example": false,
      "description": "Whether the start date is a half-day off, only considered if the start_date and end_date are not the same (more than one day absence)"
    },
    "time_off_type_id": {
      "type": "integer",
      "example": 10735,
      "description": "Time-off type identifier"
    }
  }
}
object CreateTimeOffPeriodRequest
{
  "type": "object",
  "title": "Create time-off periods",
  "required": [
    "employee_id",
    "time_off_type_id",
    "start_date",
    "end_date",
    "half_day_start",
    "half_day_end"
  ],
  "properties": {
    "comment": {
      "type": "string",
      "example": "Some Comment",
      "description": "Optional comment"
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "description": "Absence end date. Format: yyyy-mm-dd"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "description": "Absence start date. Format: yyyy-mm-dd"
    },
    "employee_id": {
      "type": "integer",
      "description": "Employee identifier"
    },
    "half_day_end": {
      "type": "boolean",
      "example": false,
      "description": "Whether the end date is a half-day off."
    },
    "skip_approval": {
      "type": "boolean",
      "example": false,
      "description": "Optional, default value is true. If set to false, the approval status of the absence request will be \"pending\" if an approval rule is set for the absence type in Personio. The respective approval flow will be triggered."
    },
    "half_day_start": {
      "type": "boolean",
      "example": false,
      "description": "Whether the start date is a half-day off."
    },
    "time_off_type_id": {
      "type": "integer",
      "description": "Time-off type identifier"
    }
  }
}
object CustomReportsErrorResponse
{
  "type": "object",
  "properties": {
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ErrorDetails"
      }
    },
    "status": {
      "type": "integer",
      "example": 500
    },
    "trace_id": {
      "type": "string",
      "example": "ABCXXX"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "example": "2020-01-01T00:00:00Z"
    }
  }
}
object DefaultAttribute
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "example": "Robert"
    },
    "data_type": {
      "enum": [
        "TEXT"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "first_name"
    }
  }
}
object DefaultHistoricalAttribute
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "example": "Robert"
    },
    "data_type": {
      "enum": [
        "TEXT"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "first_name"
    },
    "effective_date": {
      "type": "string",
      "example": "2021-01-01T00:00:00.000Z"
    }
  }
}
object DeletedAbsenceResponse
{
  "type": "object",
  "title": "Default response object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "message": {
          "example": "The absence period was deleted."
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object DeletedAttendanceResponse
{
  "type": "object",
  "title": "Default response object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "message": {
          "example": "The attendance period was deleted"
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object Department
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "Department"
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "Department"
        },
        "attributes": {
          "type": "object",
          "required": [
            "id",
            "name"
          ],
          "properties": {
            "id": {
              "type": "integer",
              "example": 1
            },
            "name": {
              "type": "string",
              "example": "Marketing"
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "department"
    }
  }
}
object DocumentCategoriesResponse
{
  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/DocumentCategory"
          }
        },
        "success": {
          "type": "boolean",
          "example": true
        }
      }
    }
  ]
}
object DocumentCategory
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 1
    },
    "type": {
      "type": "string",
      "example": "DocumentCategory"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "example": "Certificates of employment"
        }
      }
    }
  }
}
object DocumentEmployeeResponseObject
{
  "type": "object",
  "properties": {
    "id": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "standard"
        },
        "label": {
          "type": "string",
          "example": "ID"
        },
        "value": {
          "type": "integer",
          "example": 1
        },
        "universal_id": {
          "type": "string",
          "example": "id"
        }
      }
    },
    "email": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "standard"
        },
        "label": {
          "type": "string",
          "example": "Email"
        },
        "value": {
          "type": "string",
          "example": "michaeldou@demo.de"
        },
        "universal_id": {
          "type": "string",
          "example": "email"
        }
      }
    },
    "last_name": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "standard"
        },
        "label": {
          "type": "string",
          "example": "Last name"
        },
        "value": {
          "type": "string",
          "example": "Dou"
        },
        "universal_id": {
          "type": "string",
          "example": "last_name"
        }
      }
    },
    "first_name": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "standard"
        },
        "label": {
          "type": "string",
          "example": "First name"
        },
        "value": {
          "type": "string",
          "example": "Michael"
        },
        "universal_id": {
          "type": "string",
          "example": "first_name"
        }
      }
    }
  }
}
object DocumentUploadFailedWithBadDocumentCategoryResponse
{
  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "integer",
              "example": 0
            },
            "message": {
              "type": "string",
              "example": "No query results for model [DocumentCategory] 1"
            }
          }
        },
        "success": {
          "type": "boolean",
          "example": false
        }
      }
    }
  ]
}
object DocumentUploadFailedWithUnsupportedFileTypeResponse
{
  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "integer",
              "example": 0
            },
            "message": {
              "type": "string",
              "example": "The given data was invalid."
            },
            "error_data": {
              "type": "object",
              "properties": {
                "file": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "The file must be a file of type: pdf, docx, doc, jpg, zip, png, txt, jpeg, odt, xlsx, rtf, htm, xls, p7s, pptx, pages, rar, ppt, gif, tif, html, msg, asc, tiff, wps, bmp, 7z, csv, ics, vcf, dotx, numbers, eps, gz, ods, otf, odp, odg, rtfd, txz, webarchive, xml, xps, md, fax."
                  }
                }
              }
            }
          }
        },
        "success": {
          "type": "boolean",
          "example": false
        }
      }
    }
  ]
}
object DocumentUploadRequest
{
  "type": "object",
  "required": [
    "title",
    "employee_id",
    "category_id",
    "file"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "date",
      "description": "Optional date can be added to the uploaded document. Must follow the format: Y-m-d"
    },
    "file": {
      "type": "string",
      "format": "binary",
      "description": "The document that shall be uploaded to an employees profile. Maximum file size is 30MB."
    },
    "title": {
      "type": "string",
      "description": "Title of the document. Maximum length is 255 characters."
    },
    "comment": {
      "type": "string",
      "description": "Optional comment that can be added to the uploaded document."
    },
    "category_id": {
      "type": "integer",
      "description": "Document Category identifier"
    },
    "employee_id": {
      "type": "integer",
      "description": "Employee identifier"
    }
  }
}
object DocumentUploadSuccessResponse
{
  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "example": 1
            },
            "type": {
              "type": "string",
              "example": "Document"
            },
            "attributes": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "example": "2022-01-01"
                },
                "title": {
                  "type": "string",
                  "example": "Document Title"
                },
                "comment": {
                  "type": "string",
                  "example": "Optional Test Comment"
                },
                "employee": {
                  "$ref": "#/components/schemas/DocumentEmployeeResponseObject"
                },
                "category_id": {
                  "$ref": "#/components/schemas/DocumentCategory"
                }
              }
            }
          }
        },
        "success": {
          "type": "boolean",
          "example": true
        }
      }
    }
  ]
}
object DurationAttribute
{
  "type": "object",
  "properties": {
    "duration": {
      "type": "integer",
      "example": 10
    },
    "data_type": {
      "enum": [
        "DURATION"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "attendance_contractual_target_hours"
    }
  }
}
object DurationHistoricalAttribute
{
  "type": "object",
  "properties": {
    "duration": {
      "type": "integer",
      "example": 10
    },
    "data_type": {
      "enum": [
        "DURATION"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "attendance_contractual_target_hours"
    },
    "effective_date": {
      "type": "string",
      "example": "2021-01-01T00:00:00.000Z"
    }
  }
}
object Employee
{
  "type": "object",
  "properties": {
    "id": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "ID"
        },
        "value": {
          "example": 1
        },
        "universal_id": {
          "example": "id"
        }
      }
    },
    "team": {
      "$ref": "#/components/schemas/Team"
    },
    "email": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Email"
        },
        "value": {
          "example": "michael.dou@personio.de"
        },
        "universal_id": {
          "example": "email"
        }
      }
    },
    "gender": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Gender"
        },
        "value": {
          "example": "male"
        },
        "universal_id": {
          "example": "gender"
        }
      }
    },
    "office": {
      "$ref": "#/components/schemas/Office"
    },
    "status": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Status"
        },
        "value": {
          "example": "active"
        },
        "universal_id": {
          "example": "status"
        }
      }
    },
    "position": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Position"
        },
        "value": {
          "example": "Online Marketing Specialist"
        },
        "universal_id": {
          "example": "position"
        }
      }
    },
    "hire_date": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Hire date"
        },
        "value": {
          "example": "2012-02-01T00:00:00.000+01:00"
        },
        "universal_id": {
          "example": "hire_date"
        }
      }
    },
    "last_name": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Last name"
        },
        "value": {
          "example": "Dou"
        },
        "universal_id": {
          "example": "last_name"
        }
      }
    },
    "created_at": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Created at"
        },
        "value": {
          "example": "2018-02-01T00:00:00.000+01:00"
        },
        "universal_id": {
          "example": "created_at"
        }
      }
    },
    "department": {
      "$ref": "#/components/schemas/Department"
    },
    "first_name": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "First name"
        },
        "value": {
          "example": "Michael"
        },
        "universal_id": {
          "example": "first_name"
        }
      }
    },
    "fix_salary": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Fix salary"
        },
        "value": {
          "example": 4000
        },
        "currency": {
          "type": "string",
          "example": "EUR"
        },
        "universal_id": {
          "example": "fix_salary"
        }
      }
    },
    "subcompany": {
      "$ref": "#/components/schemas/Office"
    },
    "supervisor": {
      "$ref": "#/components/schemas/Supervisor"
    },
    "cost_centers": {
      "$ref": "#/components/schemas/CostCenters"
    },
    "dynamic_21827": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum",
          "description": "The type of the field."
        },
        "label": {
          "example": "IBAN"
        },
        "value": {
          "example": "DE98 8989 9898 0000 8989 00"
        },
        "universal_id": {
          "example": "iban"
        }
      }
    },
    "hourly_salary": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Hourly salary"
        },
        "value": {
          "example": 0
        },
        "currency": {
          "type": "string",
          "example": "EUR"
        },
        "universal_id": {
          "example": "hourly_salary"
        }
      }
    },
    "work_schedule": {
      "$ref": "#/components/schemas/WorkSchedule"
    },
    "preferred_name": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Name (preferred)"
        },
        "value": {
          "example": "Michael Dou"
        },
        "universal_id": {
          "example": "preferred_name"
        }
      }
    },
    "employment_type": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Employment type"
        },
        "value": {
          "example": "internal"
        },
        "universal_id": {
          "example": "employment_type"
        }
      }
    },
    "profile_picture": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Profile Picture"
        },
        "value": {
          "example": "http://api.dev.personio.de/v1/company/employees/1/profile-picture"
        },
        "universal_id": {
          "example": "profile_picture"
        }
      }
    },
    "holiday_calendar": {
      "$ref": "#/components/schemas/HolidayCalendar"
    },
    "last_modified_at": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Last modified"
        },
        "value": {
          "example": "2020-11-18T17:33:55+01:00"
        },
        "universal_id": {
          "example": "last_modified_at"
        }
      }
    },
    "last_working_day": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Last day of work"
        },
        "value": {
          "example": null
        },
        "universal_id": {
          "example": "last_working_day"
        }
      }
    },
    "termination_date": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Termonation date"
        },
        "value": {
          "example": "2020-02-01T00:00:00.000+01:00"
        },
        "universal_id": {
          "example": "termination_date"
        }
      }
    },
    "termination_type": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Termonation type"
        },
        "value": {
          "example": null
        },
        "universal_id": {
          "example": "termination_type"
        }
      }
    },
    "contract_end_date": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Contact end date"
        },
        "value": {
          "example": "2020-02-01T00:00:00.000+01:00"
        },
        "universal_id": {
          "example": "contract_end_date"
        }
      }
    },
    "termination_reason": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Termonation reason"
        },
        "value": {
          "example": null
        },
        "universal_id": {
          "example": "termination_reason"
        }
      }
    },
    "absence_entitlement": {
      "$ref": "#/components/schemas/AbsenceEntitlement"
    },
    "fix_salary_interval": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Salary interval"
        },
        "value": {
          "example": "monthly"
        },
        "universal_id": {
          "example": "fix_salary_interval"
        }
      }
    },
    "probation_period_end": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Probation period end"
        },
        "value": {
          "example": "2020-02-01T00:00:00.000+01:00"
        },
        "universal_id": {
          "example": "probation_period_end"
        }
      }
    },
    "vacation_day_balance": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Vacation day balance"
        },
        "value": {
          "example": 20.5
        },
        "universal_id": {
          "example": "vacation_day_balance"
        }
      }
    },
    "weekly_working_hours": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/components/schemas/TypeEnum"
        },
        "label": {
          "example": "Weekly hours"
        },
        "value": {
          "example": 40
        },
        "universal_id": {
          "example": "weekly_working_hours"
        }
      }
    }
  }
}
object Employee404ErrorResponse
{
  "type": "object",
  "title": "404 [Not Found] Employee Error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 0
        },
        "message": {
          "example": "Es ist ein Problem aufgetreten"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object EmployeeAbsenceBalance
{
  "type": "object",
  "title": "Employee Absence Balance",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1234
          },
          "name": {
            "type": "string",
            "example": "Paid Vacation"
          },
          "balance": {
            "type": "number",
            "example": 10.5
          },
          "category": {
            "type": "string",
            "example": "custom_absence"
          }
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object EmployeeCreatedResponse
{
  "type": "object",
  "title": "Successfully created employee response",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "example": 1
        },
        "message": {
          "type": "string",
          "example": "success"
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object EmployeeCreationErrorResponse
{
  "type": "object",
  "title": "Employee creation failed due to invalid payload",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "number",
          "example": 422
        },
        "message": {
          "type": "string",
          "example": "Supervisor with ID 1 not found"
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object EmployeeResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "type": {
              "example": "Employee"
            },
            "attributes": {
              "$ref": "#/components/schemas/Employee"
            }
          }
        }
      }
    }
  ],
  "title": "Employee Response"
}
object EmployeeUpdateErrorResponse
{
  "type": "object",
  "title": "Employee update failed due to invalid payload",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "number",
          "example": 422
        },
        "message": {
          "type": "string",
          "example": "Supervisor with ID 1 not found"
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object EmployeeUpdatedResponse
{
  "type": "object",
  "title": "Successfully updated employee response",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "example": 12345
        }
      }
    },
    "meta": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "success": {
      "type": "boolean",
      "example": true
    }
  }
}
object EmployeesCreateEmployeeRequest
{
  "type": "object",
  "properties": {
    "employee": {
      "type": "object",
      "required": [
        "email",
        "first_name",
        "last_name"
      ],
      "properties": {
        "email": {
          "type": "string",
          "example": "john.dou@demo.com",
          "description": "The e-mail field is required for the employee creation. Updating of this field is not currently supported."
        },
        "gender": {
          "type": "string",
          "example": "male"
        },
        "office": {
          "type": "string",
          "example": "Madrid",
          "description": "The office employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "status": {
          "type": "string",
          "example": "active",
          "description": "Status of the employee. Overrides the status determined based on the value of `hire_date`."
        },
        "position": {
          "type": "string",
          "example": "developer"
        },
        "hire_date": {
          "type": "string",
          "format": "date",
          "example": "2020-01-31",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Employee hire date. Format: \"yyyy-mm-dd\". If `status` is not provided, it will be set to `active` if the hire date is in the past, or to `onboarding` if it's in the future."
        },
        "last_name": {
          "type": "string",
          "example": "Dou"
        },
        "department": {
          "type": "string",
          "example": "IT",
          "description": "The department employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "first_name": {
          "type": "string",
          "example": "John"
        },
        "subcompany": {
          "type": "string",
          "example": "ACME",
          "description": "The subcompany employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "supervisor_id": {
          "type": "number",
          "example": 5,
          "description": "Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee, otherwise an error will be returned. If not present, no supervisor will be assigned."
        },
        "preferred_name": {
          "type": "string",
          "example": "John Dou"
        },
        "custom_attributes": {
          "type": "object",
          "properties": {
            "dynamic_{{ field uid }}": {
              "type": "string",
              "example": "German",
              "description": "Dynamic field, represented by unique id."
            }
          }
        },
        "weekly_working_hours": {
          "type": "number",
          "example": 40
        }
      }
    }
  }
}
object EmployeesCreateEmployeeRequest1
{
  "type": "object",
  "required": [
    "employee[email]",
    "employee[first_name]",
    "employee[last_name]"
  ],
  "properties": {
    "employee[email]": {
      "type": "string",
      "description": "Employee email"
    },
    "employee[gender]": {
      "enum": [
        "male",
        "female",
        "diverse"
      ],
      "type": "string",
      "description": "Employee gender"
    },
    "employee[status]": {
      "enum": [
        "onboarding",
        "active",
        "leave",
        "inactive"
      ],
      "type": "string",
      "description": "Employee status"
    },
    "employee[position]": {
      "type": "string",
      "description": "Employee position"
    },
    "employee[hire_date]": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Employee hire date. Format: yyyy-mm-dd"
    },
    "employee[last_name]": {
      "type": "string",
      "description": "Employee last name"
    },
    "employee[department]": {
      "type": "string",
      "description": "Employee department"
    },
    "employee[first_name]": {
      "type": "string",
      "description": "Employee first name"
    },
    "employee[supervisor_id]": {
      "type": "number",
      "description": "Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee, otherwise an error will be returned. If not present, no supervisor will be assigned."
    },
    "employee[preferred_name]": {
      "type": "string",
      "description": "Employee preferred name"
    },
    "employee[weekly_working_hours]": {
      "type": "number",
      "description": "Employee weekly working hours"
    }
  }
}
object EmployeesListAttributesResponse
{
  "type": "object",
  "example": {
    "data": [
      {
        "key": "first_name",
        "type": "standard",
        "label": "First Name",
        "universal_id": "first_name"
      },
      {
        "key": "last_name",
        "type": "standard",
        "label": "Last Name",
        "universal_id": "last_name"
      },
      {
        "key": "dynamic_1",
        "type": "standard",
        "label": "IBAN",
        "universal_id": "iban"
      }
    ],
    "success": true
  },
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "example": "first_name"
          },
          "type": {
            "type": "string",
            "example": "standard"
          },
          "label": {
            "type": "string",
            "example": "First Name"
          },
          "universal_id": {
            "type": "string",
            "example": "first_name"
          }
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": true
    }
  }
}
object EmployeesResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "example": "Employee"
              },
              "attributes": {
                "$ref": "#/components/schemas/Employee"
              }
            }
          }
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "metadata": {
          "type": "object",
          "required": [
            "total_elements",
            "current_page",
            "total_pages"
          ],
          "properties": {
            "total_pages": {
              "type": "integer",
              "description": "The total number of pages distributing sets of items matching the query filters."
            },
            "current_page": {
              "type": "integer",
              "description": "Current page number containing the returned set of items matching with the query filters. The page number range is from 0 to total_pages - 1"
            },
            "total_elements": {
              "type": "integer",
              "description": "The total number of items matching the query filters."
            }
          }
        }
      }
    }
  ],
  "title": "List of Employees"
}
string EmployeesShowProfilePictureResponse
{
  "type": "string",
  "format": "binary"
}
object EmployeesUpdateEmployeeFieldsRequest
{
  "type": "object",
  "properties": {
    "employee": {
      "type": "object",
      "properties": {
        "gender": {
          "type": "string",
          "example": "male"
        },
        "office": {
          "type": "string",
          "example": "Madrid",
          "description": "The office employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "status": {
          "type": "string",
          "example": "active",
          "description": "Status of the employee."
        },
        "position": {
          "type": "string",
          "example": "developer"
        },
        "hire_date": {
          "type": "string",
          "format": "date",
          "example": "2020-01-31",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Employee hire date. Format: \"yyyy-mm-dd\". Update of the `hire_date` will not update employee status on its own (for that you'll need to update the `status` field)"
        },
        "last_name": {
          "type": "string",
          "example": "Dou"
        },
        "department": {
          "type": "string",
          "example": "IT",
          "description": "The department employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "first_name": {
          "type": "string",
          "example": "John"
        },
        "subcompany": {
          "type": "string",
          "example": "ACME",
          "description": "The subcompany employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response."
        },
        "supervisor_id": {
          "type": "number",
          "example": 5,
          "description": "Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee and not the same as the one of the employee being updated, otherwise an error will be returned. If sent as null, will unset the employee's supervisor."
        },
        "preferred_name": {
          "type": "string",
          "example": "John Dou"
        },
        "custom_attributes": {
          "type": "object",
          "properties": {
            "dynamic_{{ field uid }}": {
              "type": "string",
              "example": "German",
              "description": "Dynamic field, represented by unique id."
            }
          }
        },
        "weekly_working_hours": {
          "type": "number",
          "example": 40
        }
      }
    }
  }
}
object EmployeesUpdateEmployeeFieldsRequest1
{
  "type": "object",
  "properties": {
    "employee[gender]": {
      "enum": [
        "male",
        "female",
        "diverse"
      ],
      "type": "string",
      "description": "Employee gender"
    },
    "employee[status]": {
      "enum": [
        "onboarding",
        "active",
        "leave",
        "inactive"
      ],
      "type": "string",
      "description": "Employee status"
    },
    "employee[position]": {
      "type": "string",
      "description": "Employee position"
    },
    "employee[hire_date]": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Employee hire date. Format: yyyy-mm-dd"
    },
    "employee[last_name]": {
      "type": "string",
      "description": "Employee last name"
    },
    "employee[department]": {
      "type": "string",
      "description": "Employee department"
    },
    "employee[first_name]": {
      "type": "string",
      "description": "Employee first name"
    },
    "employee[supervisor_id]": {
      "type": "number",
      "description": "Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee and not the same as the one of the employee being updated, otherwise an error will be returned. If sent as null, will unset the employee's supervisor."
    },
    "employee[preferred_name]": {
      "type": "string",
      "description": "Employee preferred name"
    },
    "employee[weekly_working_hours]": {
      "type": "number",
      "description": "Employee weekly working hours"
    }
  }
}
object EntityAttribute
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "example": "IT"
    },
    "data_type": {
      "enum": [
        "ENTITY"
      ],
      "type": "string"
    },
    "entity_id": {
      "type": "string",
      "example": 1
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "department"
    }
  }
}
object EntityHistoricalAttribute
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "example": "IT"
    },
    "data_type": {
      "enum": [
        "ENTITY"
      ],
      "type": "string"
    },
    "entity_id": {
      "type": "string",
      "example": 1
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "department"
    },
    "effective_date": {
      "type": "string",
      "example": "2021-01-01T00:00:00.000Z"
    }
  }
}
object ErrorAbsenceResponse
{
  "type": "object",
  "title": "404 absence error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 404
        },
        "message": {
          "example": "The absence period was not found."
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ErrorCreateAbsenceResponse
{
  "type": "object",
  "title": "Default error response",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 0
        },
        "message": {
          "example": "The given data failed to pass validation."
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ErrorDetails
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "search"
    },
    "_meta": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ErrorMeta"
      }
    },
    "title": {
      "type": "string",
      "example": "Not Found"
    },
    "details": {
      "type": "string",
      "example": "Report not found"
    }
  }
}
object ErrorInsertingAbsenceResponse
{
  "type": "object",
  "title": "400 absence error",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 400
        },
        "message": {
          "example": "Error when trying to insert absence period"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ErrorMeta
{
  "type": "object",
  "properties": {
    "field": {
      "type": "string",
      "example": "ID"
    },
    "description": {
      "type": "string",
      "example": "Report ID not found"
    }
  }
}
object ErrorResponse
{
  "type": "object",
  "title": "Default error response",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "example": 0
        },
        "message": {
          "example": "Something went wrong"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object HolidayCalendar
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "Holiday Calendar"
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "example": "HolidayCalendar"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number",
              "example": 1
            },
            "name": {
              "example": "DE (Hamburg) Feiertage"
            },
            "state": {
              "example": "Hamburg"
            },
            "country": {
              "example": "DE"
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "holiday_calendar"
    }
  }
}
object HourlyAbsence
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "example": "61fe126b-a7b3-449a-b5ee-3865a6fcc546"
    },
    "end": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "start": {
      "type": "string",
      "format": "date-time"
    },
    "origin": {
      "type": "string",
      "example": "web"
    },
    "status": {
      "type": "string",
      "example": "approved"
    },
    "comment": {
      "type": "string"
    },
    "employee": {
      "$ref": "#/components/schemas/ShortEmployee"
    },
    "timezone": {
      "type": "string",
      "example": "Europe/Berlin"
    },
    "breakdowns": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AbsencePeriodBreakdown"
      },
      "description": "Breakdowns of effective duration by day of absence."
    },
    "created_at": {
      "type": "string",
      "example": "2017-01-17T10:32:18.000+01:00"
    },
    "created_by": {
      "type": "integer",
      "example": 1,
      "description": "ID of the employee who created the absence period."
    },
    "updated_at": {
      "type": "string",
      "example": "2017-01-17T10:32:18.000+01:00"
    },
    "approved_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "certificate": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "example": "not-required"
        }
      }
    },
    "absence_type": {
      "$ref": "#/components/schemas/AbsenceType"
    },
    "half_day_end": {
      "type": "boolean"
    },
    "half_day_start": {
      "type": "boolean"
    },
    "measurement_unit": {
      "type": "string",
      "example": "hours"
    },
    "effective_duration": {
      "type": "integer",
      "example": 16,
      "description": "Period effective duration in minutes"
    }
  }
}
object HourlyAbsencePeriodResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "required": [
            "type",
            "attributes"
          ],
          "properties": {
            "type": {
              "example": "AbsencePeriod"
            },
            "attributes": {
              "$ref": "#/components/schemas/HourlyAbsence"
            }
          }
        }
      }
    }
  ],
  "title": "Absence Periods response"
}
object HourlyAbsencePeriodResponseAttributes
{
  "type": "object",
  "required": [
    "id",
    "employee",
    "absence_type_id",
    "start",
    "half_day_start",
    "half_day_end",
    "origin",
    "status",
    "certificate",
    "created_by",
    "effective_duration",
    "created_at",
    "updated_at",
    "breakdowns"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "9bba303f-0fbc-4514-9958-0befa21923fb"
    },
    "end": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "start": {
      "type": "string",
      "format": "date-time"
    },
    "origin": {
      "enum": [
        "web",
        "api",
        "mobile",
        "slack",
        "msteams"
      ],
      "type": "string",
      "example": "web",
      "nullable": true
    },
    "status": {
      "type": "string",
      "example": "approved"
    },
    "comment": {
      "type": "string"
    },
    "employee": {
      "$ref": "#/components/schemas/ShortEmployee"
    },
    "breakdowns": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AbsencePeriodBreakdown"
      },
      "description": "Breakdowns of effective duration by day of absence."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "integer",
      "example": 1,
      "description": "ID of the employee who created the absence period."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "approved_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "certificate": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "example": "not-required"
        }
      }
    },
    "half_day_end": {
      "type": "boolean"
    },
    "half_day_start": {
      "type": "boolean"
    },
    "absence_type_id": {
      "$ref": "#/components/schemas/AbsenceType"
    },
    "measurement_unit": {
      "enum": [
        "minutes"
      ],
      "type": "string",
      "example": "minutes"
    },
    "effective_duration": {
      "type": "integer",
      "example": 60,
      "description": "Period effective duration in minutes"
    }
  }
}
object HourlyAbsencePeriodsResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "type",
              "attributes"
            ],
            "properties": {
              "type": {
                "example": "AbsencePeriod"
              },
              "attributes": {
                "$ref": "#/components/schemas/HourlyAbsence"
              }
            }
          }
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "metadata": {
          "type": "object",
          "required": [
            "total_elements",
            "current_page",
            "total_pages"
          ],
          "properties": {
            "total_pages": {
              "type": "integer",
              "description": "The total number of pages distributing sets of items matching the query filters."
            },
            "current_page": {
              "type": "integer",
              "description": "Current page number containing the returned set of items matching with the query filters. The page number range is from 0 to total_pages - 1"
            },
            "total_elements": {
              "type": "integer",
              "description": "The total number of items matching the query filters."
            }
          }
        }
      }
    }
  ],
  "title": "List All Hourly Absence Periods response"
}
object NewAttendancePeriodParametersRequest
{
  "type": "object",
  "title": "Create a New Attendance Period request",
  "required": [
    "attendances[][employee]",
    "attendances[][date]",
    "attendances[][start_time]",
    "attendances[]break"
  ],
  "properties": {
    "project_id": {
      "type": "integer",
      "format": "int32",
      "example": 5,
      "nullable": true,
      "description": "The ID of the project"
    },
    "skip_approval": {
      "type": "boolean",
      "description": "Optional, default value is true. If set to false, the approval status of the attendance period will be \"pending\" if an approval rule is set for the attendances type. The respective approval flow will be triggered."
    },
    "attendances[]break": {
      "type": "integer",
      "format": "int32",
      "minimum": 0,
      "description": "Break in minutes"
    },
    "attendances[][date]": {
      "type": "string",
      "format": "date",
      "example": "2020-01-31",
      "description": "Attendance date. Format: yyyy-mm-dd"
    },
    "attendances[][comment]": {
      "type": "string",
      "nullable": true,
      "description": "Optional comment"
    },
    "attendances[][employee]": {
      "type": "integer",
      "description": "Employee identifier"
    },
    "attendances[][end_time]": {
      "type": "string",
      "example": "12:00",
      "pattern": "^\\d\\d:\\d\\d$",
      "nullable": true,
      "description": "End time. Format: hh:mm"
    },
    "attendances[][start_time]": {
      "type": "string",
      "example": "08:00",
      "pattern": "^\\d\\d:\\d\\d$",
      "description": "Start time. Format: hh:mm"
    }
  }
}
object NewAttendancePeriodResponse
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "id": {
              "type": "array",
              "items": {
                "type": "integer",
                "example": 1
              }
            },
            "message": {
              "example": "Success"
            }
          }
        }
      }
    }
  ]
}
object Office
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "Office"
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "Office"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "example": "Munich"
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "office"
    }
  }
}
object PerformanceKpi
{
  "type": "object",
  "properties": {
    "performance_kpi_id": {
      "type": "string",
      "example": "kpi_123"
    },
    "performance_kpi_value": {
      "type": "string",
      "example": 14
    }
  }
}
object PerformanceKpiAttribute
{
  "type": "object",
  "properties": {
    "data_type": {
      "enum": [
        "PERFORMANCE_KPI"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string"
    },
    "performance_target_kpis": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PerformanceTarget"
      }
    }
  }
}
object PerformanceTarget
{
  "type": "object",
  "properties": {
    "performance_target_id": {
      "type": "string",
      "example": 1
    },
    "performance_target_value": {
      "type": "string",
      "example": 20
    }
  }
}
object PerformanceTargetAttribute
{
  "type": "object",
  "properties": {
    "data_type": {
      "enum": [
        "PERFORMANCE_TARGET"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "performance_target_name"
    },
    "performance_targets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PerformanceTarget"
      }
    }
  }
}
object PerformanceTargetKpi
{
  "type": "object",
  "properties": {
    "performance_kpis": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PerformanceKpi"
      }
    },
    "performance_target_id": {
      "type": "string",
      "example": "id_123"
    }
  }
}
object Project
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 1
    },
    "type": {
      "type": "string",
      "example": "Project"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "example": "Project name"
        },
        "active": {
          "type": "boolean",
          "example": true,
          "description": "Marks the availability of the project. The default value is false."
        },
        "created_at": {
          "type": "string",
          "format": "datetime",
          "example": "2022-02-01T12:00:00.000+01:00"
        },
        "updated_at": {
          "type": "string",
          "format": "datetime",
          "example": "2022-02-01T12:00:00.000+01:00"
        }
      }
    }
  }
}
object ProjectsCreateProject400Response
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "name": {
          "type": "array",
          "items": {
            "type": "string",
            "example": "Project name cannot be empty"
          }
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ProjectsCreateProjectRequest
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "example": "A project name"
    },
    "active": {
      "type": "boolean",
      "default": false,
      "example": true
    }
  }
}
object ProjectsCreateProjectResponse
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Project"
    },
    "success": {
      "type": "boolean"
    }
  }
}
object ProjectsDeleteProjectResponse
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "example": "Project 5 not found"
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ProjectsGetAllResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Project"
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object ProjectsUpdateData400Response
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "active": {
          "type": "array",
          "items": {
            "type": "string",
            "example": "Active field needs to be of type boolean"
          }
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ProjectsUpdateData404Response
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "example": "Project 5 not found"
    },
    "success": {
      "type": "boolean",
      "example": false
    }
  }
}
object ProjectsUpdateDataRequest
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "example": "A project name"
    },
    "active": {
      "type": "boolean",
      "example": true,
      "description": "Marks the availability of the project"
    }
  }
}
object ProjectsUpdateDataResponse
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Project"
    },
    "success": {
      "type": "boolean"
    }
  }
}
array PublicAPIException
{
  "type": "array",
  "items": {
    "$ref": "#/components/schemas/CustomReportsErrorResponse"
  }
}
object PublicColumnAttributes
{
  "type": "object",
  "properties": {
    "data_type": {
      "type": "string",
      "example": "TEXT"
    },
    "attribute_id": {
      "type": "string",
      "example": "first_name"
    },
    "human_readable": {
      "type": "string",
      "example": "First Name"
    }
  }
}
object PublicColumnData
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "Column"
    },
    "attributes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicColumnAttributes"
      }
    }
  }
}
object PublicHistoricalReportItemsAttributes
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "eb7482f3-2323-43e2-87ed-99d2399e8e22"
    },
    "name": {
      "type": "string",
      "example": "Department changes in the past year"
    },
    "type": {
      "enum": [
        "historical_data"
      ],
      "type": "string",
      "example": "historical_data"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "employee_id": {
            "type": "integer",
            "example": 17
          },
          "historical_attributes": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DefaultHistoricalAttribute"
                },
                {
                  "$ref": "#/components/schemas/EntityHistoricalAttribute"
                },
                {
                  "$ref": "#/components/schemas/DurationHistoricalAttribute"
                },
                {
                  "$ref": "#/components/schemas/CostCenterHistoricalAttribute"
                },
                {
                  "$ref": "#/components/schemas/SalaryHistoricalAttribute"
                }
              ]
            }
          }
        }
      }
    },
    "status": {
      "enum": [
        "up_to_date",
        "updating",
        "update_failed"
      ],
      "type": "string",
      "example": "created"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": 1
          },
          "column": {
            "type": "string",
            "example": "office_id"
          },
          "comparison": {
            "type": "string",
            "example": "eq"
          }
        }
      }
    },
    "end_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-09-30"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-01-01"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "description": {
      "type": "string",
      "example": "Shows department changes of all employees over the past year"
    },
    "period_type": {
      "enum": [
        "fixed",
        "today",
        "yesterday",
        "this_week",
        "last_week",
        "this_month",
        "last_month",
        "last_thirty_days",
        "next_month",
        "this_quarter",
        "last_quarter",
        "this_year",
        "year_to_date",
        "last_year",
        "next_year"
      ],
      "type": "string",
      "example": "fixed"
    },
    "author_last_name": {
      "type": "string",
      "example": "Sirano",
      "description": "Report author"
    },
    "author_first_name": {
      "type": "string",
      "example": "Robert",
      "description": "Report author"
    },
    "data_refreshed_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    }
  }
}
object PublicListColumnsResponse
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/PublicColumnData"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    },
    "metadata": {
      "$ref": "#/components/schemas/PublicReportMetaData"
    }
  }
}
object PublicListReportsResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicReportData"
      }
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    },
    "metadata": {
      "$ref": "#/components/schemas/PublicReportMetaData"
    }
  }
}
object PublicReportAttributes
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "eb7482f3-2323-43e2-87ed-99d2399e8e22"
    },
    "name": {
      "type": "string",
      "example": "Employee vacations past month"
    },
    "type": {
      "enum": [
        "point_in_time",
        "historical_data",
        "timeframe"
      ],
      "type": "string",
      "example": "point_in_time"
    },
    "status": {
      "enum": [
        "up_to_date",
        "updating",
        "update_failed"
      ],
      "type": "string",
      "example": "up_to_date"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": 1
          },
          "column": {
            "type": "string",
            "example": "office_id"
          },
          "comparison": {
            "type": "string",
            "example": "eq"
          }
        }
      }
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "example": "2022-09-30"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "example": "2022-09-01"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "description": {
      "type": "string",
      "example": "Shows vacations of all employees that were taken past month"
    },
    "period_type": {
      "enum": [
        "fixed",
        "today",
        "last_day_of_this_month",
        "this_year",
        "last_month",
        "last_thirty_days",
        "this_month",
        "year_to_date"
      ],
      "type": "string",
      "example": "fixed"
    },
    "author_last_name": {
      "type": "string",
      "example": "Sirano",
      "description": "Report author"
    },
    "author_first_name": {
      "type": "string",
      "example": "Robert",
      "description": "Report author"
    },
    "data_refreshed_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    }
  }
}
object PublicReportData
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "Report"
    },
    "attributes": {
      "$ref": "#/components/schemas/PublicReportAttributes"
    }
  }
}
object PublicReportItemsAttributes
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "eb7482f3-2323-43e2-87ed-99d2399e8e22"
    },
    "name": {
      "type": "string",
      "example": "Employee vacations at a specific point in time"
    },
    "type": {
      "enum": [
        "point_in_time"
      ],
      "type": "string",
      "example": "point_in_time"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attributes": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DefaultAttribute"
                },
                {
                  "$ref": "#/components/schemas/EntityAttribute"
                },
                {
                  "$ref": "#/components/schemas/DurationAttribute"
                },
                {
                  "$ref": "#/components/schemas/CostCenterAttribute"
                },
                {
                  "$ref": "#/components/schemas/AbsenceOverviewAttribute"
                },
                {
                  "$ref": "#/components/schemas/AbsencePeriodAttribute"
                },
                {
                  "$ref": "#/components/schemas/PerformanceTargetAttribute"
                },
                {
                  "$ref": "#/components/schemas/PerformanceKpiAttribute"
                },
                {
                  "$ref": "#/components/schemas/SalaryAttribute"
                },
                {
                  "$ref": "#/components/schemas/CompensationAttribute"
                }
              ]
            }
          },
          "employee_id": {
            "type": "integer",
            "example": 17
          }
        }
      }
    },
    "status": {
      "enum": [
        "up_to_date",
        "updating",
        "update_failed"
      ],
      "type": "string",
      "example": "created"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": 1
          },
          "column": {
            "type": "string",
            "example": "office_id"
          },
          "comparison": {
            "type": "string",
            "example": "eq"
          }
        }
      }
    },
    "end_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "description": {
      "type": "string",
      "example": "Shows vacations of all employees on a specific date"
    },
    "period_type": {
      "enum": [
        "fixed",
        "today",
        "yesterday",
        "last_day_of_this_week",
        "last_day_of_last_week",
        "last_day_of_this_month",
        "last_day_of_last_month",
        "last_day_of_this_quarter",
        "last_day_of_last_quarter",
        "last_day_of_this_year",
        "last_day_of_last_year"
      ],
      "type": "string",
      "example": "fixed"
    },
    "author_last_name": {
      "type": "string",
      "example": "Sirano",
      "description": "Report author"
    },
    "author_first_name": {
      "type": "string",
      "example": "Robert",
      "description": "Report author"
    },
    "data_refreshed_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    }
  }
}
object PublicReportItemsData
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "Report"
    },
    "attributes": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/PublicReportItemsAttributes"
        },
        {
          "$ref": "#/components/schemas/PublicTimeframeReportItemsAttributes"
        },
        {
          "$ref": "#/components/schemas/PublicHistoricalReportItemsAttributes"
        }
      ]
    }
  }
}
object PublicReportMetaData
{
  "type": "object",
  "properties": {
    "total_pages": {
      "type": "integer"
    },
    "current_page": {
      "type": "integer"
    },
    "total_elements": {
      "type": "integer"
    }
  }
}
object PublicReportResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicReportItemsData"
      }
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer",
      "deprecated": true
    },
    "success": {
      "type": "boolean"
    },
    "metadata": {
      "$ref": "#/components/schemas/PublicReportMetaData"
    }
  }
}
object PublicTimeframeReportItemsAttributes
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "eb7482f3-2323-43e2-87ed-99d2399e8e22"
    },
    "name": {
      "type": "string",
      "example": "Employee vacations past month"
    },
    "type": {
      "enum": [
        "timeframe"
      ],
      "type": "string",
      "example": "timeframe"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attributes": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DefaultAttribute"
                },
                {
                  "$ref": "#/components/schemas/EntityAttribute"
                },
                {
                  "$ref": "#/components/schemas/DurationAttribute"
                },
                {
                  "$ref": "#/components/schemas/CostCenterAttribute"
                },
                {
                  "$ref": "#/components/schemas/AbsenceOverviewAttribute"
                },
                {
                  "$ref": "#/components/schemas/AbsencePeriodAttribute"
                },
                {
                  "$ref": "#/components/schemas/PerformanceTargetAttribute"
                },
                {
                  "$ref": "#/components/schemas/PerformanceKpiAttribute"
                },
                {
                  "$ref": "#/components/schemas/SalaryAttribute"
                },
                {
                  "$ref": "#/components/schemas/CompensationAttribute"
                }
              ]
            }
          },
          "employee_id": {
            "type": "integer",
            "example": 17
          }
        }
      }
    },
    "status": {
      "enum": [
        "up_to_date",
        "updating",
        "update_failed"
      ],
      "type": "string",
      "example": "created"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": 1
          },
          "column": {
            "type": "string",
            "example": "office_id"
          },
          "comparison": {
            "type": "string",
            "example": "eq"
          }
        }
      }
    },
    "end_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-01"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    },
    "description": {
      "type": "string",
      "example": "Shows vacations of all employees that were taken past month"
    },
    "period_type": {
      "enum": [
        "fixed",
        "today",
        "yesterday",
        "this_week",
        "last_week",
        "this_month",
        "last_month",
        "last_thirty_days",
        "next_month",
        "this_quarter",
        "last_quarter",
        "this_year",
        "year_to_date",
        "last_year",
        "next_year"
      ],
      "type": "string",
      "example": "fixed"
    },
    "author_last_name": {
      "type": "string",
      "example": "Sirano",
      "description": "Report author"
    },
    "author_first_name": {
      "type": "string",
      "example": "Robert",
      "description": "Report author"
    },
    "data_refreshed_at": {
      "type": "string",
      "format": "date-time",
      "example": "2022-04-10T17:32:28Z"
    }
  }
}
object Response
{
  "type": "object",
  "title": "Default response object",
  "required": [
    "success",
    "data"
  ],
  "properties": {
    "data": {
      "type": "object"
    },
    "success": {
      "type": "boolean"
    }
  }
}
object SalaryAttribute
{
  "type": "object",
  "properties": {
    "amount": {
      "type": "string",
      "example": 12.2
    },
    "data_type": {
      "enum": [
        "SALARY"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "salary_123"
    },
    "currency_symbol": {
      "type": "string",
      "example": "$"
    }
  }
}
object SalaryHistoricalAttribute
{
  "type": "object",
  "properties": {
    "amount": {
      "type": "string",
      "example": 12.2
    },
    "data_type": {
      "enum": [
        "SALARY"
      ],
      "type": "string"
    },
    "employee_id": {
      "type": "integer",
      "example": 17
    },
    "attribute_id": {
      "type": "string",
      "example": "salary_123"
    },
    "effective_date": {
      "type": "string",
      "example": "2021-01-01T00:00:00.000Z"
    },
    "currency_symbol": {
      "type": "string",
      "example": "$"
    }
  }
}
object ShortEmployee
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "Employee"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "object",
          "properties": {
            "type": {
              "$ref": "#/components/schemas/TypeEnum"
            },
            "label": {
              "example": 1
            },
            "value": {
              "example": "id"
            },
            "universal_id": {
              "example": "id"
            }
          }
        },
        "email": {
          "type": "object",
          "properties": {
            "type": {
              "$ref": "#/components/schemas/TypeEnum"
            },
            "label": {
              "example": "Email"
            },
            "value": {
              "example": "michael.dou@personio.de"
            },
            "universal_id": {
              "example": "email"
            }
          }
        },
        "last_name": {
          "type": "object",
          "properties": {
            "type": {
              "$ref": "#/components/schemas/TypeEnum"
            },
            "label": {
              "example": "Last Name"
            },
            "value": {
              "example": "Dou"
            },
            "universal_id": {
              "example": "last_name"
            }
          }
        },
        "first_name": {
          "type": "object",
          "properties": {
            "type": {
              "$ref": "#/components/schemas/TypeEnum"
            },
            "label": {
              "example": "First Name"
            },
            "value": {
              "example": "Michael"
            },
            "universal_id": {
              "example": "first_name"
            }
          }
        }
      }
    }
  }
}
object Supervisor
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "example": "Supervisor"
    },
    "value": {
      "$ref": "#/components/schemas/ShortEmployee"
    }
  }
}
object Team
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "Team"
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "Team"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "example": "Management"
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "team"
    }
  }
}
object TimeOffTypeResource
{
  "type": "object",
  "title": "Type of time-off resource",
  "properties": {
    "type": {
      "enum": [
        "TimeOffType"
      ],
      "type": "string",
      "description": "Time-off type resource name"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "example": 1,
          "description": "identifier"
        },
        "name": {
          "type": "string",
          "example": "Paid vacation"
        },
        "unit": {
          "enum": [
            "day",
            "hour"
          ],
          "type": "string",
          "example": "day"
        },
        "category": {
          "enum": [
            "family_care",
            "maternity_parental_leave",
            "child_care",
            "short_time_allowance",
            "quarantine",
            "lockout",
            "irrevocable_exemption",
            "sick_leave",
            "voluntary_military_service",
            "unlawful_strike",
            "lawful_strike",
            "paid_vacation",
            "unpaid_vacation",
            "unexcused_absence",
            "offsite_work",
            "other",
            "undefined"
          ],
          "type": "string",
          "example": "offsite_work",
          "nullable": true
        },
        "legacy_category": {
          "enum": [
            "family_care_sick_leave",
            "individual_prohibition_of_employment",
            "maternity_protection_period",
            "other",
            "paid_vacation",
            "parental_leave",
            "sick_leave",
            "lawful_strike",
            "unlawful_strike",
            "treatment",
            "unexcused_absence",
            "unpaid_vacation",
            "voluntary_military_service",
            "offsite_work",
            "family_care_long_term",
            "paid_child_sick",
            "unpaid_child_sick",
            "undefined"
          ],
          "type": "string",
          "example": "offsite_work",
          "nullable": true
        },
        "approval_required": {
          "type": "boolean",
          "example": true
        },
        "substitute_option": {
          "enum": [
            "disabled",
            "optional",
            "required"
          ],
          "type": "string",
          "example": "optional"
        },
        "certification_required": {
          "type": "boolean",
          "example": false
        },
        "half_day_requests_enabled": {
          "type": "boolean",
          "example": true
        },
        "certification_submission_timeframe": {
          "type": "integer",
          "example": 2,
          "description": "The timeframe in days under which the employee needs to submit the certification"
        }
      }
    }
  }
}
string TypeEnum
{
  "enum": [
    "standard",
    "date",
    "integer",
    "decimal",
    "list",
    "link",
    "tags",
    "multiline"
  ],
  "type": "string",
  "example": "standard"
}
object UpdatedAttendanceResponse
{
  "type": "object",
  "title": "Default response object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "message": {
          "example": "The attendance period was updated."
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
object WorkSchedule
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/TypeEnum"
    },
    "label": {
      "example": "WorkSchedule"
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "example": "WorkSchedule"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number",
              "example": 1
            },
            "name": {
              "example": "Standard Hours"
            },
            "friday": {
              "example": "08:30",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "monday": {
              "example": "08:30",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "sunday": {
              "example": "00:00",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "tuesday": {
              "example": "08:30",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "saturday": {
              "example": "00:00",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "thursday": {
              "example": "08:30",
              "pattern": "^\\d\\d:\\d\\d$"
            },
            "wednesday": {
              "example": "08:30",
              "pattern": "^\\d\\d:\\d\\d$"
            }
          }
        }
      }
    },
    "universal_id": {
      "example": "work_schedule"
    }
  }
}