Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Project Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

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
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL https://localhost:8090/oauth2/token

1 scopes
ScopeDescription
systemAccess to system management APIs

Projects​

Create, retrieve, update, delete, and list projects.

List projects​

GET /projects

Lists projects, oldest first.

Scopes: system

Parameters

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return. At most 100.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
idstring (uuid)

Optional project ID. Use it to keep an ID that another system already uses for the project.

handlestringYes

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.

displayNamestringYes

Display name of the project.

descriptionstring

Description of the project.

Responses

CodeDescriptionSchema
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

Get a project​

GET /projects/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

The project ID.

Responses

CodeDescriptionSchema
200

The project.

Project
404

No project exists with the given ID.

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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

The project ID.

Request body (required): application/json

Schema: UpdateProjectRequest

3 properties
NameTypeRequiredDescription
handlestring

The current handle. It cannot be changed.

displayNamestringYes

Display name of the project.

descriptionstring

Description of the project.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

The project ID.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
idstring (uuid)Yes

The project ID.

handlestringYes

Immutable, human-readable identifier of the project.

displayNamestringYes

Display name of the project.

descriptionstring

Description of the project.

createdAtstring (date-time)Yes

When the project was created.

CreateProjectRequest​

Type: object

4 properties
NameTypeRequiredDescription
idstring (uuid)

Optional project ID. Use it to keep an ID that another system already uses for the project.

handlestringYes

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.

displayNamestringYes

Display name of the project.

descriptionstring

Description of the project.

UpdateProjectRequest​

Type: object

3 properties
NameTypeRequiredDescription
handlestring

The current handle. It cannot be changed.

displayNamestringYes

Display name of the project.

descriptionstring

Description of the project.

ProjectListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsintegerYes

Total number of projects.

startIndexintegerYes

One-based index of the first project in this page.

countintegerYes

Number of projects in this page.

projectsarray of ProjectYes
linksarray of LinkYes

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. Codes follow the PRJ-XXXX convention.

messageI18nMessageYes

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

Default message in English (fallback).

Was this page helpful?