# Update execution cases in a batch

URL: https://docs.ones.cn/developer/openapi/api/batch-update-execution-cases

```
POST
## /project/executionCases/batch-update

```

Applies the same fieldValues to selected execution cases, including execution result, executor, remark, and other writable layout fields. Uses the same field protocol, permission, readonly, and required validation as single updates. Source content is readonly. Each item has an independent transaction; failures do not roll back successful items. Step UUIDs belong to individual execution cases; use single updates for steps in different execution cases.

## Request

### Query Parameters

**teamID** stringrequired The team ID

- application/json

### Body

**required

**

**executionCaseIDs** string[]required **Possible values:**`>= 1`

**fieldValues

** object[]

required

**Possible values:**`>= 1`

- Array [
**fieldID** stringrequired

**value**required

- ]

## Responses

- 200
- 401
- 403
- 404
- 500

Returns successful execution case IDs and per-item failures.

- application/json

- Schema
- Example (from schema)

**Schema

**

**data

** object

**successExecutionCaseIDs** string[]required Execution case IDs that were updated or removed successfully.

**failedCases

** object[]

required

Per-item failures. These failures do not roll back successful items.

- Array [
**executionCaseID** stringrequired The execution case ID that failed.

**code** stringrequired The failure code for this execution case.

**message** stringrequired The failure message for this execution case.

- ]

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

**errorData** object Error meta data for this request.

```json
{
  "result": "SUCCESS",
  "data": {
    "successExecutionCaseIDs": [
      "executionCaseUUID1"
    ],
    "failedCases": [
      {
        "executionCaseID": "executionCaseUUID2",
        "code": "AccessDenied",
        "message": "No permission to operate this execution case"
      }
    ]
  }
}
```

Returned if the authentication credentials are incorrect or missing.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Unauthorized",
  "errorMsg": "Access token is invalid"
}
```

Returns if the scope check fails.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Forbidden",
  "errorMsg": "Scope is invalid"
}
```

Returned if the resource object was not found.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "NotFound",
  "errorMsg": "Not Found"
}
```

Internal Server Error.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Internal Server Error",
  "errorMsg": "Internal Server Error"
}
```
