33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
post:
|
|
tags: [Recipients]
|
|
summary: Create recipient
|
|
operationId: recipientsCreate
|
|
security:
|
|
- bearerAuth: []
|
|
parameters:
|
|
- $ref: ../parameters/org_ref.yaml#/components/parameters/OrgRef
|
|
requestBody:
|
|
$ref: ./bodies/recipient.yaml#/components/requestBodies/RecipientBody
|
|
responses:
|
|
'201':
|
|
description: Recipient created
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
|
|
- type: object
|
|
properties:
|
|
data:
|
|
$ref: ./response/recipient.yaml#/components/schemas/RecipientsAuthData
|
|
'400':
|
|
$ref: ../response/operation.yaml#/components/responses/BadRequest
|
|
'401':
|
|
$ref: ../response/operation.yaml#/components/responses/Unauthorized
|
|
'403':
|
|
$ref: ../response/operation.yaml#/components/responses/Forbidden
|
|
'409':
|
|
$ref: ../response/operation.yaml#/components/responses/Conflict
|
|
'500':
|
|
$ref: ../response/operation.yaml#/components/responses/InternalServerError
|