---
title: "添加脚本执行任务"
method: POST
path: "/api/v1/jobs/add"
---

# 添加脚本执行任务

`POST /api/v1/jobs/add`

## Request body

- ServerDomainZentaoExecReq
  - `cmd` string — commands to exec before run test cases
  - `ids` string — zentao case ids
  - `path` string — relative path in workspace to find scripts
  - `task` integer
  - `workspace` string — workspace absolute path

## Response `200`

code = success | fail

- DomainResponse
  - `code` integer
  - `data` object
  - `msg` string

---

[API](https://skmtc.net/easysoft/apis/ztf-api.md) · [All operations](https://skmtc.net/easysoft/apis/ztf-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easysoft/ztf-api/versions/455c69bde654/schema)
