# Cliniko

> Manage Cliniko patients and appointments, find free times, read practitioners, businesses, invoices and treatment notes, and follow new patients, bookings, cancellations, invoices and notes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/cliniko

## Actions

### Archive appointment

Archive an appointment, taking it off the calendar.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived": true,
    "cancelled": true,
    "id": "example"
  }
}
```

### Archive patient

Archive a patient. Cliniko keeps their records, and they can be unarchived in Cliniko.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cliniko ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived": true,
    "cancelled": true,
    "id": "example"
  }
}
```

### Archive treatment note

Archive a treatment note.

**Inputs**

- Treatment note ID (`treatment_note_id`, text, required): The treatment note's ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived": true,
    "cancelled": true,
    "id": "example"
  }
}
```

### Cancel appointment

Cancel an appointment, with the reason.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.
- Reason (`reason`, text, required): Why it was cancelled. One of: `10` (Feeling better), `20` (Condition worse), `30` (Sick), `40` (Away), `50` (Other), `60` (Work).
- Cancellation note (`note`, text): A note on the cancellation.
- Cancel repeats too (`apply_to_repeats`, true/false): Also cancel the appointments it repeats as.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived": true,
    "cancelled": true,
    "id": "example"
  }
}
```

### Create appointment

Book an individual appointment for a patient with a practitioner.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cliniko ID.
- Practitioner (`practitioner_id`, text, required): The practitioner.
- Appointment type (`appointment_type_id`, text, required): The appointment type.
- Business (`business_id`, text, required): The business.
- Starts at (`starts_at`, date and time, required): When the appointment starts.
- Ends at (`ends_at`, date and time): When it ends. Leave empty to use the appointment type's length.
- Notes (`notes`, text): Notes on the appointment.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment_type": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "business": {
      "links": {
        "self": "example"
      }
    },
    "cancellation_note": "example",
    "cancellation_reason": 1,
    "cancellation_reason_description": "example",
    "cancelled_at": "example",
    "created_at": "example",
    "did_not_arrive": true,
    "email_reminder_sent": true,
    "ends_at": "example",
    "id": "example",
    "invoice_status": 1,
    "links": {
      "self": "example"
    },
    "notes": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "patient_arrived": true,
    "patient_name": "example",
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "sms_reminder_sent": true,
    "starts_at": "example",
    "telehealth_url": "example",
    "treatment_note_status": 1,
    "updated_at": "example"
  }
}
```

### Create patient

Add a patient to Cliniko.

**Inputs**

- First name (`first_name`, text, required): The patient's first name.
- Last name (`last_name`, text, required): The patient's last name.
- Title (`title`, text): Title, such as Mrs or Dr.
- Preferred first name (`preferred_first_name`, text): The name the patient goes by, if not their first name.
- Email (`email`, text): Email address.
- Date of birth (`date_of_birth`, date): Date of birth.
- Phone number (`phone`, text): A phone number for the patient.
- Phone type (`phone_type`, text): What kind of number Phone number is. Leave empty for mobile. One of: `Mobile`, `Home`, `Work`, `Fax`, `Other`.
- Sex (`sex`, text): Sex, as recorded in Cliniko.
- Gender identity (`gender_identity`, text): Gender identity.
- Address line 1 (`address_1`, text): First line of the address.
- Address line 2 (`address_2`, text): Second line of the address.
- City (`city`, text): City or suburb.
- State (`state`, text): State, county or province.
- Postcode (`post_code`, text): Postcode or ZIP code.
- Country (`country`, text): Country.
- Occupation (`occupation`, text): Occupation.
- Referral source (`referral_source`, text): How the patient heard of you.
- Notes (`notes`, text): General notes on the patient.
- Appointment notes (`appointment_notes`, text): Notes shown with each of the patient's appointments.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "accepted_privacy_policy": true,
    "address_1": "example",
    "address_2": "example",
    "address_3": "example",
    "appointment_notes": "example",
    "appointments": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "city": "example",
    "country": "example",
    "country_code": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "email": "example",
    "first_name": "example",
    "gender_identity": "example",
    "id": "example",
    "invoices": {
      "links": {
        "self": "example"
      }
    },
    "label": "example",
    "last_name": "example",
    "links": {
      "self": "example"
    },
    "notes": "example",
    "occupation": "example",
    "patient_phone_numbers": [
      {
        "normalized_number": "example",
        "number": "example",
        "phone_type": "example"
      }
    ],
    "post_code": "example",
    "preferred_first_name": "example",
    "referral_source": "example",
    "sex": "example",
    "state": "example",
    "time_zone": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### Create treatment note

Write a treatment note for a patient, from a template, with your text as its notes.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cliniko ID.
- Template (`template_id`, text, required): The treatment note template the note is filed under.
- Title (`title`, text, required): The note's title.
- Notes (`notes`, text, required): What the note says.
- Section heading (`section`, text): The heading the notes go under. Leave empty for Notes.
- Appointment ID (`appointment_id`, text): The appointment the note is for, if any.
- Draft (`draft`, true/false): Keep it as a draft that can still be edited. Leave empty to save a draft.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived_at": "example",
    "author_name": "example",
    "content": {
      "sections": [
        {}
      ]
    },
    "created_at": "example",
    "draft": true,
    "finalized_at": "example",
    "id": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "title": "example",
    "treatment_note_template": {
      "links": {
        "self": "example"
      }
    },
    "updated_at": "example"
  }
}
```

