---
title: "Create or update a workspace collection"
method: POST
path: "/workspaces/{slug}/collections"
---

# Create or update a workspace collection

`POST /workspaces/{slug}/collections`

## Request

- Base URL: `https://superskill.sh/api`
- URL: `https://superskill.sh/api/workspaces/{slug}/collections`
- Auth: HTTP bearer

Creates a workspace collection. Collection approval is workspace-scoped curation, not SuperSkill review evidence.

## Path parameters

- `slug` string, required

## Request body

- object
  - `slug` string
  - `title` string
  - `summary` string
  - `visibility` 'workspace' | 'public' | 'unlisted'

## Response `201`

Workspace collection

- object
  - `workspace` Workspace
    - `slug` string, required
    - `name` string, required
    - `type` 'company' | 'community' | 'team' | 'course' | 'agency' | 'chat', required
    - `visibility` 'private' | 'invite_only' | 'gated' | 'public' | 'unlisted', required
    - `plan` 'free' | 'team' | 'enterprise', required
    - `description` string, nullable
    - `avatarUrl` string, nullable
  - `collection` WorkspaceCollection
    - `slug` string, required
    - `title` string, required
    - `summary` string, nullable
    - `visibility` 'workspace' | 'public' | 'unlisted', required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `archivedAt` string, nullable
    - `items` WorkspaceCollectionItem[], required
      - `id` string, required
      - `itemRef` string, required
      - `itemSource` 'public_resource' | 'workspace_resource' | 'native_harness' | 'external_url', required
      - `sourceResourceId` string
      - `pinnedVersion` string, nullable
      - `pinnedArchiveHash` string, nullable
      - `approvalState` 'pending_review' | 'approved' | 'approved_with_warning' | 'blocked' | 'blocked_by_scan' | 'deprecated', required
      - `approvedBy` string, nullable
      - `approvedAt` string, nullable
      - `note` string, nullable
      - `riskSnapshot` object
      - `createdAt` string, required
      - `updatedAt` string, required

## Other responses

- `401`: Authorization required
- `403`: Authorization was provided but is not allowed for this action
- `404`: Resource not found

---

[API](https://skmtc.dev/superskill/apis/superskill-api.md) · [All operations](https://skmtc.dev/superskill/apis/superskill-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superskill/apis/superskill-api/revisions/ced2d2d1f217?raw)
