Create account project

http
POST /accounts/{account_id}/projects

Create account project. Requires account.projects.create.

Parameters

NameInRequiredDescription
account_idpathYesAccount 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

FieldTypeRequiredDescription
namestringYesProject display name.
slugstringUnique 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_slugstringOptional template slug. A template project UUID takes precedence.
template_project_idstringOptional template project UUID. Overrides template_slug.

Responses

StatusDescription
201Project created
400Bad request
401Unauthorized
402The caller has reached the project limit.
403Forbidden
404Not found
409The explicit slug is already in use; creation does not replay existing projects.
500Server error