---
title: "Turn the chat on or off (plugin)"
method: PUT
path: "/wordpress/connection/embeds"
tags: ["WordPress"]
---

# Turn the chat on or off (plugin)

`PUT /wordpress/connection/embeds`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/wordpress/connection/embeds`
- Auth: HTTP bearer

Called by the plugin when the admin turns the chat window on or off, or sets up the forms. Makes sure a public token allows the site. Send the version it showed; a newer one gives 409.

## Request body

- object
  - `chat` object, nullable
    - `enabled` boolean, required
  - `version` integer, nullable

## Response `200`

The new settings.

## Other responses

- `400`: Bad Request: invalid_json.
- `401`: Unauthorized: unauthorized.
- `403`: Forbidden: forbidden.
- `409`: Conflict: conflict.
- `422`: Unprocessable Content: validation_failed.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.

---

[API](https://skmtc.dev/hypamoon/apis/hypamoon-api.md) · [All operations](https://skmtc.dev/hypamoon/apis/hypamoon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypamoon/apis/hypamoon-api/revisions/9f0b90004c06?raw)
