Skip to content

Update Project

PATCH
/v0/projects/{project_id}
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"}'

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.

project_id
required
Project Id
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/
Media typeapplication/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
>= 1 characters <= 100 characters
description
Description

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

Any of:
string
<= 200 characters
image
Image

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

Any of:
string
/^img_[0-7][0-9a-hjkmnp-tv-z]{25}$/
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
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
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

Successful Response

Media typeapplication/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
/^img_[0-7][0-9a-hjkmnp-tv-z]{25}$/
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
Allowed value: full
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
Allowed value: full
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

{
"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"
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.