Add version control information to a project
PATCH/nevisadmin/api/v1/projects/:projectKey
Required permission: MODIFY_PROJECT on the project, or higher scope
Updates an existing project adding the information required to have it under version control.
The response will return a 409 Conflict status code and the corresponding error detail in the following cases:
- If the project already contains version control information.
- If the defined repository folder is not empty (already contains a project).
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 500
Success
Invalid project key or missing request body
Insufficient permissions.
Project not found
Project already has repository configuration or repository directory is not empty
Remote SCM repository could not be reached