### Get appointment

Get an appointment's times, patient, practitioner, notes and whether the patient arrived.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment_type": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "business": {
      "links": {
        "self": "example"
      }
    },
    "cancellation_note": "example",
    "cancellation_reason": 1,
    "cancellation_reason_description": "example",
    "cancelled_at": "example",
    "created_at": "example",
    "did_not_arrive": true,
    "email_reminder_sent": true,
    "ends_at": "example",
    "id": "example",
    "invoice_status": 1,
    "links": {
      "self": "example"
    },
    "notes": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "patient_arrived": true,
    "patient_name": "example",
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "sms_reminder_sent": true,
    "starts_at": "example",
    "telehealth_url": "example",
    "treatment_note_status": 1,
    "updated_at": "example"
  }
}
```

### Get appointment type

Get an appointment type's length, category and online booking settings.

**Inputs**

- Appointment type (`appointment_type_id`, text, required): The appointment type.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived_at": "example",
    "category": "example",
    "color": "example",
    "created_at": "example",
    "deposit_price": "example",
    "description": "example",
    "duration_in_minutes": 1,
    "id": "example",
    "max_attendees": 1,
    "name": "example",
    "online_payments_enabled": true,
    "show_in_online_bookings": true,
    "telehealth_enabled": true,
    "updated_at": "example"
  }
}
```

### Get invoice

Get an invoice's number, status, amounts and payment link.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "business": {
      "links": {
        "self": "example"
      }
    },
    "closed_at": "example",
    "created_at": "example",
    "discounted_amount": "example",
    "id": "example",
    "invoice_to": "example",
    "issue_date": "example",
    "net_amount": "example",
    "notes": "example",
    "number": 1,
    "online_payment_url": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "status": 1,
    "status_description": "example",
    "tax_amount": "example",
    "total_amount": "example",
    "updated_at": "example"
  }
}
```

### Get next available time

Find the first start time a practitioner has free for an appointment type at a business, within a week.

**Inputs**

- Business (`business_id`, text, required): The business.
- Practitioner (`practitioner_id`, text, required): The practitioner.
- Appointment type (`appointment_type_id`, text, required): The appointment type.
- From (`from_date`, date, required): The first day to look on. It can't be in the past.
- To (`to_date`, date, required): The last day to look on, up to 7 days after From.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment_start": "example"
  }
}
```

### Get patient

Get a patient's details, contact information and notes.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cliniko ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "accepted_privacy_policy": true,
    "address_1": "example",
    "address_2": "example",
    "address_3": "example",
    "appointment_notes": "example",
    "appointments": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "city": "example",
    "country": "example",
    "country_code": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "email": "example",
    "first_name": "example",
    "gender_identity": "example",
    "id": "example",
    "invoices": {
      "links": {
        "self": "example"
      }
    },
    "label": "example",
    "last_name": "example",
    "links": {
      "self": "example"
    },
    "notes": "example",
    "occupation": "example",
    "patient_phone_numbers": [
      {
        "normalized_number": "example",
        "number": "example",
        "phone_type": "example"
      }
    ],
    "post_code": "example",
    "preferred_first_name": "example",
    "referral_source": "example",
    "sex": "example",
    "state": "example",
    "time_zone": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### Get practitioner

