---
title: "PATCH /workspaces/{namespace}/{slug}"
method: PATCH
path: "/workspaces/{namespace}/{slug}"
tags: ["workspace"]
---

# PATCH /workspaces/{namespace}/{slug}

`PATCH /workspaces/{namespace}/{slug}`

Update team workspace metadata

## Path parameters

- `namespace` string, required
- `slug` string, required

## Request body

- object
  - `title` string
  - `description` string
  - `version` string
  - `namespace` string
  - `isPrivate` boolean
  - `tags` string[]
  - `slug` string
  - `loginPortal` string
  - `accessGroups` Slug[]

## Response `200`

Default Response

- Workspace
  - `uid` string, required
  - `createdAt` integer, required
  - `updatedAt` integer, required
  - `namespace` string, required
  - `title` string, required
  - `slug` string, required
  - `description` string, required
  - `isPrivate` boolean, required
  - `tags` unknown, required
  - `accessGroups` unknown, required
  - `loginPortalUid` string
  - `verifiedContent` boolean
  - `git` RegistryGitBinding
    - `forgejo` object, required
      - `owner` string, required
      - `repo` string, required
      - `branch` string, required
    - `publishOnPush` boolean, required
    - `publishOnMerge` boolean, required
    - `trackedBranch` string, required
    - `webhookId` number, nullable, required
    - `external` union, required
      - object
        - `provider` 'github', required
        - `linkedBy` string, required
        - `installationId` integer, required
        - `id` integer, required
        - `name` string, required
        - `branch` string, required
        - `path` string, required
        - `webhookId` string, required
      - object
        - `provider` 'bitbucket', required
        - `linkedBy` string, required
        - `workspaceUuid` string, required
        - `workspaceSlug` string, required
        - `repoUuid` string, required
        - `repoSlug` string, required
        - `name` string, required
        - `branch` string, required
        - `webhookUuid` string, required
    - `currentPublishedSha` string, nullable, required
    - `lastPublishedAt` integer, required
  - `version` string, required
  - `versions` WorkspaceVersion[], required
    - `version` string, required
    - `managedDocs` RegistryMeta[], required
      - `namespace` string, required
      - `slug` string, required
    - `createdAt` integer, required
    - `updatedAt` integer, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.net/scalar/apis/core.md) · [All operations](https://skmtc.net/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalar/core/revisions/0c91bf5ab53c/schema)
