Discussions

Ask a Question
Back to All

Wrong schema for Post Response for the endpoint /company/time-offs

Hey Personio Dev Team,

I got another defect in your API definition:

  responses:
    "200":
      description: The absence period is successfully created
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: "#/components/schemas/AbsencePeriodResponse"

This has to be:

  responses:
    "200":
      description: The absence period is successfully created
      content:
        application/json:
          schema:
						$ref: "#/components/schemas/AbsencePeriodResponse"

Please correct this error.

Thanks.