---
title: "Update a test session"
method: PUT
path: "/bot/{botId}/testSession/{leadId}"
tags: ["BotTesting"]
---

# Update a test session

`PUT /bot/{botId}/testSession/{leadId}`

## Path parameters

- `leadId` string, required
- `botId` string, required

## Request body

- UpdateSessionInput
  - `mimicSourceId` string, nullable

## Response `200`

Success

- UpdateSessionDto
  - `sessionId` string, nullable

---

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