跳转到主要内容
POST
/
schedule
/
info
查看值班详情
curl --request POST \
  --url 'https://api.flashcat.cloud/schedule/info?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schedule_id": 123,
  "start": 1111111111,
  "end": 11111111111
}
'
{
  "request_id": "0a63016e66ab47532d066bea90a892b0",
  "data": {
    "cur_oncall": {
      "start": 1722500940,
      "end": 1722787200,
      "group": {
        "name": "A",
        "group_name": "A",
        "members": [
          {
            "role_id": 0,
            "person_ids": [
              2715149662131
            ]
          }
        ]
      },
      "update_at": 1720159704,
      "weight": 0,
      "index": 0
    },
    "next_oncall": {
      "start": 1722500940,
      "end": 1722787200,
      "group": {
        "name": "A",
        "group_name": "A",
        "members": [
          {
            "role_id": 0,
            "person_ids": [
              2715149662131
            ]
          }
        ]
      },
      "update_at": 1720159704,
      "weight": 0,
      "index": 0
    }
  }
}

授权

app_key
string
query
必填

请求体

application/json
schedule_id
integer
必填
start
integer
必填
end
integer
必填

跟start的间隔不大于45天

响应

200 - application/json
data
object
必填
request_id
string
必填
error
object