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

---

[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/4f62e32be8ec?raw)
