---
title: "Workspaces"
description: "<p>Manage workspaces and their locales within a space.</p>"
url: "https://www.contentstack.com/docs/developers/apis/assets-api/workspaces"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-21"
---

# Workspaces

Manage workspaces and their locales within a space.

## Create a workspace

### Create a workspace

**POST** `/api/spaces/{space_uid}/workspaces`

The Create a workspace request creates a new workspace within the specified space. A workspace lets you group assets and manage their locales independently of other workspaces.

Set locales at creation to declare which languages the workspace supports, so its assets can be localized into them straight away. You can change the list later with the Manage workspace locales request.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
```

## Get all workspaces

### Get all workspaces

**GET** `/api/spaces/{space_uid}/workspaces`

The Get all workspaces request fetches a paginated list of all workspaces within the specified space.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.

#### Query Parameters

- **skip** (optional)
  The skip parameter skips a specific number of items in the output. For example, if there are 20 items and you want to skip the first 2 to get only the last 18 in the response body, specify 2 here.
- **limit** (optional)
  The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.
- **include_count** (optional)
  Set to true to include the total number of workspaces in the response. Default is false.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "count": 0,
  "workspaces": [
    {
      "_id": "string",
      "uid": "string",
      "title": "string",
      "description": "string",
      "org_uid": "string",
      "space_uid": "string",
      "object_type": "string",
      "workspace_id": "string",
      "origin_workspace": "string",
      "workspace_lineage": [
        "string"
      ],
      "workspace_uid_lineage": [
        "string"
      ],
      "locales": [
        {
          "code": "string",
          "fallback": "string",
          "fallback_uid": "string"
        }
      ],
      "is_deleted": true,
      "created_by": "string",
      "updated_by": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
```

## Manage workspace locales

### Manage workspace locales

**PUT** `/api/spaces/{space_uid}/workspaces/{workspace_uid}/locales`

The Manage workspace locales request adds, updates, or removes the locales associated with a specific workspace.

Languages belong to the workspace, so the locales carried here are the languages its assets can be localized into. Each locale can name a fallback language, which is what an asset returns for a language it has not been localized into. Adding a language makes it available to localize into, and removing one takes it off the workspace.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.
- **workspace_uid** (required)
  Enter the uid of the workspace that you want to retrieve.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
```

## Update workspace settings

### Update workspace settings

**PUT** `/api/spaces/{space_uid}/workspaces/{workspace_uid}/settings`

The Update workspace settings request changes the settings that apply to a single workspace.

Today the request carries one setting, duplicate\_management.enabled, which controls whether identical images uploaded to the workspace are grouped into duplicate sets. Duplicate Management is on for every workspace unless it has been turned off, so a workspace that has never been configured behaves as though the setting were true.

Setting it to false pauses detection for the workspace. New uploads are no longer grouped, and Duplicate Management is hidden from the interface. Sets that were already detected are kept, so setting it back to true restores them.

Each settings block is replaced rather than merged, so send the block whole.

Read the value back from the response rather than assuming the value you sent was stored.  
  

##### Turn Duplicate Management back on:

```
{
  "settings": {
    "duplicate_management": {
      "enabled": true
    }
  }
}
```

undefined

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.
- **workspace_uid** (required)
  Enter the uid of the workspace whose settings you want to update.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
[object Object]
```

## Update a workspace

### Update a workspace

**PUT** `/api/spaces/{space_uid}/workspaces/{workspace_uid}`

The Update a workspace request updates the details of a specific workspace, such as its title or description.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.
- **workspace_uid** (required)
  Enter the uid of the workspace that you want to retrieve.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
```

## Get a workspace

### Get a workspace

**GET** `/api/spaces/{space_uid}/workspaces/{workspace_uid}`

The Get a workspace request fetches the details of a specific workspace using its uid.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.
- **workspace_uid** (required)
  Enter the uid of the workspace that you want to retrieve.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
```

## Delete a workspace

### Delete a workspace

**DELETE** `/api/spaces/{space_uid}/workspaces/{workspace_uid}`

The Delete a workspace request deletes a specific workspace using its uid.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.
- **workspace_uid** (required)
  Enter the uid of the workspace that you want to retrieve.

#### Headers

- **authorization** (optional)
  OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.
- **authtoken** (optional)
  Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api\_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.
- **x-cs-api-version** (required)
  Enter the Assets API version. Default is 4.

#### Sample Response

```json
{
  "notice": "string",
  "uid": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "updated_by": "string"
}
```