From 8f40f8438a56959b2df42d0e1d4bb4cbfa6148ad Mon Sep 17 00:00:00 2001 From: Ahmed Tayel Date: Thu, 26 Jun 2025 13:32:58 +0200 Subject: [PATCH 1/2] [PAT-1344] update project papi docs --- personio-personnel-data-api-oa3.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index dc1dc13..49fcd63 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -1459,9 +1459,14 @@ paths: success: type: boolean example: false - message: - type: string - example: "Project 5 not found" + error: + type: object + properties: + code: + type: integer + message: + type: string + example: "Project 5 not found" patch: security: @@ -1520,6 +1525,10 @@ paths: items: type: string example: "Active field needs to be of type boolean" + name: + type: string + description: This field would be included only if the new name is already used by another project + example: "Project name already exists" "404": description: Project not found content: From 150aa746faf80766427a8379d46d378bbdb8cd10 Mon Sep 17 00:00:00 2001 From: Ahmed Tayel Date: Thu, 26 Jun 2025 15:04:13 +0200 Subject: [PATCH 2/2] adding error for deleting a project with existing attendances --- personio-personnel-data-api-oa3.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 821d1ac..88e74da 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -1651,6 +1651,24 @@ paths: message: type: string example: "Project 5 not found" + "409": + description: There are existing attendances for this project + content: + application/json: + schema: + type: object + properties: + success: + type: boolean + example: false + error: + type: object + properties: + code: + type: integer + message: + type: string + example: "There are existing attendances for this project." patch: security: