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

# Update a project

`PATCH /v1/projects/{projectId}`

Updates a project (rename, or replace source binding).

## Path parameters

- `projectId` string, uuid, required

## Headers

- `Authorization` string

## Request body

- union
  - object
    - `name` string, required
  - object
    - `sourceType` string, required
    - `sourceUri` string, required
    - `repoSubpath` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'project', required
    - `attributes` object, required
      - `workspaceId` string, uuid, required
      - `name` string, required
      - `sourceType` string, required
      - `sourceUri` string, required
      - `repoSubpath` string, required
      - `lastScheduleSyncOk` boolean, nullable, required
      - `lastScheduleSyncAt` string, date-time, nullable, required
      - `lastScheduleSyncResult` union, required
        - object
          - `commitSha` string, nullable, required
          - `created` number, required
          - `updated` number, required
          - `deleted` number, required
          - `skipped` number, required
          - `reason` 'write_failed'
        - object
          - `commitSha` string, nullable, required
          - `failures` object, required
          - `omittedFailures` integer
        - object
          - `commitSha` string, nullable, required
          - `reason` union, required
            - 'workspace_not_reachable'
            - 'byo_unavailable'
            - 'sync_failed'
        - object
          - `commitSha` string, nullable, required
          - `reason` union, required
            - 'schema_validation_failed'
            - 'unreadable_encoding'
            - 'malformed_json'
            - 'non_object_json'
            - 'invalid_project_name'
          - `message` string, required
          - `issues` object[]
            - `code` string, required
            - `message` string, required
            - `path` union[], required
              - …
      - `createdBy` string, uuid, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Default Response
- `500` — Internal Server Error

## Changes

- **2026-09-15** `d50a02b79ad3` — 3 info
  - added the optional property `data/attributes/lastScheduleSyncResult/anyOf[subschema #1]/anyOf[subschema #2]/omittedFailures` to the response with the `200` status
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/url` to the response with the `403` status
- **2026-09-15** `050f3217cf2c` — 3 info
  - added the required property `data/attributes/lastScheduleSyncAt` to the response with the `200` status
  - added the required property `data/attributes/lastScheduleSyncOk` to the response with the `200` status
  - added the required property `data/attributes/lastScheduleSyncResult` to the response with the `200` status

[Change history](https://skmtc.dev/tessl/apis/tessl-api/changes/v1/projects/:projectId/patch.md)

---

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