Project Management API
Create and manage projects. A project groups identity configuration. Every project includes the system organization unit, and a resource created in a project is placed in the system organization unit unless the request names one below it.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Projects
Create, retrieve, update, delete, and list projects.
List projects
GET /projects
Lists projects, oldest first.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. At most 100. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | A page of projects, oldest first. | ProjectListResponse |
400 | The limit or offset parameter is invalid. | Error |
500 | Internal server error. | Error |
Create a project
POST /projects
Creates a project. Supply id to keep an ID that another system already uses for the project;
otherwise one is generated.
Scopes: system
Request body (required): application/json
Schema: CreateProjectRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Optional project ID. Use it to keep an ID that another system already uses for the project. | |
handle | string | Yes | Immutable, human-readable identifier of the project, unique across projects. It may contain only lowercase letters, numbers, hyphens and underscores, and must start and end with a letter or a number. |
displayName | string | Yes | Display name of the project. |
description | string | Description of the project. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Project created. | Project |
400 | The request is malformed or a field is invalid. | Error |
403 | The caller is not allowed to manage projects. | Error |
409 | The project ID or the handle is already used by another project. | Error |
500 | Internal server error. | Error |
Update a project
PUT /projects/{id}
Updates the display name and description of a project. The handle cannot change; send the current handle or omit it.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | The project ID. |
Request body (required): application/json
Schema: UpdateProjectRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | The current handle. It cannot be changed. | |
displayName | string | Yes | Display name of the project. |
description | string | Description of the project. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Project updated. | Project |
400 | The request is malformed, a field is invalid, or the handle was changed. | Error |
403 | The caller is not allowed to manage projects. | Error |
404 | No project exists with the given ID. | Error |
500 | Internal server error. | Error |
Delete a project
DEL /projects/{id}
Deletes a project. The deletion is refused while an application or agent is still in the project.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | The project ID. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Project deleted, or no project exists with the given ID. | |
409 | The project still has applications or agents. | Error |
500 | Internal server error. | Error |
Schemas
Project
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The project ID. |
handle | string | Yes | Immutable, human-readable identifier of the project. |
displayName | string | Yes | Display name of the project. |
description | string | Description of the project. | |
createdAt | string (date-time) | Yes | When the project was created. |
CreateProjectRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Optional project ID. Use it to keep an ID that another system already uses for the project. | |
handle | string | Yes | Immutable, human-readable identifier of the project, unique across projects. It may contain only lowercase letters, numbers, hyphens and underscores, and must start and end with a letter or a number. |
displayName | string | Yes | Display name of the project. |
description | string | Description of the project. |
UpdateProjectRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | The current handle. It cannot be changed. | |
displayName | string | Yes | Display name of the project. |
description | string | Description of the project. |
ProjectListResponse
Type: object
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. Codes follow the PRJ-XXXX convention. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Was this page helpful?