---
title: "Update a project"
method: PATCH
path: "/projects/{projectId}"
tags: ["Projects"]
---

# Update a project

`PATCH /projects/{projectId}`

Updates static website sharing and viewer API access settings for a project. API access can be enabled only when sharing is already enabled or is enabled in the same request. Disabling sharing also disables API access. This settings-only patch does not create a project content version.

## Path parameters

- `projectId` string, uuid, required

## Request body

- object

## Response `200`

Project updated

- UpdateProjectResponse
  - `project` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `projectType` 'standard' | 'notebook' | 'agent', required — Project type.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, nullable, required
    - `staticFiles` StaticFilesSettings, required
      - `sharingEnabled` boolean, required — Whether the project files are shared as a website.
      - `apiAccessEnabled` boolean, required — Whether the shared website may request viewer-scoped public API tokens.
      - `url` string, uri, required — Canonical URL of the shared website.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — Insufficient permissions or static file sharing is unavailable
- `404` — Project not found
- `409` — Project is suspended
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.dev/deepnote/apis/deepnote-public-api.md) · [All operations](https://skmtc.dev/deepnote/apis/deepnote-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deepnote/deepnote-public-api/revisions/20c4153a90e7/schema)
