---
title: "应用代码检测"
method: POST
path: "/v2/tenants/{tenant_name}/code-check"
tags: ["v2"]
---

# 应用代码检测

`POST /v2/tenants/{tenant_name}/code-check`

check  code

## Path parameters

- `tenant_name` string, required

## Request body

- object
  - `action` string
  - `check_type` string, required — 检测类型, "first_check" in: body
  - `code_from` string, required — git源, "gitlab_manual" in: body
  - `code_version` string, required — 代码分支 in: body
  - `git_project_id` integer, required — git project id, 0 in: body
  - `git_url` string, required — git分支详情 in: body
  - `service_id` string, required — 应用id in: body
  - `tenant_id` string — 租户id in: body
  - `url_repos` string, required — git地址 in: body

## Response `default`

统一返回格式

- CommandResponse — unresolved $ref

---

[API](https://skmtc.net/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.net/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goodrain/untitled-api/revisions/8c773e222448/schema)
