# Update execution information

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

```
PUT
## /project/executionCases/:executionCaseID

```

Source test case fields are read-only. Writable fields are executor, execution result, result remark, attachments, related issues, and step execution information. Writable custom execution fields are also supported. Submit only changed fields. Reference field values use IDs or ID arrays, not the display objects returned by OneSQL. A successful response contains only result: SUCCESS, without data. Query the updated detail with POST /openapi/v3alpha/onesql/query. Clearing a required field returns result: FAIL and errorCode: MissingParameter; errorMsg identifies the field ID. The failed update does not change the execution case. If multiple fields fail validation, one error is returned in field ID order.

## Request

### Path Parameters

**executionCaseID** stringrequired The execution case ID.

### Query Parameters

**teamID** stringrequired The team ID

- application/json

### Body

**required

**

**fieldValues

** object[]

required

- Array [
**fieldID** stringrequired

**value**required

- ]

## Responses

- 200
- 401
- 403
- 404
- 500

Request is successful.

- 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.

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

```json
{
  "result": "SUCCESS"
}
```

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"
}
```
