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

# Update a project

`PATCH /workspaces/{workspace_id}/projects/{project_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Apply `patches` in order. `replace name` renames the project and `replace properties` changes only the property fields sent; both need project update rights. `add`/`remove agent_memory` (value: the text, or the index to remove) edit the caller's own saved agent preferences and are open to any project member. The whole batch is authorized before any patch is applied.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project to delete

## Request body

- ProjectPatch: Rename project to 'My Project'
  - `patches` ProjectPatchOp[], required
    - `op` string, required: Operation
    - `path` 'name' | 'properties' | 'agent_memory', required: Path
    - `value` union, required
      - string
      - integer
      - ProjectProperties: Properties of project
        - `color` string: Color of project
        - `date_format` 'US' | 'UK'
        - `display_date_format` string, nullable: Default display format for date columns in datasets and dataviews created within this project
        - `project_access` 'all_members_of_workspace' | 'some_members_of_workspace' | 'only_me': Project access level

## Response `200`

Successful patch

- ProjectSchema
  - `id` integer, nullable: unique identifier representing project
  - `name` string, nullable: Name of project
  - `owner_workspace_id` integer, nullable: Parent Workspace id
  - `updated_at` string, date-time, nullable: Time when last update to project has happened
  - `created_at` string, date-time, nullable: Time when project was created
  - `status` string, nullable: Status of project
  - `properties` object, nullable: Properties of project

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

## Changes

- **2026-10-19** `4b2c943a00dc`: 1 info
  - the `color` request property default value changed from `#EB661E` to `#02786D`
- **2026-10-19** `94a4ab95a805`: 1 info
  - the `color` request property default value changed from `#6C757C` to `#EB661E`

[Operation history](https://skmtc.dev/mammoth/apis/mammoth-analytics/changes/workspaces/:workspace_id/projects/:project_id/patch.md)

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
