Skip to content
能力中心
产品中心
应用市场
WebOffice
开发者后台

新建考勤组

新建打卡考勤组

标签打卡考勤组

请求说明

字段
请求地址
https://openapi.wps.cn/v7/attendance/groups/create
HTTP 方法
POST
接口描述
新建考勤组
签名方式
KSO-1
限频策略
权限要求
查询和管理打卡考勤组(应用授权) kso.attendance_group.readwrite

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Id-Type
string类型
* internal - 内部
* external - 外部
internal, external

请求体(Body)

请求体格式: application/json

没有可用的数据

请求体示例

json
{
  "allow_external": true,
  "allow_move_conflict": true,
  "allow_photo_punch_on_location_fail": true,
  "allow_remedy": true,
  "attendance_address_settings": [
    {
      "id": "string",
      "lat": "string",
      "lng": "string",
      "location_name": "string",
      "location_title": "string",
      "scope": "100"
    }
  ],
  "attendance_wifi_settings": [
    {
      "addr": "string",
      "id": "string",
      "ssid": "string"
    }
  ],
  "auto_holiday": true,
  "depts": [
    "string"
  ],
  "effective_type": "tomorrow",
  "external_settings": {
    "allow_location_adjustment": true,
    "location_adjustment_range": "50",
    "must_approval": true,
    "must_photo": true,
    "must_remark": true
  },
  "flexible_time_rules": [
    {
      "in_time_come_late": 0,
      "out_time_leave_early": 0
    }
  ],
  "free_punch_settings": {
    "free_start_time": "string",
    "workday_no_punch_as_lack": true
  },
  "is_enable": true,
  "is_enable_address": true,
  "is_enable_prevent_cheat": true,
  "is_enable_wifi": true,
  "is_enabled_flexible_punch": true,
  "is_enabled_rest_time": true,
  "master_admins": [
    "string"
  ],
  "name": "string",
  "no_attendance_users": [
    "string"
  ],
  "operator_id": "string",
  "prevent_cheat_settings": {
    "intercept_cheat_app": true,
    "intercept_proxy_punch": true,
    "suspected_cheat_handle": "record"
  },
  "punch_time_rules": [
    {
      "in_time": "string",
      "in_time_after": 0,
      "in_time_before": 0,
      "out_time": "string",
      "out_time_after": 0,
      "out_time_before": 0
    }
  ],
  "remedy_settings": {
    "days_limit": 0,
    "is_count_limit": true,
    "is_time_limit": true,
    "monthly_count": 0,
    "monthly_reset_day": 0
  },
  "rest_time_rules": [
    {
      "end_time": "string",
      "start_time": "string"
    }
  ],
  "rule_type": "fixed",
  "sub_admin_permissions": {
    "set_group_member": true,
    "set_member_scopes": [
      {
        "company_id": "string",
        "dept_id": "string",
        "type": "user",
        "user_id": "string"
      }
    ],
    "set_punch_address": true,
    "set_punch_others_cfg": true,
    "set_punch_time": true,
    "view_export_statistics": true
  },
  "sub_admins": [
    "string"
  ],
  "users": [
    "string"
  ],
  "workdays": [
    "string"
  ]
}

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "data": {
    "group_id": "string"
  },
  "code": 0,
  "msg": "string"
}