Request
| Basic information | |
|---|---|
| HTTP URL | https://oapi.dingtalk.io/topapi/extcontact/delete |
| HTTP Method | POST |
| Supported app types | appType-Internal app |
| Required permissions | permission-qyapi_ext_write-Write permission for external contacts of the organization |
Query parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | 6d1bxxxx | The app credential used to call this API. Obtain it through the API for getting the access_token of an internal app. |
Request body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| user_id | String | Yes | 0125xxxx0251487 | The userId of the external contact to delete. Call the Get the list of external contacts API to obtain the value of the userid parameter. |
Request example
Response
Response body
| Name | Type | Example | Description |
|---|---|---|---|
| errcode | Number | 0 | The return code. |
| request_id | String | 439eqp31da45 | The request ID. |
Response body example
Error codes
If an error occurs when calling this API, refer to the Global error codes document to find a solution based on the error message.| Error code (errcode) | Error message (errmsg) | Solution |
|---|---|---|
| 33009 | Invalid tokenGrantType | Check whether the access_token is correct. |
| 33012 | Invalid userId | Check whether the userId is correct. |
| 43007 | Operation permission is required | Check whether the access_token has the required operation permissions. |
| 400001 | System error | Try again later. |