createOrUpdateProject

@PUT(value = "api/projects/{projectId}")
abstract suspend fun createOrUpdateProject(@Path(value = "projectId") projectId: String, @Body project: Project): Project

Create or update a project. <mark>Beta:</mark> Create a new project in Develocity or update an existing project. When updating, any optional fields that are omitted from the request, but were previously set on the project, will be unset/removed. An existing project's identifier cannot be updated. If the update contains a id that does not match the current id, then the operation will fail with a Bad Request response. Responses:

  • 200: The project was created or it was updated successfully.

  • 400: The request body is malformed or contains invalid values for at least one of the properties.

  • 403: The authenticated user has insufficient permissions.

  • 404: No API key was specified in the request, the key has been revoked, or the user bearing the key lacks permissions for this operation.

Return

Project

Parameters

projectId

The ID of the project.

project