---
title: "Update the details of the specified form"
method: PUT
path: "/forms/{key}"
tags: ["Form"]
---

# Update the details of the specified form

`PUT /forms/{key}`

## Request

- Base URL: `https://app.cabinpanda.dev/api/v1`
- URL: `https://app.cabinpanda.dev/api/v1/forms/{key}`
- Auth: HTTP bearer

## Path parameters

- `key` string, required

## Request body

- FormUpdateBody
  - `publish` boolean
  - `name` string
  - `form_template_id` integer
  - `font_id` integer
  - `show_errors` 'below_the_field' | 'group'
  - `style` string
  - `custom_js` string
  - `form_expire_at` string
  - `disable_on_submission_count` integer
  - `language` 'en' | 'tr' | 'zh-CN' | 'zh-TW' | 'zh-HK'
  - `detail` object[]
    - `form_status` 'enabled' | 'disabled' | 'disable_on_date' | 'disable_on_submission'
    - `key` string
    - `redirect_on_submit` boolean
    - `redirect_on_submit_link` string
    - `domain_check` boolean
    - `allowed_domains` unknown[]
      - unknown
    - `allowed_pages` string
    - `branding` boolean
    - `validation_on_blur` boolean
    - `submit_button_label` string
    - `messages` object
      - `success_message` string
      - `error_message` string
    - `popup` object
      - `popup_trigger_after_scroll` boolean
      - `popup_trigger_after_seconds` integer
      - `popup_trigger_after` boolean
      - `popup_trigger_after_scroll_percentage` integer
      - `popup_exit_intent` boolean
      - `popup_trigger_automatically_at_most` string
      - `popup_trigger_conditions` string
      - `modal_background` string
      - `modal_background_size` integer
      - `modal_hero_image` string
      - `modal_style_variation` integer
      - `modal_text_color` string
  - `dependent_fields` object[]
    - `key` string
    - `field_key` string
    - `condition` 'is_equal_to' | 'is_not_equal_to' | 'is_empty' | 'is_not_empty' | 'is_greater_than' | 'is_less_than' | 'contains' | 'not_contains' | 'starts_with' | 'ends_with' | 'alphanumeric' | 'value_length_less_than' | 'value_length_more_than'
    - `dependent_field_key` string
  - `dependent_receivers` object[]
    - `field_key` string
    - `field_label` string
    - `condition_id` integer
    - `value` string
    - `receiver_email` string
  - `items` object[]
    - `key` string
    - `field_type_id` integer
    - `label` string
    - `default_value` string
    - `column` integer
    - `row` integer
    - `step` integer
    - `options` object[]
      - `name` string
    - `payment_country` string
    - `payment_currency` string
    - `payment_email` string
    - `appointment_settings` object
      - `future_time_duration` integer
      - `future_time_period` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
      - `event_duration` integer
      - `event_period` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
      - `available_event_duration` integer
      - `available_event_period` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
      - `buffer_time_duration` integer
      - `buffer_time_period` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
      - `scheduling_notice_duration` integer
      - `scheduling_notice_period` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
      - `max_events_per_day` integer
      - `monday` boolean
      - `monday_start` string
      - `monday_end` string
      - `tuesday` boolean
      - `tuesday_start` string
      - `tuesday_end` string
      - `wednesday` boolean
      - `wednesday_start` string
      - `wednesday_end` string
      - `thursday` boolean
      - `thursday_start` string
      - `thursday_end` string
      - `friday` boolean
      - `friday_start` string
      - `friday_end` string
      - `saturday` boolean
      - `saturday_start` string
      - `saturday_end` string
      - `sunday` boolean
      - `sunday_start` string
      - `sunday_end` string

## Response `200`

OK

---

[API](https://skmtc.dev/cabinpanda/apis/cabinpanda-api-docs.md) · [All operations](https://skmtc.dev/cabinpanda/apis/cabinpanda-api-docs/llms.txt) · [OpenAPI document](https://skmtc.dev/cabinpanda/apis/cabinpanda-api-docs/revisions/70fd15712347?raw)
