> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hr-easy.nlead.ch/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove a medical certificate from one of the caller's sick-leave entries.



## OpenAPI

````yaml /api-reference/portal.v1.json delete /api/v1/portal/employee/sick-leave/{id}/certificates/{certificateId}
openapi: 3.0.3
info:
  title: Swiss HR Easy — Employee Portal API
  version: 1.0.0
  description: >-
    Versioned contract for the employee self-service portal endpoints consumed
    by the mobile app. Generated from Zod schemas — do not edit by hand (run
    `npm run gen:openapi`).
servers:
  - url: https://{tenantHost}
    description: >-
      Per-tenant deployment host. Swiss HR Easy is single-tenant, so each
      customer install serves this contract from its own host.
security: []
tags:
  - name: profile
    description: Employee profile overview and entitlements.
  - name: leave
    description: Employee leave balances and requests.
  - name: time
    description: Employee time tracking and weekly summaries.
  - name: sick-leave
    description: Employee sick-leave reports and summaries.
  - name: payslips
    description: Employee payslips and deduction breakdowns.
  - name: compensation
    description: The caller's compensation role, salary band and placement rationale.
  - name: auth
    description: Current-session retrieval and logout for the mobile app.
  - name: holidays
    description: >-
      The days behind the vacation day count that cost less than a full day:
      public holidays, school holidays, and Betriebsferien days the caller was
      approved to work through.
paths:
  /api/v1/portal/employee/sick-leave/{id}/certificates/{certificateId}:
    delete:
      tags:
        - sick-leave
      summary: >-
        Remove a medical certificate from one of the caller's sick-leave
        entries.
      operationId: deleteSickLeaveCertificate
      parameters:
        - name: id
          in: path
          required: true
          description: Id of the sick-leave entry the certificate belongs to.
          schema:
            type: string
        - name: certificateId
          in: path
          required: true
          description: Id of the medical certificate.
          schema:
            type: string
      responses:
        '200':
          description: The removed certificate.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                additionalProperties: false
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/SickLeaveCertificateDTO'
        '401':
          description: The caller is not authenticated.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '403':
          description: The entry does not belong to the caller.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: The entry or certificate was not found.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
components:
  schemas:
    SickLeaveCertificateDTO:
      type: object
      properties:
        id:
          type: string
        sickLeaveEntryId:
          type: string
        name:
          type: string
          description: >-
            Display filename derived from the entry's period
            (arztzeugnis-<start>-<end>.<ext>, or arztzeugnis-ab-<start>.<ext>
            while ongoing) — clients should show this, not originalName
            (NLE-792).
        originalName:
          type: string
        mimeType:
          type: string
        size:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        downloadUrl:
          type: string
        uploadedAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        uploadedBy:
          nullable: true
          type: object
          properties:
            id:
              type: string
            name:
              type: string
          required:
            - id
            - name
          additionalProperties: false
      required:
        - id
        - sickLeaveEntryId
        - name
        - originalName
        - mimeType
        - size
        - downloadUrl
        - uploadedAt
        - uploadedBy
      additionalProperties: false

````