跳转到主要内容
POST
/
schedule
/
self
个人值班日程
curl --request POST \
  --url 'https://api.flashcat.cloud/schedule/self?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start": 11111111,
  "end": 11111111
}
'
{
  "data": {
    "items": [
      {
        "layers": [
          {
            "layer_name": "<string>",
            "mode": 0,
            "layer_start": 123,
            "groups": [
              {
                "group_name": "<string>",
                "members": [
                  {
                    "role_id": 123,
                    "person_ids": [
                      123
                    ]
                  }
                ]
              }
            ],
            "fair_rotation": true,
            "handoff_time": 123,
            "layer_end": 123,
            "restrict_mode": 0,
            "restrict_periods": [
              {
                "restrict_start": 123,
                "restrict_end": 123
              }
            ],
            "day_mask": {
              "repeat": [
                0
              ]
            },
            "rotation_unit": "hour",
            "rotation_value": 123
          }
        ],
        "layer_schedules": [
          {
            "layer_name": "<string>",
            "mode": 123,
            "schedules": [
              {
                "start": 123,
                "end": 123,
                "hash": "<string>",
                "group": {
                  "group_name": "<string>",
                  "members": [
                    {
                      "role_id": 123,
                      "person_ids": [
                        123
                      ]
                    }
                  ]
                }
              }
            ]
          }
        ],
        "final_schedule": {
          "layer_name": "<string>",
          "mode": 123,
          "schedules": [
            {
              "start": 123,
              "end": 123,
              "hash": "<string>",
              "group": {
                "group_name": "<string>",
                "members": [
                  {
                    "role_id": 123,
                    "person_ids": [
                      123
                    ]
                  }
                ]
              }
            }
          ]
        },
        "schedule_id": 123,
        "schedule_name": "<string>",
        "description": "<string>",
        "team_id": 123,
        "enabled": true
      }
    ]
  },
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求体

application/json
start
integer
必填
end
integer
必填

跟start的间隔不大于45天

响应

200 - application/json
data
object
error
object