# Transfer an approval task
**Notice**：This API has been upgraded to enhance its security. We recommend that you migrate to the [new version>>](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/task/transfer)
Transfers a single approval task. After that, the approval process will be transferred to the transfer recipient.

##  Request

Facts | &nbsp;
---|---
HTTP URL | https://www.feishu.cn/approval/openapi/v2/instance/transfer
HTTP Method | POST
Supported app types | Custom App、Store App
Required scopes<br>**The scopes required to call this API. You can call the API with any of the scopes.** | Access Approval(approval:approval:readonly)

###  Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[Learn more about how to obtain and use access_token](https://open.feishu.cn/document/ukTMukTMukTM/uMTNz4yM1MjLzUzM)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Request body

|Parameter|Type|Required|Description|
|-|-|-|-|
|approval_code|String|Yes|Approval definition code|
|instance_code|String|Yes|Approval instance code|
|user_id|String|Yes|User who performed the action|
|task_id|String|Yes|Task ID|
|comment|String|No|Comments|
|transfer_user_id|String|Yes|Unique ID of the transfer recipient|
|open_id|String|No|User open_id<br>An open_id is required when there is no user_id.|
|transfer_open_id|String|No|Transfer recipient open_id <br>A transfer_open_id is required when there is no transfer_user_id.|
### Request body example

```json
{
    "approval_code": "7C468A54-8745-2245-9675-08B7C63E7A85",
    "instance_code": "81D31358-93AF-92D6-7425-01A5D67C4E71",
    "user_id": "f7cb567e",
    "task_id": "12345",
    "comment": "check",
    "transfer_user_id": "f4ip317q",
    "open_id": "ou_123456",
    "transfer_open_id": "ou_654321"
}
```

##  Response

###  Response body

|Parameter|Type|Required|Description|
|-|-|-|-|
|code|int|Yes|Error code. A value other than 0 indicates failure.|
|msg|String|Yes|Return code description|

###  Response body example

```json
{
    "code": 0,
    "msg": "success"
}
```

