---
title: "Move sessions into a group or reset their keys"
method: POST
path: "/api/session-moves"
tags: ["Sessions"]
---

# Move sessions into a group or reset their keys

`POST /api/session-moves`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/session-moves`
- Auth: HTTP bearer

## Request body

- object
  - `rootTaskIds` string[], required
  - `groupKey` string, nullable, required: Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form.

## Response `200`

Moved and skipped sessions

- object
  - `moved` string[], required
  - `skipped` object[], required
    - `rootTaskId` string, required
    - `reason` string, required

## Other responses

- `400`: Invalid namespace or request
- `403`: Personal destination not authorized
- `409`: Moves blocked until audit warnings are repaired

## Changes

- **2026-10-22** `a2e24c51a750`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/session-moves/post.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/7e4c7198192a?raw)
