---
title: "Update a space"
method: PATCH
path: "/api/w/{wId}/spaces/{spaceId}"
tags: ["Private Spaces"]
---

# Update a space

`PATCH /api/w/{wId}/spaces/{spaceId}`

Updates the properties of a specific space.

## Path parameters

- `wId` string, required
- `spaceId` string, required

## Request body

- object
  - `name` string
  - `content` object[]
    - `dataSourceId` string
    - `parentsIn` string[]

## Response `200`

Success

- object
  - `space` PrivateSpace — A space in the workspace.
    - `sId` string, required
    - `name` string, required
    - `kind` 'global' | 'system' | 'conversations' | 'regular' | 'project', required
    - `groupIds` string[], required
    - `isRestricted` boolean, required
    - `managementMode` 'manual' | 'group', required
    - `createdAt` integer
    - `updatedAt` integer

## Other responses

- `401` — Unauthorized

---

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