Request
| Basic Information | |
|---|---|
| HTTP URL | https://api.dingtalk.io/topapi/attendance/group/wifis/remove |
| HTTP Method | POST |
| Supported app types | appType-Internal app |
| Required permissions | permission-qyapi_attendance_group_manage-Attendance group management permission |
Query Parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | 6d1bxxxx | The app credential used to call this API. Obtain it by calling the Get the access_token of an internal app API. |
Request Body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| op_userid | String | No | user01 | The userId of the operator. |
| group_key | String | Yes | CEDDFxxxx | The attendance group ID. Note If you identify the attendance group by group_id, call the Convert groupId to groupKey API to convert group_id to group_key. |
| wifi_key_list | String | Yes | 0151Exxxx | The Wi-Fi keys. Obtain them by calling the Batch query Wi-Fi information API. Remove up to 100 Wi-Fi entries per call. |
Request Example
curl -X POST "https://api.dingtalk.io/topapi/attendance/group/wifis/remove" \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'access_token=deb9baxxxx32b89' \
-d 'group_key=0151E022xxxx917E876' \
-d 'op_userid=123456' \
-d 'wifi_key_list=0151E02xxxx917E876'
DingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
OapiAttendanceGroupWifisRemoveRequest req = new OapiAttendanceGroupWifisRemoveRequest();
req.setOpUserid("user01");
req.setGroupKey("CEDDFxxxx");
req.setWifiKeyList("0151Exxxx");
OapiAttendanceGroupWifisRemoveResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());
import dingtalk.api
req=dingtalk.api.OapiAttendanceGroupWifisRemoveRequest("https://api.dingtalk.io/topapi/attendance/group/wifis/remove")
req.op_userid="123456"
req.group_key="0151E02xxxx917E876"
req.wifi_key_list="0151E02xxxx7E876"
try:
resp= req.getResponse(access_token)
print(resp)
except Exception,e:
print(e)
include "TopSdk.php";
date_default_timezone_set('Asia/Shanghai');
$c = new DingTalkClient(DingTalkConstant::$CALL_TYPE_OAPI, DingTalkConstant::$METHOD_POST , DingTalkConstant::$FORMAT_JSON);
$req = new OapiAttendanceGroupWifisRemoveRequest;
$req->setOpUserid("123456");
$req->setGroupKey("0151E02xxxx17E876");
$req->setWifiKeyList("0151E02xxxx7E876");
$resp = $c->execute($req, $access_token, "https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
IDingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
OapiAttendanceGroupWifisRemoveRequest req = new OapiAttendanceGroupWifisRemoveRequest();
req.OpUserid = "123456";
req.GroupKey = "0151E022xxxx7E876";
req.WifiKeyList = "0151E0xxxx17E876";
OapiAttendanceGroupWifisRemoveResponse rsp = client.Execute(req, access_token);
Console.WriteLine(rsp.Body);
Response
Response Body
| Name | Type | Example | Description |
|---|---|---|---|
| result | Result | The list of wifiIds that were deleted successfully. | |
| error_info_list | ErrorInfo[] | The list of failures. | |
| failure_list | String[] | 0151EEDDDF0xxxx | The list of errors. |
| msg | String | business fault | The error description. |
| code | String | 1000 | The error code. |
| success_list | String[] | 0151EEDDDF0xxxx | The list of successes. |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The return code description. |
| success | Boolean | true | Indicates whether the call succeeded. - true: Success - false: Failed |
| request_id | String | 7o76z7s5cett | The request ID. |
Response Body Example
{
"errcode": 0,
"errmsg":"ok",
"result": {
"success_list": [
"0151Exxxx",
]
},
"success": true,
"request_id": "7o76z7s5cett"
}