PATCH /v1/projects/{project_id}
Renames a project or replaces its metadata.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)

Path Parameters

project_id string required path
Example: "prj_01m5t3pf8heewxt65ej3dm577y"

Request Body required

application/json
name string
metadata object
Up to 16 string key-value pairs you attach to an object for your own use. Keys are 1 to 40 characters of `A-Z a-z 0-9 _ . : -`; values are at most 500 characters. B3OS never interprets them.

Responses

200 The updated project.
application/json
id string REQUIRED
object string REQUIRED
Enum: project
org_id string REQUIRED
name string REQUIRED
created_at string (date-time) REQUIRED
updated_at string (date-time) REQUIRED
metadata object REQUIRED
Up to 16 string key-value pairs you attach to an object for your own use. Keys are 1 to 40 characters of `A-Z a-z 0-9 _ . : -`; values are at most 500 characters. B3OS never interprets them.
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
404 No such project in your organization (`project_not_found`).
413 The request body exceeds this operation's limit.
415 The Content-Type is not accepted by this operation.
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X PATCH 'https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{  "name": "production"}'
const response = await fetch('https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y', {  method: 'PATCH',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({    "name": "production"  })});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.patch('https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y', headers=headers, json={  "name": "production"})print(response.json())
200 Response
{  "id": "prj_01m5t3pf8heewxt65ej3dm577y",  "object": "project",  "org_id": "org_01m5t5hthd29mm5wpza5ndd6mm",  "name": "production",  "created_at": "2026-10-20T16:00:00.000Z",  "updated_at": "2026-10-25T22:12:00.000Z",  "metadata": {}}
Ask a question... ⌘I