Get a practitioner's name, designation and whether they take online bookings.

**Inputs**

- Practitioner (`practitioner_id`, text, required): The practitioner.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "active": true,
    "created_at": "example",
    "description": "example",
    "designation": "example",
    "display_name": "example",
    "first_name": "example",
    "id": "example",
    "label": "example",
    "last_name": "example",
    "show_in_online_bookings": true,
    "title": "example",
    "updated_at": "example",
    "user": {
      "links": {
        "self": "example"
      }
    }
  }
}
```

### Get treatment note

Get a treatment note with its content.

**Inputs**

- Treatment note ID (`treatment_note_id`, text, required): The treatment note's ID.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "archived_at": "example",
    "author_name": "example",
    "content": {
      "sections": [
        {}
      ]
    },
    "created_at": "example",
    "draft": true,
    "finalized_at": "example",
    "id": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "title": "example",
    "treatment_note_template": {
      "links": {
        "self": "example"
      }
    },
    "updated_at": "example"
  }
}
```

### List appointment types

List the account's appointment types, with their lengths.

**Inputs**

- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment_types": [
      {
        "archived_at": "example",
        "category": "example",
        "color": "example",
        "created_at": "example",
        "deposit_price": "example",
        "description": "example",
        "duration_in_minutes": 1,
        "id": "example",
        "max_attendees": 1,
        "name": "example",
        "online_payments_enabled": true,
        "show_in_online_bookings": true,
        "telehealth_enabled": true,
        "updated_at": "example"
      }
    ],
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1
  }
}
```

### List appointments

List individual appointments, by practitioner, business or patient, in a time range, or changed since a time.

**Inputs**

- Practitioner (`practitioner_id`, text): The practitioner.
- Business (`business_id`, text): The business.
- Patient ID (`patient_id`, text): The patient's Cliniko ID.
- Starting from (`starts_after`, date and time): Only appointments starting at or after this time.
- Starting until (`starts_before`, date and time): Only appointments starting at or before this time.
- Created since (`created_since`, date and time): Only those created at or after this time.
- Changed since (`updated_since`, date and time): Only those changed at or after this time.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "individual_appointments": [
      {
        "appointment_type": {
          "links": {
            "self": "example"
          }
        },
        "archived_at": "example",
        "business": {
          "links": {
            "self": "example"
          }
        },
        "cancellation_note": "example",
        "cancellation_reason": 1,
        "cancellation_reason_description": "example",
        "cancelled_at": "example",
        "created_at": "example",
        "did_not_arrive": true,
        "email_reminder_sent": true,
        "ends_at": "example",
        "id": "example",
        "invoice_status": 1,
        "links": {
          "self": "example"
        },
        "notes": "example",
        "patient": {
          "links": {
            "self": "example"
          }
        },
        "patient_arrived": true,
        "patient_name": "example",
        "practitioner": {
          "links": {
            "self": "example"
          }
        },
        "sms_reminder_sent": true,
        "starts_at": "example",
        "telehealth_url": "example",
        "treatment_note_status": 1,
        "updated_at": "example"
      }
    ],
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1
  }
}
```

### List available times

List the start times a practitioner has free for an appointment type at a business, over up to a week.

**Inputs**

- Business (`business_id`, text, required): The business.
- Practitioner (`practitioner_id`, text, required): The practitioner.
- Appointment type (`appointment_type_id`, text, required): The appointment type.
- From (`from_date`, date, required): The first day to look on. It can't be in the past.
- To (`to_date`, date, required): The last day to look on, up to 7 days after From.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "available_times": [
      {
        "appointment_start": "example"
      }
    ],
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1
  }
}
```

### List businesses

List the account's businesses (locations), with their addresses and time zones.

**Inputs**

- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "businesses": [
      {
        "address_1": "example",
        "address_2": "example",
        "appointment_type_ids": [
          "example"
        ],
        "archived_at": "example",
        "business_name": "example",
        "city": "example",
        "contact_information": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "display_name": "example",
        "email_reply_to": "example",
        "id": "example",
        "label": "example",
        "post_code": "example",
        "show_in_online_bookings": true,
        "state": "example",
        "time_zone": "example",
        "time_zone_identifier": "example",
        "updated_at": "example",
        "website_address": "example"
      }
    ],
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1
  }
}
```

