Calendars: update

更新日历的元数据。 立即试用

请求

HTTP 请求

PUT https://www.googleapis.com/calendar/v3/calendars/calendarId

参数

参数名称 说明
路径参数
calendarId string 日历标识符。如需检索日历 ID,请调用 calendarList.list 方法。如果您想访问当前登录用户的主要日历,请使用“primary”关键字。

授权

此请求需要获得以下至少一个范围的授权:

范围
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/calendar.app.created
https://www.googleapis.com/auth/calendar.calendars

如需了解详情,请参阅身份验证和授权页面。

请求正文

在请求正文中,提供具有以下属性的 Calendars 资源

属性名称 说明 备注
可选属性
description string 日历的说明。可选。 可写入
location string 日历的地理位置(采用自由格式文本)。可选。 可写入
summary string 日历的标题。 可写入
timeZone string 日历的时区。(格式为 IANA 时区数据库名称,例如“Europe/Zurich”)。可选。 可写入

响应

如果成功,此方法将在响应正文中返回 Calendars 资源

试试看!

使用下面的 API Explorer 对实际数据调用此方法,然后查看响应。