# Add approvers

Adds an approver to a single approval task.

##  Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/approval/v4/instances/add_sign
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>Call the API on behalf of the app. The range of readable and writable data is determined by the app's own [data access range](https://open.feishu.cn/document/home/introduction-to-scope-and-authorization/configure-app-data-permissions). Refer to [Get custom app's tenant_access_token](https://open.feishu.cn/document/ukTMukTMukTM/ukDNz4SO0MjL5QzM/auth-v3/auth/tenant_access_token_internal) or [Get store app's tenant_access_token](https://open.feishu.cn/document/ukTMukTMukTM/ukDNz4SO0MjL5QzM/auth-v3/auth/tenant_access_token).<br>**Value format**: "Bearer access_token"<br>**Example value**: "Bearer t-g1044qeGEDXTB6NDJOGV4JQCYDGHRBARFTGT1234"
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Request body

Parameter | Type | Required | Description
---|---|---|---
approval_code | string | Yes | Approval definition Code acquisition methods:<br>- Call the [Create Approval Definition](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/create) interface and obtain the approval_code from the response parameter.<br>- Log in to the approval management backend, get it from the URL of the specified approval definition. For specific operations, see [What is Approval Code](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/overview-of-approval-resources#8151e0ae).
instance_code | string | Yes | Approval instance Code acquisition methods:<br>- Call the [Create Approval Instance](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/create) interface and obtain the instance_code from the response parameter.<br>- Call the [Batch Get Approval Instance ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/list) interface to get the required approval instance Code.<br>- Call the [Query Instance List](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/query), set the filter conditions to query the specified approval instance Code.
user_id | string | Yes | User's user_id. Refer to [How to obtain User ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id) for acquisition methods.
task_id | string | Yes | Approval task ID. Call [Get Single Approval Instance Detail](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/get) and obtain the required id from the task_list in the return result.
comment | string | No | Comment
add_sign_user_ids | List\<string\> | Yes | User IDs of the people who are added for signing. You can specify multiple. Refer to [How to obtain User ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id) for acquisition methods.
add_sign_type | int | Yes | Signing methods, optional values are:<br>- 1: Pre-sign, approved before the current operating user.<br>- 2: Post-sign, automatically approved after the current approval, and transferred to the signers.<br>- 3: Parallel sign, jointly approved with the current operating user.
approval_method | int | No | It is necessary to fill in this parameter only when pre-signing or post-signing. Optional values are:<br>- 1: Or-sign, one approver agrees or refuses.<br>- 2: Joint-sign, requires all approvers to agree or refuse.

### Request body example

```json
{
    "approval_code": "3B68E280-CF10-4198-B4CD-2E3BB97981D8",
    "instance_code": "289330DE-FBF1-4A47-91F9-9EFCCF11BCAE",
    "user_id": "b16g66e3",
    "task_id": "6955096766400167956",
    "comment": "addSignComment",
    "add_sign_user_ids": ["d19b913b","3313g62b"],
    "add_sign_type": 1,
    "approval_method": 1
}
```

##  Response

###  Response body
|Parameter|Type|Description|
|-|-|-|
|code|int|Error code. A value other than 0 indicates failure.|
|msg|String|Return code description.|
###  Response body example

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

For more error code information, see [General error codes](https://open.feishu.cn/document/ukTMukTMukTM/ugjM14COyUjL4ITN).