### List invoices

List invoices, by patient, practitioner, business or status, issued or changed since a date.

**Inputs**

- Patient ID (`patient_id`, text): The patient's Cliniko ID.
- Practitioner (`practitioner_id`, text): The practitioner.
- Business (`business_id`, text): The business.
- Status (`status`, text): Only invoices with this status. One of: `open`, `paid`, `closed`, `open_credit` (Open credit).
- Issued since (`issued_since`, date): Only invoices issued on or after this date.
- Changed since (`updated_since`, date and time): Only those changed at or after this time.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "invoices": [
      {
        "appointment": {
          "links": {
            "self": "example"
          }
        },
        "archived_at": "example",
        "business": {
          "links": {
            "self": "example"
          }
        },
        "closed_at": "example",
        "created_at": "example",
        "discounted_amount": "example",
        "id": "example",
        "invoice_to": "example",
        "issue_date": "example",
        "net_amount": "example",
        "notes": "example",
        "number": 1,
        "online_payment_url": "example",
        "patient": {
          "links": {
            "self": "example"
          }
        },
        "practitioner": {
          "links": {
            "self": "example"
          }
        },
        "status": 1,
        "status_description": "example",
        "tax_amount": "example",
        "total_amount": "example",
        "updated_at": "example"
      }
    ],
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1
  }
}
```

### List patients

List or search patients by name, email or date of birth, or those changed since a time.

**Inputs**

- First name contains (`first_name`, text): Only patients whose first name contains this.
- Last name contains (`last_name`, text): Only patients whose last name contains this.
- Email (`email`, text): Only the patient with this email address.
- Date of birth (`date_of_birth`, date): Only patients born on this date.
- Created since (`created_since`, date and time): Only those created at or after this time.
- Changed since (`updated_since`, date and time): Only those changed at or after this time.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "patients": [
      {
        "accepted_privacy_policy": true,
        "address_1": "example",
        "address_2": "example",
        "address_3": "example",
        "appointment_notes": "example",
        "appointments": {
          "links": {
            "self": "example"
          }
        },
        "archived_at": "example",
        "city": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "date_of_birth": "example",
        "email": "example",
        "first_name": "example",
        "gender_identity": "example",
        "id": "example",
        "invoices": {
          "links": {
            "self": "example"
          }
        },
        "label": "example",
        "last_name": "example",
        "links": {
          "self": "example"
        },
        "notes": "example",
        "occupation": "example",
        "patient_phone_numbers": [
          {
            "normalized_number": "example",
            "number": "example",
            "phone_type": "example"
          }
        ],
        "post_code": "example",
        "preferred_first_name": "example",
        "referral_source": "example",
        "sex": "example",
        "state": "example",
        "time_zone": "example",
        "title": "example",
        "updated_at": "example"
      }
    ],
    "total_entries": 1
  }
}
```

### List practitioners

List the account's active practitioners.

**Inputs**

- Changed since (`updated_since`, date and time): Only those changed at or after this time.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "practitioners": [
      {
        "active": true,
        "created_at": "example",
        "description": "example",
        "designation": "example",
        "display_name": "example",
        "first_name": "example",
        "id": "example",
        "label": "example",
        "last_name": "example",
        "show_in_online_bookings": true,
        "title": "example",
        "updated_at": "example",
        "user": {
          "links": {
            "self": "example"
          }
        }
      }
    ],
    "total_entries": 1
  }
}
```

### List treatment note templates

List the account's treatment note templates.

**Inputs**

- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1,
    "treatment_note_templates": [
      {
        "archived_at": "example",
        "created_at": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List treatment notes

List treatment notes, a patient's or every patient's, or those changed since a time.

**Inputs**

- Patient ID (`patient_id`, text): The patient's Cliniko ID.
- Practitioner (`practitioner_id`, text): The practitioner.
- Created since (`created_since`, date and time): Only those created at or after this time.
- Changed since (`updated_since`, date and time): Only those changed at or after this time.
- Page (`page`, number): Which page of results, starting at 1. Leave empty for the first. At least 1.
- Per page (`per_page`, number): How many per page, up to 100. Leave empty for 50. From 1 to 100.
- Order (`order`, text): Oldest or newest first. Leave empty for oldest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "links": {
      "next": "example",
      "previous": "example",
      "self": "example"
    },
    "total_entries": 1,
    "treatment_notes": [
      {
        "archived_at": "example",
        "author_name": "example",
        "content": {
          "sections": [
            {}
          ]
        },
        "created_at": "example",
        "draft": true,
        "finalized_at": "example",
        "id": "example",
        "patient": {
          "links": {
            "self": "example"
          }
        },
        "practitioner": {
          "links": {
            "self": "example"
          }
        },
        "title": "example",
        "treatment_note_template": {
          "links": {
            "self": "example"
          }
        },
        "updated_at": "example"
      }
    ]
  }
}
```

