---
title: "Update Project"
url: "https://docs.yoagent.dev/reference/rest-api/operations/updateproject"
---

# Update Project

PATCH

/v0/projects/{project_id}

```sh
curl -s -X PATCH "https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq" \
  -H "Authorization: Bearer $YOAGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Web app"}'
```

```js
const response = await fetch("https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.YOAGENT_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Web app"
  }),
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

```python
import os

import requests

response = requests.patch(
    "https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq",
    headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"},
    json={
        "name": "Web app",
    },
    timeout=60,
)
response.raise_for_status()
data = response.json()
```

- api.yoagent.dev/v0/projects/{project_id}

Change a project’s settings: only the fields sent — name, short description, picture and the paid settings (catch-all, auto-create, plus addresses: turning one on needs the plan’s feature); its subdomain stays.

## Authorizations

- **[ApiKey](https://docs.yoagent.dev/reference/rest-api#apikey)**

## Parameters

### Path Parameters

**project_id**

required

_Project Id_

string

/^prj\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

## Request Body required

application/json

_ProjectUpdate_

Change a project’s settings: only the fields sent (its subdomain stays).

object

**name**

_Name_

A new name; omitted or null: unchanged.

Any of:

**string**

string

\>= 1 characters <= 100 characters

**null**

null

**description**

_Description_

A new short description (empty: none); omitted or null: unchanged.

Any of:

**string**

string

<= 200 characters

**null**

null

**image**

_Image_

A new picture (the id of one uploaded in the dashboard); null: remove it; omitted: unchanged.

Any of:

**string**

string

/^img\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**null**

null

**catch_all_enabled**

_Catch All Enabled_

Turn the catch-all on (needs the plan’s `catch_all`: else `plan_required`) or off (auto-create goes off with it); omitted or null: unchanged.

Any of:

**boolean**

boolean

**null**

null

**auto_create_inboxes**

_Auto Create Inboxes_

Turn auto-create on (needs the plan’s `auto_create_inboxes` and the catch-all on) or off; omitted or null: unchanged.

Any of:

**boolean**

boolean

**null**

null

**plus_addresses_enabled**

_Plus Addresses Enabled_

Turn plus addresses on (needs the plan’s `plus_addresses`) or off; omitted or null: unchanged.

Any of:

**boolean**

boolean

**null**

null

## Responses

### 200

Successful Response

application/json

_ProjectOut_

A project: its own mail subdomain (`<slug>.<shared domain>` when it was made), inboxes and webhooks.

object

**version**

required

_Version_

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer

**project_id**

required

_Project Id_

string

/^prj\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**name**

required

_Name_

string

**description**

required

_Description_

Its short description; empty: none.

string

**image**

required

_Image_

Its picture’s id; null: none.

Any of:

**string**

string

/^img\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**null**

null

**catch_all_enabled**

required

_Catch All Enabled_

Its catch-all inboxes take mail for unknown addresses; off, such mail is refused and they are hidden.

boolean

**auto_create_inboxes**

required

_Auto Create Inboxes_

Mail to an unknown address makes its inbox (only with the catch-all on).

boolean

**plus_addresses_enabled**

required

_Plus Addresses Enabled_

Mail to `<name>+<tag>@` reaches the inbox of `<name>@`, the tag kept on the message.

boolean

**slug**

required

_Slug_

string

**subdomain**

required

_Subdomain_

The project’s shared mail subdomain: any `<name>@<subdomain>` reaches it.

string

**grant**

required

_Grant_

What the caller may do in this project; null: everything (an owner).

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_create inbox_update inbox_delete message_read message_update message_delete message_send webhook_read webhook_create webhook_update webhook_delete domain_read domain_create domain_update domain_delete

**null**

null

**inbox_grants**

required

_Inbox Grants_

What the caller may do in single inboxes of this project beyond `grant`: only the inbox permissions the project does not give, not closed; an inbox the project covers is absent.

object

**_key_**

additional properties

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_update message_read message_update message_delete message_send domain_read

**deletable**

required

_Deletable_

Whether the caller’s access allows deleting it: access to everything, a full admin (the role must allow it too: `project_delete`).

boolean

**only**

required

_Only_

The organization’s only project: it cannot be deleted (an organization keeps one).

boolean

**position**

required

_Position_

Its place in the organization’s order (`PUT /v0/projects/order`): the list is sorted by it, then by id.

integer

**created_at**

required

_Created At_

string format: date-time

#### Example

```json
{
  "version": 1,
  "project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq",
  "name": "Web app",
  "description": "Sign-up and password reset mail",
  "image": "img_01je56wqswfmn9pgbc1wq8tjgq",
  "catch_all_enabled": true,
  "auto_create_inboxes": true,
  "plus_addresses_enabled": true,
  "slug": "k7m2xq4p",
  "subdomain": "k7m2xq4p.yoagent.email",
  "grant": "full",
  "inbox_grants": {},
  "deletable": true,
  "only": false,
  "position": 1,
  "created_at": "2026-12-01T12:00:00Z"
}
```

### default

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: [Errors](https://docs.yoagent.dev/reference/conventions#errors).
