Reference
View as MarkdownProjects API
Projects.
5 operations. Every call needs a session cookie or an Authorization: Bearer nct_… token unless marked Public. Conventions, errors and scopes
/projectsList projects
| Parameter | In | Type | Description |
|---|---|---|---|
cursor | query | string | Opaque cursor from a previous page's nextCursor |
limit | query | integer (int64) | Page size (default 50, max 200) |
Response 200 · OK · application/json
PageProject
- Project[] | nullrequired
- nextCursorstringPresent when more items exist
Errors
401Unauthorized403Forbidden422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projectsCreate a project (with its production environment)
| Parameter | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Client-chosen key (<=255 chars). A retry with the same key replays the original response for 24 hours. |
Request body · application/json · required
CreateProjectInputBody
- descriptionstring
- namestringrequired
Response 201 · Created · application/json
Project
- buildLocationenum: inherit | target | build_serverrequired
- buildServerIdstringrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- idstringrequired
- namestringrequired
- registryIdstringrequired
- slugstringrequired
- systembooleanrequired
- updatedAtstring (date-time)required
Errors
401Unauthorized403Forbidden409Conflict422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}Get a project
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string |
Response 200 · OK · application/json
Project
- buildLocationenum: inherit | target | build_serverrequired
- buildServerIdstringrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- idstringrequired
- namestringrequired
- registryIdstringrequired
- slugstringrequired
- systembooleanrequired
- updatedAtstring (date-time)required
Errors
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}Update a project
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string |
Request body · application/json · required
UpdateProjectInputBody
- buildLocationenum: inherit | target | build_serverWhere this project's git services are built: inherit (team default), target, or build_server. Sets buildServerId and registryId with it (omitted = cleared).
- buildServerIdstringPin the build server; omitted lets the control plane choose a sticky one. Only with buildLocation.
- descriptionstring
- namestring
- registryIdstringRegistry the builds are pushed to; omitted inherits the team default. Only with buildLocation.
Response 200 · OK · application/json
Project
- buildLocationenum: inherit | target | build_serverrequired
- buildServerIdstringrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- idstringrequired
- namestringrequired
- registryIdstringrequired
- slugstringrequired
- systembooleanrequired
- updatedAtstring (date-time)required
Errors
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}Delete an empty project
Fails with 409 project_not_empty while the project still has services.
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string |
Response 204 · No Content
No body.
Errors
401Unauthorized403Forbidden404Not Found409Conflictproject_not_empty422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.