---
title: "Update a source variable"
method: POST
path: "/botVariables/{botId}/{sourceId}"
tags: ["BotSourceVariable"]
---

# Update a source variable

`POST /botVariables/{botId}/{sourceId}`

## Path parameters

- `botId` string, required
- `sourceId` string, required

## Request body

- BotVariableUpdateInput[]
  - `id` string, nullable
  - `value` string, nullable

## Response `200`

Success

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[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)
