---
title: "Save a bot"
method: POST
path: "/bot/{id}/save"
tags: ["Bot"]
---

# Save a bot

`POST /bot/{id}/save`

## Path parameters

- `id` string, required

## Request body

- SaveBotInput
  - `botSteps` unknown
  - `layoutOnly` boolean

## Response `200`

Success

- SaveBotResponse
  - `version` string, nullable
  - `invalidPaths` string[], nullable
  - `message` string, nullable

## Other responses

- `400` — Bad Request

---

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