Import project from repository
POST/nevisadmin/api/v1/projects/revision-import
Required permission: CREATE_PROJECT on the tenant, or global scope
The project key in the request body has to be all-uppercase. If it's not, it will be transformed into all-uppercase.
Imports the project sent in the request with the changes stored in the remote repository.
If the call was successful the response code will be '202 Accepted' and the 'Location' header will point to the job that will execute the import. Getting that job will allow you to know the progress and status of the import.
Request
Responses
- 202
- 400
- 403
- 404
- 409
- 500
Import job accepted
Missing or invalid request body
Insufficient permissions.
Tenant not found
Project already exists, or the remote repository is empty
Error during import, e.g. SCM interaction error