import

Import workflow as code

URL /import/<project-key>
Method POST
Permissions Auth: true
Scopes Project
Code postImportAsCodeHandler

Description

This the entrypoint to perform workflow as code. The first step is to post an operation leading to checkout application and scrapping files

Request Body

{"vcs_Server":"github", "url":"https://github.com/fsamin/go-repo.git","strategy":{"connection_type":"https","ssh_key":"","user":"","password":"","branch":"","default_branch":"master","pgp_key":""},"setup":{"checkout":{"branch":"master"}}}

Response Body

{"uuid":"ee3946ac-3a77-46b1-af78-77868fde75ec","url":"https://github.com/fsamin/go-repo.git","strategy":{"connection_type":"https","ssh_key":"","user":"","password":"","branch":"","default_branch":"master","pgp_key":""},"setup":{"checkout":{"branch":"master"}}}

Perform workflow as code import

URL /import/<project-key>/<uuid>/perform
Method POST
Permissions Auth: true
Scopes Project
Code postPerformImportAsCodeHandler

Description

This operation push the workflow as code into the project

Request Body

None

Response Body

translated message list