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

# Unlink Appointment

> A `POST` to the `/appointments/{appointmentId}/unlink` endpoint allows your application to unlink an appointment from another record.



## OpenAPI

````yaml post /v3/appointments/{appointment}/unlink
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/appointments/{appointment}/unlink:
    post:
      tags:
        - Appointment Link
      summary: Unlink Appointment
      description: >-
        A `POST` to the `/appointments/{appointmentId}/unlink` endpoint allows
        your application to unlink an appointment from another record.
      operationId: appointmentLink.unlink
      parameters:
        - name: appointment
          in: path
          required: true
          description: The appointment ID
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppointmentLinkAction'
      responses:
        '204':
          description: No content
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    AppointmentLinkAction:
      type: object
      description: >-
        Payload validation for both POST /appointments/{appointment}/link and

        POST /appointments/{appointment}/unlink. Type must be one of the
        whitelisted

        morph aliases; id format depends on the type (UUID for profile, integer
        for

        everything else).
      properties:
        type:
          type: string
          enum:
            - profile
            - list
        id:
          type: string
      required:
        - type
        - id
      title: AppointmentLinkAction
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````