Skip to content

Commit 97adefe

Browse files
authored
Merge pull request #207 from ahmad-tayel/master
[PAT-1344] Update projects V1 api error responses
2 parents 44845a7 + 150aa74 commit 97adefe

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

personio-personnel-data-api-oa3.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,9 +1643,32 @@ paths:
16431643
success:
16441644
type: boolean
16451645
example: false
1646-
message:
1647-
type: string
1648-
example: "Project 5 not found"
1646+
error:
1647+
type: object
1648+
properties:
1649+
code:
1650+
type: integer
1651+
message:
1652+
type: string
1653+
example: "Project 5 not found"
1654+
"409":
1655+
description: There are existing attendances for this project
1656+
content:
1657+
application/json:
1658+
schema:
1659+
type: object
1660+
properties:
1661+
success:
1662+
type: boolean
1663+
example: false
1664+
error:
1665+
type: object
1666+
properties:
1667+
code:
1668+
type: integer
1669+
message:
1670+
type: string
1671+
example: "There are existing attendances for this project."
16491672

16501673
patch:
16511674
security:
@@ -1705,6 +1728,10 @@ paths:
17051728
items:
17061729
type: string
17071730
example: "Active field needs to be of type boolean"
1731+
name:
1732+
type: string
1733+
description: This field would be included only if the new name is already used by another project
1734+
example: "Project name already exists"
17081735
"404":
17091736
description: Project not found
17101737
content:

0 commit comments

Comments
 (0)