---
title: "Update a routing form (partial)"
method: PATCH
path: "/appointments/routing-forms/{form_id}"
tags: ["Appointments"]
---

# Update a routing form (partial)

`PATCH /appointments/routing-forms/{form_id}`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/appointments/routing-forms/{form_id}`
- Auth: HTTP bearer

Partially update a routing form. Only sent fields are changed.

Omit a field to leave it untouched. Slug must be unique in the org (409 on
collision). Fields/routes are replaced atomically when present in the body.

## Path parameters

- `form_id` integer, required: Routing form integer ID.

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- UpdateRoutingFormRequest
  - `name` string, nullable
  - `slug` string, nullable
  - `description` string, nullable
  - `fields` RoutingFormField[], nullable
    - `id` string, nullable
    - `label` string, required
    - `identifier` string, nullable
    - `type` 'text' | 'email' | 'phone' | 'number' | 'textarea' | 'select' | 'multiselect' | 'radio' | 'checkbox'
    - `placeholder` string, nullable
    - `required` boolean
    - `options` RoutingFormFieldOption[]
      - `label` string, required
      - `value` string, required
      - `event_type_id` integer, nullable
  - `routes` RoutingFormRouteInput[], nullable
    - `conditions` RoutingFormCondition[]
      - `field_id` string, required
      - `operator` 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'is_empty' | 'is_not_empty' | 'greater_than' | 'less_than' | 'select_equals' | 'select_not_equals', required
      - `value` string
    - `action_type` 'redirect_event_type' | 'redirect_url' | 'show_message'
    - `action_value` string
    - `is_fallback` boolean
    - `position` integer
  - `disabled` boolean, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/2e7cfa0ca921?raw)
