---
title: "Update provider session ID on an active session"
method: PUT
path: "/api/active-sessions/provider-session/{taskId}"
tags: ["Active Sessions"]
---

# Update provider session ID on an active session

`PUT /api/active-sessions/provider-session/{taskId}`

## Path parameters

- `taskId` string, required

## Request body

- object
  - `providerSessionId` string, required

## Response `200`

Provider session ID updated

- object
  - `updated` boolean, required

## Changes

- **2026-08-07** `06cac6a7c5bc` — 1 info
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/active-sessions/provider-session/:taskId/put.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4d23bb3d853c?raw)
