---
title: "PATCH /widgets/{id}"
method: PATCH
path: "/widgets/{id}"
tags: ["Bots"]
---

# PATCH /widgets/{id}

`PATCH /widgets/{id}`

PATCH operation for /widgets/{id}

## Path parameters

- `id` string, required

## Request body

- WidgetSerializer
  - `id` integer
  - `bot` string, required
  - `mode` 'light' | 'dark'
  - `position` 'bottom_left' | 'bottom_right'
  - `bot_logo_url` string
  - `bot_logo` string, binary
  - `header_text` string
  - `welcome_message` string
  - `show_powered_by` boolean
  - `is_email_required` boolean
  - `primary_color` string
  - `header_text_color` string
  - `background_color` string
  - `bot_message_bg` string
  - `bot_message_text` string
  - `user_message_bg` string
  - `user_message_text` string
  - `created_at` string, date-time
  - `modified_at` string, date-time

## Response `200`

Successful response

- WidgetSerializer
  - `id` integer
  - `bot` string, required
  - `mode` 'light' | 'dark'
  - `position` 'bottom_left' | 'bottom_right'
  - `bot_logo_url` string
  - `bot_logo` string, binary
  - `header_text` string
  - `welcome_message` string
  - `show_powered_by` boolean
  - `is_email_required` boolean
  - `primary_color` string
  - `header_text_color` string
  - `background_color` string
  - `bot_message_bg` string
  - `bot_message_text` string
  - `user_message_bg` string
  - `user_message_text` string
  - `created_at` string, date-time
  - `modified_at` string, date-time

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.dev/onboard/apis/onboard-api-complete-specification.md) · [All operations](https://skmtc.dev/onboard/apis/onboard-api-complete-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onboard/onboard-api-complete-specification/revisions/3d0f0a6a632d/schema)
