Skip to content

Commit b69e744

Browse files
Merge pull request #381 from wazo-platform/WP-844-user-creation-openapi
Update OpenAPI specs for user creation Reviewed-by: Charles <contact@charleslanglois.dev> Reviewed-by: Pascal Cadotte Michaud <None>
2 parents d54320a + 737703e commit b69e744

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

wazo_confd/plugins/user/api.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,12 @@ definitions:
728728
type: array
729729
items:
730730
type: object
731+
description: One identifier(id or uuid) must be provided
731732
properties:
732733
uuid:
733734
type: string
735+
id:
736+
type: integer
734737
switchboards:
735738
type: array
736739
items:
@@ -740,7 +743,7 @@ definitions:
740743
type: string
741744
voicemail:
742745
$ref: '#/definitions/Voicemail'
743-
description: The body of a new voicemail or a body containing an existing voicemail id that should be associated to the user.
746+
description: The body of a new voicemail or a body containing an existing voicemail ID that should be associated to the user.
744747
auth:
745748
type: object
746749
properties:
@@ -772,6 +775,15 @@ definitions:
772775
- user
773776
- internal
774777
- external_api
778+
forwards:
779+
$ref: '#/definitions/UserForwards'
780+
description: The forwards related to the user
781+
fallbacks:
782+
$ref: '#/definitions/UserFallbacks'
783+
description: The fallbacks related to the user
784+
agent:
785+
description: The agent related to the user
786+
$ref: '#/definitions/UserRelationAgent'
775787
allOf:
776788
- $ref: '#/definitions/UserPostRelationIncalls'
777789
UserPostResponse:

0 commit comments

Comments
 (0)