openapi: 3.1.0 info: title: API Reference subpackage_auth.subpackage_auth/default subpackage_medication-dispense.subpackage_medication-dispense/v1 API version: 1.0.0 servers: - url: https://pre-api.joincandidhealth.com description: Production - url: https://pre-api-staging.joincandidhealth.com description: Staging - url: https://sandbox-pre-api.joincandidhealth.com description: CandidSandbox - url: https://staging-pre-api.joincandidhealth.com description: CandidStaging - url: http://localhost:4000 description: Local - url: https://api.joincandidhealth.com description: Production - url: https://api-staging.joincandidhealth.com description: Staging - url: https://sandbox-api.joincandidhealth.com description: CandidSandbox - url: https://staging-api.joincandidhealth.com description: CandidStaging - url: http://localhost:5050 description: Local tags: - name: subpackage_medication-dispense.subpackage_medication-dispense/v1 paths: /api/medication-dispense/v1: post: operationId: create summary: Medication Dispense Create tags: - subpackage_medication-dispense.subpackage_medication-dispense/v1 parameters: - name: Authorization in: header description: OAuth authentication required: true schema: type: string responses: '200': description: Response with status 200 content: application/json: schema: $ref: '#/components/schemas/type_encounters/v4:Encounter' '404': description: Error response with status 404 content: application/json: schema: type: object properties: errorName: type: string enum: - EntityNotFoundError content: $ref: '#/components/schemas/type_commons:EntityNotFoundErrorMessage' required: - errorName - content '422': description: Error response with status 422 content: application/json: schema: type: object properties: errorName: type: string enum: - InvalidTagNamesError content: $ref: '#/components/schemas/type_encounters/v4:InvalidTagNamesErrorType' required: - errorName - content requestBody: content: application/json: schema: $ref: '#/components/schemas/type_medication-dispense/v1:MedicationDispenseCreate' components: schemas: type_commons:EntityNotFoundErrorMessage: type: object properties: id: type: string required: - id title: EntityNotFoundErrorMessage securitySchemes: OAuthScheme: type: http scheme: bearer description: OAuth 2.0 authentication