---
title: "Select Spaces for a conversation"
method: POST
path: "/api/w/{wId}/assistant/conversations/{cId}/selected_spaces"
tags: ["Private Conversations"]
---

# Select Spaces for a conversation

`POST /api/w/{wId}/assistant/conversations/{cId}/selected_spaces`

Appends regular Spaces to a conversation's explicit selected scope.

## Path parameters

- `wId` string, required
- `cId` string, required

## Request body

- object
  - `mode` 'add', required
  - `spaceIds` string[], required

## Response `200`

Selected Spaces and effective ACL summary.

- object
  - `selectedSpaces` object[]
    - `sId` string, required
    - `name` string, required
    - `kind` 'global' | 'system' | 'conversations' | 'regular' | 'project', required
    - `managementMode` 'manual' | 'group', required
    - `createdAt` integer
    - `updatedAt` integer
    - `selected` boolean
  - `effectiveAcl` object
    - `spaceIds` string[]
    - `viewerMustHaveAll` boolean

## Other responses

- `401` — Unauthorized

## Changes

- **2026-08-26** `184ee47db4cc` — 1 breaking
  - removed the required property `selectedSpaces/items/allOf[#/components/schemas/PrivateSpace]/isRestricted` from the response with the `200` status
- **2026-08-25** `916a8331ce55` — 1 breaking
  - removed the required property `selectedSpaces/items/allOf[#/components/schemas/PrivateSpace]/groupIds` from the response with the `200` status
- **2026-07-20** `89dbf1251af2` — 1 info
  - endpoint added
- **2026-07-17** `50e23587026b` — 1 breaking
  - api path removed without deprecation
- **2026-07-15** `8bbe27ffe998` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/dust-tt/apis/dust-api-documentation/changes/api/w/:wId/assistant/conversations/:cId/selected_spaces/post.md)

---

[API](https://skmtc.dev/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.dev/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/revisions/6a86efb64907/schema)
