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

# Update a project

`PUT /projects/{id}`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{id}`
- Auth: HTTP basic

Updates the project's settings such as name, notification preferences, zone, and permalink.

## Path parameters

- `id` string, required

## Request body

- ProjectObject2
  - `project` object, required
    - `name` string
    - `email_notify_on` string
    - `notification_email` string
    - `notify_committer` boolean
    - `zone_id` string
    - `permalink` string
    - `custom_private_key` string
    - `check_undeployed_changes` string
    - `store_artifacts_enabled` string
    - `ai_overview_custom_instructions` string
    - `folder` string

## Response `200`

Success

- Project
  - `name` string
  - `permalink` string
  - `identifier` string
  - `public_key` string
  - `repository` object
    - `scm_type` string
    - `url` string
    - `port` integer, nullable
    - `username` string, nullable
    - `branch` string
    - `cached` boolean
    - `hosting_service` object
      - `name` string
      - `url` string
      - `tree_url` string
      - `commits_url` string
  - `repository_url` string
  - `zone` string
  - `last_deployed_at` string
  - `folder` string, nullable
  - `auto_deploy_url` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `404`: The requested resource could not be found.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
