From 3b9804772fbeaf6a519f3f05600b782cef210f29 Mon Sep 17 00:00:00 2001 From: Pavel Galaton <40367670+pavel-personio@users.noreply.github.com> Date: Thu, 5 Dec 2019 18:35:01 +0100 Subject: [PATCH 1/2] Update personio-personnel-data-api-oa3.yaml --- personio-personnel-data-api-oa3.yaml | 1072 ++++++++++++++------------ 1 file changed, 568 insertions(+), 504 deletions(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index a9c19ed..7ceb064 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -3,10 +3,17 @@ info: version: "1.0" title: Personnel Data description: API for reading and writing personnel data including data about attendances and absences + +tags: + - name: "Employees" + - name: "Attendances" + - name: "Absences" + - name: "Projects" + paths: - /company/employees: + "/company/employees": get: - tags: + tags: - Employees description: List Company Employees responses: @@ -106,16 +113,16 @@ paths: cost_centers: label: Cost center value: - - type: CostCenter - attributes: - name: Cost Center One - id: 320 - percentage: 50 - - type: CostCenter - attributes: - name: Cost Center Two - id: 321 - percentage: 50 + - type: CostCenter + attributes: + name: Cost Center One + id: 320 + percentage: 50 + - type: CostCenter + attributes: + name: Cost Center Two + id: 321 + percentage: 50 fix_salary: label: Fix salary value: 4000 @@ -179,7 +186,7 @@ paths: label: Profile Picture value: 'http://api.dev.personio.de/v1/company/employees/2/profile-picture' post: - tags: + tags: - Employees summary: Create an employee description: > @@ -238,11 +245,10 @@ paths: data: id: 81723 message: "success" - - + "/company/employees/{employee_id}": patch: - tags: + tags: - Employees summary: Update an employee description: > @@ -254,7 +260,7 @@ paths: description: Numeric `id` of the employee schema: type: integer - format: int32 + format: int32 requestBody: content: application/x-www-form-urlencoded: @@ -305,9 +311,9 @@ paths: data: id: 81723 message: "success" - + get: - tags: + tags: - Employees description: Show employee by ID parameters: @@ -415,16 +421,16 @@ paths: cost_centers: label: Cost center value: - - type: CostCenter - attributes: - name: Cost Center One - id: 320 - percentage: 50 - - type: CostCenter - attributes: - name: Cost Center Two - id: 321 - percentage: 50 + - type: CostCenter + attributes: + name: Cost Center One + id: 320 + percentage: 50 + - type: CostCenter + attributes: + name: Cost Center Two + id: 321 + percentage: 50 fix_salary: label: Fix salary value: 4000 @@ -483,24 +489,24 @@ paths: attributes: id: 12347 name: "Sick days" - entitlement: 0 + entitlement: 0 "404": description: "" content: application/json: schema: - $ref: "#/components/schemas/Employee404ErrorResponse" + $ref: "#/components/schemas/Employee404ErrorResponse" examples: response: value: success: false error: code: 404 - message: 'Es ist ein Problem aufgetreten ' - + message: 'Es ist ein Problem aufgetreten ' + "/company/employees/{employee_id}/profile-picture/{width}": get: - tags: + tags: - Employees description: Show employee profile picture parameters: @@ -531,7 +537,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Employee404ErrorResponse" + $ref: "#/components/schemas/Employee404ErrorResponse" examples: response: value: @@ -539,10 +545,10 @@ paths: error: code: 404 message: 'Es ist ein Problem aufgetreten ' - - /company/attendances: + + "/company/attendances": get: - tags: + tags: - Attendances description: Fetch attendance data for the company employees. .The result can be `paginated` and `filtered` by period and/or specific employee/employees. The result contains a list of attendances. parameters: @@ -595,10 +601,10 @@ paths: examples: response: value: - success: true - offset: 0 - limit: 200 - data: + success: true + offset: 0 + limit: 200 + data: - id: 1234 type: AttendancePeriod attributes: @@ -622,7 +628,7 @@ paths: is_holiday: false is_on_time_off: true post: - tags: + tags: - Attendances description: This endpoint is responsible for adding attendance data for the company employees. It is possible to add attendances for one or many employees at the same time. The payload sent on the request should be a list of attendance periods, in the form of an array containing attendance period objects. requestBody: @@ -642,7 +648,7 @@ paths: required: true responses: "200": - description: The attendance periods are successfullycreated + description: The attendance periods are successfullycreated content: application/json: schema: @@ -666,10 +672,10 @@ paths: error: code: 400 message: 'Error when trying to insert Attendances periods rows' - + "/company/attendances/{id}": delete: - tags: + tags: - Attendances description: This endpoint is responsible for deleting attendance data for the company employees. @@ -693,7 +699,7 @@ paths: value: success: true data: - message: 'The attendance period was deleted.' + message: 'The attendance period was deleted.' "404": description: Not found response content: @@ -707,9 +713,9 @@ paths: error: code: 404 message: 'The attendance period was not found.' - + patch: - tags: + tags: - Attendances description: This endpoint is responsible for updating attendance data for the company employees. Attributes are not required and if not specified, the current value will be used. It is not possible to change the employee id. parameters: @@ -753,19 +759,10 @@ paths: error: code: 404 message: 'The attendance period was not found.' - - - - - - - - - - - /company/time-off-types: + + "/company/time-off-types": get: - tags: + tags: - Absences description: Provides a list of available absences types. For example 'Paid vacation', 'Parental leave' or 'Home office' parameters: @@ -801,21 +798,21 @@ paths: $ref: "#/components/schemas/TimeOffTypeResource" examples: response: - value: + value: success: true data: - - id: 1234 - type: TimeOffType - attributes: - name: 'Paid vacation' - - id: 1235 - type: TimeOffType - attributes: - name: 'Home office' - - /company/time-offs: + - id: 1234 + type: TimeOffType + attributes: + name: 'Paid vacation' + - id: 1235 + type: TimeOffType + attributes: + name: 'Home office' + + "/company/time-offs": get: - tags: + tags: - Absences description: This endpoint is responsible for fetching absence data for the company employees.The result can be `paginated` and `filtered` by period and/or specific employee/employees. The result contains a list of absence periods. parameters: @@ -867,43 +864,43 @@ paths: $ref: "#/components/schemas/AbsencePeriodsResponse" examples: response: - value: + value: success: true data: - - type: TimeOffPeriod - attributes: - id: 12345 - status: approved - start_date: '2017-12-27T00:00:00+0100' - end_date: '2017-12-29T00:00:00+0100' - days_count: 3 - half_day_start: 0 - half_day_end: 0 - time_off_type: - type: TimeOffType - attributes: - id: 54321 - name: Vacation - employee: - type: Employee - attributes: - id: - label: id - value: 4567 - first_name: - label: First name - value: Michael - last_name: - label: Last name - value: Miller - email: - label: Email - value: michael.miller@demo.com - certificate: - status: not-required - created_at: '2017-01-17T10:32:18+0100' + - type: TimeOffPeriod + attributes: + id: 12345 + status: approved + start_date: '2017-12-27T00:00:00+0100' + end_date: '2017-12-29T00:00:00+0100' + days_count: 3 + half_day_start: 0 + half_day_end: 0 + time_off_type: + type: TimeOffType + attributes: + id: 54321 + name: Vacation + employee: + type: Employee + attributes: + id: + label: id + value: 4567 + first_name: + label: First name + value: Michael + last_name: + label: Last name + value: Miller + email: + label: Email + value: michael.miller@demo.com + certificate: + status: not-required + created_at: '2017-01-17T10:32:18+0100' post: - tags: + tags: - Absences description: This endpoint is responsible for adding absence data for the company employees. requestBody: @@ -925,7 +922,7 @@ paths: $ref: "#/components/schemas/AbsencePeriodResponse" examples: response: - value: + value: success: true data: type: TimeOffPeriod @@ -968,12 +965,12 @@ paths: $ref: "#/components/schemas/ErrorInsertingAbsenceResponse" examples: response: - value: + value: success: false error: code: 400 message: 'Error when trying to insert absence period' - + "404": description: Employee or Absence type not found content: @@ -1002,10 +999,10 @@ paths: code: 0 message: 'The given data failed to pass validation.' error_data: '{...}' - + "/company/time-offs/{id}": delete: - tags: + tags: - Absences description: This endpoint is responsible for deleting absence period data for the company employees. parameters: @@ -1037,13 +1034,13 @@ paths: $ref: "#/components/schemas/ErrorAbsenceResponse" examples: response: - value: + value: success: false error: code: 404 message: 'The absence period was not found.' get: - tags: + tags: - Absences description: Show Absence Period parameters: @@ -1063,7 +1060,7 @@ paths: $ref: "#/components/schemas/AbsencePeriodResponse" examples: response: - value: + value: success: true data: type: TimeOffPeriod @@ -1098,20 +1095,36 @@ paths: certificate: status: not-required created_at: '2017-01-17T10:32:18+0100' - + "404": description: Not found response content: application/json: schema: - $ref: "#/components/schemas/ErrorAbsenceResponse" + $ref: "#/components/schemas/ErrorAbsenceResponse" examples: response: - value: + value: success: false error: code: 404 message: 'The absence period was not found.' + + "/company/projects": + get: + tags: + - Projects + summary: "Retrieve company projects" + responses: + 200: + description: "List of the projects" + content: + application/json: + schema: + $ref: "#/components/schemas/ProjectsResponse" + + + servers: - url: https://api.personio.de/v1 components: @@ -1132,7 +1145,7 @@ components: required: - success - data - + DeletedAbsenceResponse: title: Default response object type: object @@ -1144,8 +1157,8 @@ components: properties: message: example: The absence period was deleted. - - + + DeletedAtendanceResponse: title: Default response object type: object @@ -1156,8 +1169,8 @@ components: type: object properties: message: - example: The attendance period was deleted - + example: The attendance period was deleted + UpdatedAtendanceResponse: title: Default response object type: object @@ -1168,8 +1181,8 @@ components: type: object properties: message: - example: The attendance period was updated. - + example: The attendance period was updated. + ErrorResponse: title: Default error response type: object @@ -1185,7 +1198,7 @@ components: example: 0 message: example: Something went wrong - + ErrorCreateAbsenceResponse: title: Default error response type: object @@ -1200,10 +1213,10 @@ components: type: integer example: 0 message: - example: The given data failed to pass validation. - + example: The given data failed to pass validation. + ErrorAbsenceResponse: - title: 404 absense error + title: 404 absense error type: object properties: success: @@ -1216,10 +1229,10 @@ components: type: integer example: 404 message: - example: The absence period was not found. - + example: The absence period was not found. + ErrorInsertingAbsenceResponse: - title: 400 absense error + title: 400 absense error type: object properties: success: @@ -1232,10 +1245,10 @@ components: type: integer example: 400 message: - example: Error when trying to insert absence period - + example: Error when trying to insert absence period + ErrorCreateAttendanceResponse: - title: 400 absense error + title: 400 absense error type: object properties: success: @@ -1248,10 +1261,10 @@ components: type: integer example: 400 message: - example: Error when trying to insert Attendances periods rows - + example: Error when trying to insert Attendances periods rows + ErrorAttendanceResponse: - title: 404 absense error + title: 404 absense error type: object properties: success: @@ -1264,12 +1277,12 @@ components: type: integer example: 404 message: - example: The attendance period was not found. - - - + example: The attendance period was not found. + + + Employee404ErrorResponse: - title: 404 absense error + title: 404 absense error type: object properties: success: @@ -1282,8 +1295,8 @@ components: type: integer example: 0 message: - example: Es ist ein Problem aufgetreten - + example: Es ist ein Problem aufgetreten + EmployeeCreatedResponse: title: Sucsefully created employee response type: object @@ -1298,7 +1311,7 @@ components: example: 1 message: example: success - + Office: type: object properties: @@ -1315,7 +1328,7 @@ components: properties: name: example: Munich - + Department: type: object properties: @@ -1382,7 +1395,7 @@ components: WorkSchedule: type: object properties: - label: + label: example: WorkSchedule value: type: object @@ -1394,7 +1407,7 @@ components: properties: id: type: number - example: 1 + example: 1 name: example: Standard Hours monday: @@ -1418,7 +1431,7 @@ components: sunday: example: 00:00 pattern: ^\d\d:\d\d$ - + AbsenceEntitlement: type: object properties: @@ -1458,158 +1471,158 @@ components: Employee: type: object properties: - id: - type: integer - example: 1 - first_name: - type: object - properties: - label: - example: First name - value: - example: Michael - last_name: - type: object - properties: - label: - example: Last name - value: - example: Dou - email: - type: object - properties: - label: - example: Email - value: - example: michael.dou@personio.de - gender: - type: object - properties: - label: - example: Gender - value: - example: male - status: - type: object - properties: - label: - example: Status - value: - example: active - position: - type: object - properties: - label: - example: Position - value: - example: Online Marketing Specialist - supervisor: - $ref: "#/components/schemas/Supervisor" - employment_type: - type: object - properties: - label: - example: Employment type - value: - example: internal - weekly_working_hours: - type: object - properties: - label: - example: Weekly hours - value: - example: 40 - hire_date: - type: object - properties: - label: - example: Hire date - value: - example: 2012-02-01T00:00:00+0100 - contract_end_date: - type: object - properties: - label: - example: Contact end date - value: - example: 2020-02-01T00:00:00+0100 - termination_date: - type: object - properties: - label: - example: Termonation date - value: - example: 2020-02-01T00:00:00+0100 - termination_type: - type: object - properties: - label: - example: Termonation type - value: - example: - termination_reason: - type: object - properties: - label: - example: Termonation reason - value: - example: - probation_period_end: - type: object - properties: - label: - example: Probation period end - value: - example: 2020-02-01T00:00:00+0100 - created_at: - type: object - properties: - label: - example: Created at - value: - example: 2018-02-01T00:00:00+0100 - fix_salary: - type: object - properties: - label: - example: Fix salary - value: - example: 4000 - hourly_salary: - type: object - properties: - label: - example: Hourly salary - value: - example: 0 - vacation_day_balance: - type: object - properties: - label: - example: Vacation day balance - value: - example: 20.5 - profile_picture: - type: object - properties: - label: - example: Profile Picture - value: - example: http://api.dev.personio.de/v1/company/employees/1/profile-picture - - office: - $ref: "#/components/schemas/Office" - department: - $ref: "#/components/schemas/Department" - cost_centers: - $ref: "#/components/schemas/CostCenters" - holiday_calendar: - $ref: "#/components/schemas/HolidayCalendar" - work_schedule: - $ref: "#/components/schemas/WorkSchedule" - absence_entitlement: - $ref: "#/components/schemas/AbsenceEntitlement" - + id: + type: integer + example: 1 + first_name: + type: object + properties: + label: + example: First name + value: + example: Michael + last_name: + type: object + properties: + label: + example: Last name + value: + example: Dou + email: + type: object + properties: + label: + example: Email + value: + example: michael.dou@personio.de + gender: + type: object + properties: + label: + example: Gender + value: + example: male + status: + type: object + properties: + label: + example: Status + value: + example: active + position: + type: object + properties: + label: + example: Position + value: + example: Online Marketing Specialist + supervisor: + $ref: "#/components/schemas/Supervisor" + employment_type: + type: object + properties: + label: + example: Employment type + value: + example: internal + weekly_working_hours: + type: object + properties: + label: + example: Weekly hours + value: + example: 40 + hire_date: + type: object + properties: + label: + example: Hire date + value: + example: 2012-02-01T00:00:00+0100 + contract_end_date: + type: object + properties: + label: + example: Contact end date + value: + example: 2020-02-01T00:00:00+0100 + termination_date: + type: object + properties: + label: + example: Termonation date + value: + example: 2020-02-01T00:00:00+0100 + termination_type: + type: object + properties: + label: + example: Termonation type + value: + example: + termination_reason: + type: object + properties: + label: + example: Termonation reason + value: + example: + probation_period_end: + type: object + properties: + label: + example: Probation period end + value: + example: 2020-02-01T00:00:00+0100 + created_at: + type: object + properties: + label: + example: Created at + value: + example: 2018-02-01T00:00:00+0100 + fix_salary: + type: object + properties: + label: + example: Fix salary + value: + example: 4000 + hourly_salary: + type: object + properties: + label: + example: Hourly salary + value: + example: 0 + vacation_day_balance: + type: object + properties: + label: + example: Vacation day balance + value: + example: 20.5 + profile_picture: + type: object + properties: + label: + example: Profile Picture + value: + example: http://api.dev.personio.de/v1/company/employees/1/profile-picture + + office: + $ref: "#/components/schemas/Office" + department: + $ref: "#/components/schemas/Department" + cost_centers: + $ref: "#/components/schemas/CostCenters" + holiday_calendar: + $ref: "#/components/schemas/HolidayCalendar" + work_schedule: + $ref: "#/components/schemas/WorkSchedule" + absence_entitlement: + $ref: "#/components/schemas/AbsenceEntitlement" + EmployeesResponse: title: List of Employees allOf: @@ -1626,8 +1639,8 @@ components: attributes: type: array items: - $ref: "#/components/schemas/Employee" - + $ref: "#/components/schemas/Employee" + EmployeeResponse: title: Employee allOf: @@ -1642,81 +1655,92 @@ components: type: example: Employee attributes: - $ref: "#/components/schemas/Employee" - + $ref: "#/components/schemas/Employee" + Attendance: type: object properties: - employee: - example: 1 - date: - type: string - format: date - start_time: - type: string - pattern: ^\d\d:\d\d$ - example: "08:00" - end_time: - type: string - pattern: ^\d\d:\d\d$ - example: "17:00" - break: - type: integer - example: 60 - comment: - type: string - example: "I was productive as hell" - is_holiday: - type: boolean - example: false - is_on_time_off: - type: boolean - example: false - + employee: + example: 1 + date: + type: string + format: date + start_time: + type: string + pattern: ^\d\d:\d\d$ + example: "08:00" + end_time: + type: string + pattern: ^\d\d:\d\d$ + example: "17:00" + break: + type: integer + example: 60 + comment: + type: string + example: "I was productive as hell" + is_holiday: + type: boolean + example: false + is_on_time_off: + type: boolean + example: false + project_id: + type: integer + example: 716563 + AttendanceCreateRequest: type: object properties: - employee: - example: 1 - date: - type: string - format: date - start_time: - type: string - pattern: ^\d\d:\d\d$ - example: "08:00" - end_time: - type: string - pattern: ^\d\d:\d\d$ - example: "17:00" - break: - type: integer - example: 60 - comment: - type: string - example: "I was productive as hell" - + employee: + example: 1 + date: + type: string + format: date + start_time: + type: string + pattern: ^\d\d:\d\d$ + example: "08:00" + end_time: + type: string + pattern: ^\d\d:\d\d$ + example: "17:00" + break: + type: integer + example: 60 + comment: + type: string + example: "I was productive as hell" + project_id: + type: integer + nullable: true + example: 716563 + AttendanceUpdateRequest: type: object properties: - date: - type: string - format: date - start_time: - type: string - pattern: ^\d\d:\d\d$ - example: "08:00" - end_time: - type: string - pattern: ^\d\d:\d\d$ - example: "17:00" - break: - type: integer - example: 60 - comment: - type: string - example: "I was productive as hell" - + date: + type: string + format: date + start_time: + type: string + pattern: ^\d\d:\d\d$ + example: "08:00" + end_time: + type: string + pattern: ^\d\d:\d\d$ + example: "17:00" + break: + type: integer + example: 60 + comment: + type: string + example: "I was productive as hell" + project_id: + type: integer + nullable: true + example: 716563 + AttendancePeriodsResponse: title: List All Attenance Periods response type: object @@ -1731,57 +1755,57 @@ components: data: type: object required: - - id - - type - - attributes + - id + - type + - attributes properties: - id: - type: integer - type: - example: AttendancePeriod - attributes: - type: array - items: - $ref: "#/components/schemas/Attendance" - - - - + id: + type: integer + type: + example: AttendancePeriod + attributes: + type: array + items: + $ref: "#/components/schemas/Attendance" + + + + NewAttendancePeriodParametersRequest: title: Create a New Attendance Period request type: object properties: - attendances[][employee]: - type: integer - description: Employee identifier - attendances[][date]: - type: string - format: date - description: Attendance date as YYYY-MM-DD - attendances[][start_time]: - type: string - pattern: ^\d\d:\d\d$ - description: Start time as HH:MM - attendances[][end_time]: - type: string - pattern: ^\d\d:\d\d$ - description: End time as HH:MM - attendances[]break: - type: integer - format: int32 - description: Break in minutes - attendances[][comment]: - type: string - description: Optional comment + attendances[][employee]: + type: integer + description: Employee identifier + attendances[][date]: + type: string + format: date + description: Attendance date as YYYY-MM-DD + attendances[][start_time]: + type: string + pattern: ^\d\d:\d\d$ + description: Start time as HH:MM + attendances[][end_time]: + type: string + pattern: ^\d\d:\d\d$ + description: End time as HH:MM + attendances[]break: + type: integer + format: int32 + description: Break in minutes + attendances[][comment]: + type: string + description: Optional comment required: - - employee - - date - - start_time - - end_time - - break - - comment - - + - employee + - date + - start_time + - end_time + - break + - comment + + NewAttendancePeriodResponse: type: object allOf: @@ -1798,7 +1822,7 @@ components: example: 1 message: example: Success - + TimeOffTypeResource: title: Type of time-off resource type: object @@ -1873,7 +1897,7 @@ components: type: array items: $ref: "#/components/schemas/Absence" - + AbsencePeriodResponse: title: Absence Periods response type: object @@ -1890,94 +1914,134 @@ components: type: example: TimeOffPeriod attributes: - $ref: "#/components/schemas/Absence" - + $ref: "#/components/schemas/Absence" + Absence: type: object properties: - id: - type: integer - example: 1 - status: - type: string - example: approved - start_date: - type: string - example: 2017-12-27T00:00:00+0100 - end_date: - type: string - example: 2017-12-79T00:00:00+0100 - days_count: - type: number - example: 3 - half_day_start: - type: number - example: 0 - half_day_end: - type: number - example: 0 - time_off_type: - type: object - properties: - type: - type: string - example: TimeOffType - attributes: - type: array - items: - type: object - properties: - id: - type: integer - example: 1 - name: - type: string - example: Vacation - employee: - $ref: "#/components/schemas/ShortEmployee" - certificate: - type: object - properties: - status: - example: not-required - type: string - created_at: - type: string - example: 2017-01-17T10:32:18+0100 - - + id: + type: integer + example: 1 + status: + type: string + example: approved + start_date: + type: string + example: 2017-12-27T00:00:00+0100 + end_date: + type: string + example: 2017-12-79T00:00:00+0100 + days_count: + type: number + example: 3 + half_day_start: + type: number + example: 0 + half_day_end: + type: number + example: 0 + time_off_type: + type: object + properties: + type: + type: string + example: TimeOffType + attributes: + type: array + items: + type: object + properties: + id: + type: integer + example: 1 + name: + type: string + example: Vacation + employee: + $ref: "#/components/schemas/ShortEmployee" + certificate: + type: object + properties: + status: + example: not-required + type: string + created_at: + type: string + example: 2017-01-17T10:32:18+0100 + ShortEmployee: - type: object - properties: - type: - type: string - example: Employee - attributes: - type: array - items: - type: object - properties: - id: - type: integer - example: 1 - first_name: - type: object - properties: - label: - example: First Name - value: - example: Michael - last_name: - type: object - properties: - label: - example: Last Name - value: - example: Dou - email: - type: object - properties: - label: - example: Email - value: - example: michael.dou@personio.de + type: object + properties: + type: + type: string + example: Employee + attributes: + type: array + items: + type: object + properties: + id: + type: integer + example: 1 + first_name: + type: object + properties: + label: + example: First Name + value: + example: Michael + last_name: + type: object + properties: + label: + example: Last Name + value: + example: Dou + email: + type: object + properties: + label: + example: Email + value: + example: michael.dou@personio.de + + Project: + type: object + properties: + id: + type: integer + example: 716563 + type: + type: string + example: project + attributes: + type: object + properties: + id: + type: integer + example: 716563 + name: + type: string + example: "Example project name" + active: + description: "Identifies if project is enabled for usage from the Personio interface" + type: boolean + example: true + created_at: + type: string + example: 2017-01-17T10:32:18+0100 + updated_at: + type: string + example: 2017-01-17T10:32:18+0100 + + ProjectsResponse: + title: List all projects of the company + type: object + allOf: + - $ref: "#/components/schemas/Response" + - type: object + properties: + data: + type: array + items: + $ref: "#/components/schemas/Project" From fd2b27288215c9fd8f879e1c856b5c920110c4fc Mon Sep 17 00:00:00 2001 From: Pavel Galaton <40367670+pavel-personio@users.noreply.github.com> Date: Thu, 5 Dec 2019 18:37:47 +0100 Subject: [PATCH 2/2] Update personio-personnel-data-api-oa3.yaml --- personio-personnel-data-api-oa3.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 7ceb064..c4f28b3 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -616,6 +616,7 @@ paths: comment: I was productive as hell is_holiday: false is_on_time_off: false + project_id: null - id: 1235 type: AttendancePeriod attributes: @@ -624,9 +625,10 @@ paths: start_time: '9:30' end_time: '18:30' break: 60 - comment: I wasn't productive + comment: I wasn't productive on this project is_holiday: false is_on_time_off: true + project_id: 716563 post: tags: - Attendances