跳转到主要内容
POST
/
change
/
list
变更列表
curl --request POST \
  --url 'https://api.flashcat.cloud/change/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "p": 123,
  "limit": 123,
  "start_time": 123,
  "end_time": 123,
  "filters": [
    [
      {
        "key": "title",
        "oper": "IN",
        "vals": [
          "<string>"
        ]
      }
    ]
  ],
  "include_events": true,
  "integration_ids": [
    123
  ],
  "channel_ids": [
    123
  ],
  "order_by": "start_time",
  "asc": true,
  "query": "<string>"
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "items": [
      {
        "change_id": "<string>",
        "data_source_id": 123,
        "data_source_name": "<string>",
        "title": "<string>",
        "change_key": "<string>",
        "change_status": "Planned",
        "start_time": 123,
        "last_time": 123,
        "end_time": 123,
        "description": "<string>",
        "labels": {},
        "events": [
          {
            "event_id": "<string>",
            "integration_id": 123,
            "title": "<string>",
            "change_key": "<string>",
            "change_status": "Planned",
            "link": "<string>",
            "event_time": 123,
            "description": "<string>",
            "labels": {}
          }
        ]
      }
    ],
    "has_next_page": true,
    "total": 123
  }
}

授权

app_key
string
query
必填

请求体

application/json
p
integer

页码,从1开始,不传默认为1

limit
integer

分页条数,不传默认为10

start_time
integer

start_time和end_time同时不传,则默认查询过去1小时

end_time
integer

start_time和end_time同时不传,则默认查询过去1小时

filters
object[][]

外层条件,条件之间为OR关系

内层条件

include_events
boolean

是否同时返回change_event

integration_ids
integer[]

变更数据集成id

channel_ids
integer[]

协作空间id

order_by
enum<string>

默认按start_time排序

可用选项:
start_time,
last_time
asc
boolean

是否升序,默认降序

query
string

支持正则表达式,支持筛选标题、描述、change_key

响应

200 - application/json
error
object

错误信息,仅失败时存在

data
object