# 修改日程

# 接口

PATCH /channels/{channel_id}/schedules/{schedule_id}

# 功能描述

用于修改日程子频道 channel_idschedule_id 指定的日程的详情。

  • 要求操作人具有管理频道的权限,如果是机器人,则需要将机器人设置为管理员。

# Content-Type

application/json

# 参数

字段名 类型 描述
schedule Schedule 日程对象,不需要带 id

# 返回

返回 Schedule 对象。

# 错误码

详见错误码

# 示例

请求数据包

{
  "schedule": {
    "name": "今晚八点上王者",
    "start_timestamp": "1642076453000",
    "end_timestamp": "1642083653000",
    "jump_channel_id": "0",
    "remind_type": "0"
  }
}
1
2
3
4
5
6
7
8
9

响应数据包

{
  "id": "xxxxxx",
  "name": "今晚八点上王者",
  "start_timestamp": "1642076453000",
  "end_timestamp": "1642083653000",
  "creator": {
    "user": {
      "id": "xxxxxx",
      "username": "xxxxxx",
      "bot": true
    },
    "nick": "",
    "joined_at": "2022-01-13T11:02:21+08:00"
  },
  "jump_channel_id": "0",
  "remind_type": "0"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
上次更新: 12/26/2021, 6:57:43 PM
手机QQ扫码
开发者社区
加入官方频道开发者社区