Skip to main content
PATCH
/
v1
/
projects
/
{project_id}
Update a project
curl --request PATCH \
  --url https://roughy-api-staging.fly.dev/v1/projects/{project_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "019de7f5-7e21-7402-92a8-1c0e1fa84411",
  "name": "Episode 42",
  "state": "active",
  "archived_at": null,
  "created_at": "2026-05-02T08:54:52.423000Z",
  "updated_at": "2026-05-02T08:54:52.423000Z"
}

Authorizations

Authorization
string
header
required

Pass your API key as Authorization: Bearer sk_…. Mint a key from your dashboard's API-keys page.

Path Parameters

project_id
string<uuid>
required

Identifier of the project.

Body

application/json

Fields to change on the project. Every field is optional.

name
string | null

New display name. Omit to leave the name unchanged.

Required string length: 1 - 256
state
enum<string> | null

Target lifecycle state: archived to archive, active to unarchive. Omit to leave the state unchanged.

Available options:
active,
archived

Response

The updated project.

A project.

id
string<uuid>
required

Project id.

name
string
required

Display name.

state
enum<string>
required

Lifecycle state.

Available options:
active,
archived
archived_at
string<date-time> | null
required

When the project was archived.

created_at
string<date-time>
required

When the project was created.

updated_at
string<date-time>
required

When any field last changed.