### Update appointment

Move an appointment or change its practitioner, type or notes. Only the fields filled in change.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.
- Practitioner (`practitioner_id`, text): The practitioner.
- Appointment type (`appointment_type_id`, text): The appointment type.
- Business (`business_id`, text): The business.
- Starts at (`starts_at`, date and time): When the appointment starts.
- Ends at (`ends_at`, date and time): When it ends. Leave empty to use the appointment type's length.
- Notes (`notes`, text): Notes on the appointment.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "appointment_type": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "business": {
      "links": {
        "self": "example"
      }
    },
    "cancellation_note": "example",
    "cancellation_reason": 1,
    "cancellation_reason_description": "example",
    "cancelled_at": "example",
    "created_at": "example",
    "did_not_arrive": true,
    "email_reminder_sent": true,
    "ends_at": "example",
    "id": "example",
    "invoice_status": 1,
    "links": {
      "self": "example"
    },
    "notes": "example",
    "patient": {
      "links": {
        "self": "example"
      }
    },
    "patient_arrived": true,
    "patient_name": "example",
    "practitioner": {
      "links": {
        "self": "example"
      }
    },
    "sms_reminder_sent": true,
    "starts_at": "example",
    "telehealth_url": "example",
    "treatment_note_status": 1,
    "updated_at": "example"
  }
}
```

### Update patient

Change a patient's details. Only the fields filled in change.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cliniko ID.
- First name (`first_name`, text): The patient's first name.
- Last name (`last_name`, text): The patient's last name.
- Title (`title`, text): Title, such as Mrs or Dr.
- Preferred first name (`preferred_first_name`, text): The name the patient goes by, if not their first name.
- Email (`email`, text): Email address.
- Date of birth (`date_of_birth`, date): Date of birth.
- Phone number (`phone`, text): A phone number for the patient.
- Phone type (`phone_type`, text): What kind of number Phone number is. Leave empty for mobile. One of: `Mobile`, `Home`, `Work`, `Fax`, `Other`.
- Sex (`sex`, text): Sex, as recorded in Cliniko.
- Gender identity (`gender_identity`, text): Gender identity.
- Address line 1 (`address_1`, text): First line of the address.
- Address line 2 (`address_2`, text): Second line of the address.
- City (`city`, text): City or suburb.
- State (`state`, text): State, county or province.
- Postcode (`post_code`, text): Postcode or ZIP code.
- Country (`country`, text): Country.
- Occupation (`occupation`, text): Occupation.
- Referral source (`referral_source`, text): How the patient heard of you.
- Notes (`notes`, text): General notes on the patient.
- Appointment notes (`appointment_notes`, text): Notes shown with each of the patient's appointments.

**Outputs**

- `data` (object): The response from Cliniko.

**Example output**

```json
{
  "data": {
    "accepted_privacy_policy": true,
    "address_1": "example",
    "address_2": "example",
    "address_3": "example",
    "appointment_notes": "example",
    "appointments": {
      "links": {
        "self": "example"
      }
    },
    "archived_at": "example",
    "city": "example",
    "country": "example",
    "country_code": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "email": "example",
    "first_name": "example",
    "gender_identity": "example",
    "id": "example",
    "invoices": {
      "links": {
        "self": "example"
      }
    },
    "label": "example",
    "last_name": "example",
    "links": {
      "self": "example"
    },
    "notes": "example",
    "occupation": "example",
    "patient_phone_numbers": [
      {
        "normalized_number": "example",
        "number": "example",
        "phone_type": "example"
      }
    ],
    "post_code": "example",
    "preferred_first_name": "example",
    "referral_source": "example",
    "sex": "example",
    "state": "example",
    "time_zone": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```
