Calendars: update

更新日曆的中繼資料。立即試用

要求

HTTP 要求

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

參數

參數名稱 說明
路徑參數
calendarId string 日曆 ID。如要擷取日曆 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,針對即時資料呼叫這個方法,然後查看回應。