http
POST /accounts/{account_id}/projectsCreate account project. Requires account.projects.create.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
account_id | path | Yes | Account to receive the new project. Project creation and account assignment are atomic. Requires account.projects.create. The caller remains the billing and seat owner. The caller project limit returns 402 when exhausted. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Project display name. |
slug | string | Unique project slug. Omit to generate a slug with a random suffix. An explicit duplicate slug returns 409; creation does not replay an existing project. | |
template_slug | string | Optional template slug. A template project UUID takes precedence. | |
template_project_id | string | Optional template project UUID. Overrides template_slug. |
Responses
| Status | Description |
|---|---|
| 201 | Project created |
| 400 | Bad request |
| 401 | Unauthorized |
| 402 | The caller has reached the project limit. |
| 403 | Forbidden |
| 404 | Not found |
| 409 | The explicit slug is already in use; creation does not replay existing projects. |
| 500 | Server error |