---
search:
  tags:
    - Projects
    - PATCH
seo:
  description: >-
    Changes a project's name, its slug or both. Its tenants keep their…
    Reference for the PATCH /_luna/orgs/{org}/projects/{project} endpoint in the
    Luna API.
sidebar:
  label: Update a project
  badge: PATCH
title: Update a project
type: openapi-operation
---
Changes a project's name, its slug or both. Its tenants keep their names, so nothing moves. Answers 409 when the organisation has another project of the new name. You need the owner or admin role, and an API key cannot do this.

`PATCH /_luna/orgs/{org}/projects/{project}`

**Request body** (`application/json`, required)

- `slug` (string | null) — A new slug: lower-case letters, digits and single dashes. Paths use it from then on.
- `name` (string | null) — A new name.

Request body example:

```json
{
  "slug": null,
  "name": null
}
```

**Responses**

- `200` — The project as it is now.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "id": "string",
  "root": "string",
  "org": "string",
  "slug": "string",
  "name": "string",
  "path": "string",
  "createdMs": 0
}
```
