Skip to main content
PATCH https://api.craftkit.dev/v1/projects/{id}
Rename a project. The slug is not recomputed — renaming never changes slug or breaks existing project-key integrations.

Authorization

Authorization
string
required
Bearer ck_acct_… — must own the project.

Path

id
string
required
The project id (UUID).

Body

name
string
required
New display name (1–200 chars).

Response

200 — the full project, slug unchanged:
id
string
slug
string
Unchanged — renaming never recomputes the slug.
name
string
The new name.
createdAt
string
updatedAt
string

Errors

Ownership is resolved before the body is read, so an id you don’t own returns 404 even if the body is also invalid.
StatuscodeMeaning
400invalid_jsonBody is not valid JSON.
400invalid_requestname missing, empty, or over 200 chars.
401unauthorizedMissing/invalid account key.
404not_foundNo such project owned by this account.
cURL
curl -X PATCH https://api.craftkit.dev/v1/projects/3f9b6c2e-1a2b-4c3d-9e8f-7a6b5c4d3e2f \
  -H "Authorization: Bearer $CRAFTKIT_ACCOUNT_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Acme Corp (EU)" }'
200
{
  "id": "3f9b6c2e-1a2b-4c3d-9e8f-7a6b5c4d3e2f",
  "slug": "acme-corp",
  "name": "Acme Corp (EU)",
  "createdAt": "2026-06-01T09:00:00.000Z",
  "updatedAt": "2026-07-02T00:00:00.000Z"
}