---
title: "Update a webchat widget"
method: PATCH
path: "/v1/webchat/widgets/{widget_id}"
tags: ["webchat"]
---

# Update a webchat widget

`PATCH /v1/webchat/widgets/{widget_id}`

## Path parameters

- `widget_id` string, uuid, required

## Request body

- WidgetUpdate
  - `name` string, nullable
  - `is_enabled` boolean, nullable
  - `agent_id` string, uuid, nullable
  - `team_id` string, uuid, nullable
  - `agent_revision_id` string, uuid, nullable
  - `theme` object, nullable
  - `copy` object, nullable
  - `behavior` object, nullable
  - `limits` object, nullable

## Response `200`

Successful Response

- WidgetResponse
  - `id` string, uuid, required
  - `organization_id` string, uuid, required
  - `name` string, required
  - `is_enabled` boolean, required
  - `agent_id` string, uuid, nullable, required
  - `team_id` string, uuid, nullable, required
  - `agent_revision_id` string, uuid, nullable, required
  - `public_key` string, required
  - `kill_epoch` integer, required
  - `theme` object, required
  - `copy` object, required
  - `behavior` object, required
  - `limits` object, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `domains` DomainResponse[]
    - `id` string, uuid, required
    - `hostname` string, required
    - `include_subdomains` boolean, required
    - `verification_state` string, required
    - `verification_token` string, required
    - `verified_at` string, date-time, nullable, required
    - `last_checked_at` string, date-time, nullable, required
    - `failure_reason` string, nullable, required

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `404` — Resource not found
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/revisions/5a5597ebb2d6/schema)
