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

# Update a project

`PUT /api/projects/{projectName}`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}`
- Auth: HTTP bearer

Update a project

## Path parameters

- `projectName` string, required

## Query parameters

- `name` string, required

## Request body

- string[]

## Response `200`

Project updated

- Project
  - `name` string: The project friendly name set by the user
  - `region` string: The project region
  - `id` string, required: The project id generated by the system
  - `allTimeCosts` number: The all time costs of the project
  - `projectedMonthlyCosts` number: The projected monthly costs of the project
  - `deployedServices` number: The number of deployed services
  - `sshKeys` string[], required: The SSH keys for the project
  - `createdAt` string, date-time: The timestamp when the project was created
  - `trialExpiresAt` string, date-time: The timestamp when the project trial expires
  - `accessLevel` 'owner' | 'maintainer': The current user's access level to this project

## Other responses

- `400`: Invalid input
- `401`: User not found
- `404`: Project not found
- `500`: Internal server error

---

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