# 说明

获取工作日历设置列表及启用选项

# url

https://api.tapd.cn/workspaces/get_work_calendar_settings

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

GET

# 请求参数

字段名 必选 类型及范围 说明
workspace_id integer 项目id

# 调用示例及返回结果

# 获取工作日历设置列表及启用选项

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' 'https://api.tapd.cn/workspaces/get_work_calendar_settings?workspace_id=48464494'

# 返回结果

{
     "status": 1,
    "data": [
        {
            "name": "中国大陆法定工作日",
            "type": "system",
            "enable": true
        },
        {
            "name": "自定义工作日",
            "type": "custom",
            "enable": false
        }
    ],
    "info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# 返回字段说明

字段 说明
name 名称
type 类型
enable 是否启用
上次更新: 2025-06-20 10:24:31