批量获取考勤组详情
POST
/topapi/attendance/getsimplegroups最后修改时间:: 2 年前
责任人: 未设置
说明
调用本接口查询所有的考勤组详情信息。
服务地址:https://oapi.dingtalk.com
权限
服务端API是以应用维度授权的,在调用接口前,确保已经为应用添加了接口权限。详情请参考权限申请。
应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 是 | 开发者后台申请 | 调试 |
第三方企业应用 | 否 | — | — |
第三方个人应用 | 否 | — | — |
请求参数
Query 参数
access_token
string
必需
调用服务端接口的授权凭证,可通过调用access_token接口获得。
示例值:
6d1bxxxx
Body 参数application/json
offset
number
可选
支持分页查询,与size参数同时设置时才生效,此参数代表偏移量,偏移量从0开始。
size
number
可选
分页大小,最大10。
示例
{
"offset": 0,
"size": "10"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
string
请求ID。
errcode
number
返回码。
errmsg
string
返回码描述。
result
object
返回结果。
has_more
boolean
可选
分页用,表示是否有更多数据。
groups
array [object {12}]
考勤组列表。
示例
{
"": "string",
"errcode": 0,
"errmsg": "string",
"result": {
"has_more": true,
"groups": [
{
"group_id": 0,
"is_default": true,
"group_name": "string",
"selected_class": [
{
"enable_emp_select_class": true,
"disable_check_without_schedule": true,
"disable_check_when_rest": true,
"setting": {},
"class_id": 0,
"sections": [
{
"times": [
{
"check_time": "string",
"check_type": "string",
"across": 0
}
]
}
],
"class_name": "string"
}
],
"type": "string",
"member_count": 0,
"default_class_id": 0,
"work_day_list": [
"string"
],
"classes_list": [
"string"
],
"manager_list": [
"string"
],
"dept_name_list": [
"string"
],
"owner_user_id": "string"
}
]
}
}
最后修改时间: 2 年前