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

# Cancelar turno

> Requiere permiso write.



## OpenAPI

````yaml /api-reference/openapi.json delete /appointments/{id}
openapi: 3.1.0
info:
  title: OCLÜ API Pública
  description: >-
    API para integrar OCLÜ con sistemas externos (n8n, Make, Zapier, CRMs).
    Autenticación por API key. Las fechas y horas son hora local de la clínica.
    La API nunca expone datos clínicos.
  version: 1.0.0
servers:
  - url: https://{tenant}.oclucrm.com/api/v1
    description: Reemplazá {tenant} por el subdominio de tu clínica
    variables:
      tenant:
        default: tu-clinica
security:
  - apiKey: []
paths:
  /appointments/{id}:
    delete:
      tags:
        - Turnos
      summary: Cancelar turno
      description: Requiere permiso write.
      parameters:
        - $ref: '#/components/parameters/CurrentOrgId'
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Cancelado
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    CurrentOrgId:
      name: Current-Org-Id
      in: header
      required: true
      description: ID de la sede (ver GET /me)
      schema:
        type: integer
        example: 1
  responses:
    NotFound:
      description: No encontrado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key de la clínica. Header: Authorization: Bearer oclu_live_...'

````