---
title: "publish or unpublish a base"
method: PUT
path: "/base/{baseId}/publish"
tags: ["base"]
---

# publish or unpublish a base

`PUT /base/{baseId}/publish`

publish or unpublish a base

## Path parameters

- `baseId` string, required

## Request body

- object
  - `title` string, required
  - `description` string, required
  - `cover` object, nullable
    - `token` string, required — Token for the uploaded file
    - `size` number, required — File size in bytes
    - `url` string, required — URL of the uploaded file
    - `path` string, required — file path
    - `mimetype` string, required — MIME type of the uploaded file
    - `width` number — Image width of the uploaded file
    - `height` number — Image height of the uploaded file
    - `name` string, required
    - `id` string, required
    - `thumbnailPath` object
      - `lg` string, required
      - `sm` string, required
  - `nodes` string[]
  - `includeData` boolean
  - `defaultActiveNodeId` string, nullable

## Response `200`

publish base successfully

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/revisions/7515f3b33d79/schema)
