Workspace

启动云原生开发。Start cloud-native development.

已存在环境则直接打开,否则重新创建。 If the environment already exists, open it directly; otherwise, recreate it. Opens existing env or creates a new one. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-trigger:rw

post/{repo}/-/workspace/start

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/workspace/start
  • Auth: API key in header Authorization

Path parameters

repostring required

仓库完整路径。Full repository path.

Request body

branchstring

分支名或 tag 名,例如:main 或 v1.0.0。Branch or tag name, e.g. "main" or "v1.0.0".

refstring

Git ref,如 refs/heads/main 或 refs/tags/v1.0.0。Git ref, e.g. refs/heads/main or refs/tags/v1.0.0.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.