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

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
