Skip to main content
PATCH
/
v1
/
projects
/
{id}
Rename a project
curl --request PATCH \
  --url https://api.craftkit.dev/v1/projects/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corp (EU)"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "slug": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Account API key (ck_acct_…) presented as a bearer token. Distinct credential system from bearerApiKey — validated against a separate table, never against project keys or vice versa. Scoped to every project owned by the account; used only by the /v1/projects* endpoints below (each of which declares this scheme explicitly and does not inherit the document-level bearerApiKey default). Minted from the dashboard (Account → API keys) — there is no programmatic endpoint that issues an account key.

Path Parameters

id
string<uuid>
required

The project id.

Body

application/json
name
string
required
Required string length: 1 - 200

Response

Renamed. Returns the full project, slug unchanged.

Full project shape returned by GET and PATCH /v1/projects/{id}.

id
string<uuid>
required
slug
string
required
name
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required