PATCH/calendars/{calendarId}

カレンダーを更新する。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

calendar

HTTP Request

PATCHhttps://www.worksapis.com/v1.0/calendars/{calendarId}

Path Parameters

ParameterTypeDescription
calendarId string 

カレンダー ID


required
example : calendar-96b8-4c74-8277-7953e0b4604a 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
calendarName string 

カレンダー名


maxLength : 50 
members array (CalendarMember) 

共有ユーザーリスト


minItems : 0
uniqueItems : true 
description string 

カレンダー説明


maxLength : 1000 
isPublic boolean 

公開フラグ


default : false 

CalendarMember

PropertyTypeDescription
id string 

ユーザー ID (userId)
組織 ID (orgUnitId)
グループ ID (groupId)


required 
type string 

ユーザータイプ

  • USER : ユーザー
  • GROUP : グループ
  • ORGUNIT : 組織

required
Allowed values : USER, GROUP, ORGUNIT 
role string 

ユーザー権限

  • CALENDAR_EVENT_READ_WRITE : カレンダーおよび予定の管理
  • EVENT_READ_WRITE : 予定の管理
  • EVENT_READ : 予定の詳細の閲覧
  • EVENT_READ_FREE_BUSY : 予定の時間枠のみ閲覧

required
Allowed values : CALENDAR_EVENT_READ_WRITE, EVENT_READ_WRITE, EVENT_READ, EVENT_READ_FREE_BUSY 

Request Example

example

1{2  "calendarName": "calendar",3  "description": "memo",4  "members": [5    {6      "id": "member1@example.com",7      "type": "USER",8      "role": "CALENDAR_EVENT_READ_WRITE"9    },10    {11      "id": "member2@example.com",12      "type": "USER",13      "role": "EVENT_READ_WRITE"14    }15  ],16  "isPublic": true17}

Response

HTTP 200

OK

PropertyTypeDescription
calendarId string 

カレンダー ID


required 
calendarName string 

カレンダー名


required
maxLength : 50 
members array (CalendarMember) 

共有ユーザーリスト


required
minItems : 0
uniqueItems : true 
description string 

カレンダー説明

 
isPublic boolean 

Default : false
公開フラグ

 
calendarEmail string 

カレンダーの固有メールアドレス
共有カレンダーに予定を登録する際、Organizer.email に入力する値。
例)
"organizer": { "email": "{calendarEmail}" }

 
type string 

カレンダータイプ


Allowed values : DOMAIN, INDIVIDUAL, GROUP, ORGUNIT, MESSAGE
readOnly : true 

CalendarMember

PropertyTypeDescription
id string 

ユーザー ID (userId)
組織 ID (orgUnitId)
グループ ID (groupId)


required 
type string 

ユーザータイプ

  • USER : ユーザー
  • GROUP : グループ
  • ORGUNIT : 組織

required
Allowed values : USER, GROUP, ORGUNIT 
role string 

ユーザー権限

  • CALENDAR_EVENT_READ_WRITE : カレンダーおよび予定の管理
  • EVENT_READ_WRITE : 予定の管理
  • EVENT_READ : 予定の詳細の閲覧
  • EVENT_READ_FREE_BUSY : 予定の時間枠のみ閲覧

required
Allowed values : CALENDAR_EVENT_READ_WRITE, EVENT_READ_WRITE, EVENT_READ, EVENT_READ_FREE_BUSY 

Response Example

example

1{2  "calendarName": "calendar",3  "description": "memo",4  "members": [5    {6      "id": "member1@example.com",7      "type": "USER",8      "role": "CALENDAR_EVENT_READ_WRITE"9    },10    {11      "id": "member2@example.com",12      "type": "USER",13      "role": "EVENT_READ_WRITE"14    }15  ],16  "calendarEmail": "calendar-96b8-4c74-8277-7953e0b4604a@jp1-groups.example.com",17  "calendarId": "calendar-96b8-4c74-8277-7953e0b4604a",18  "isPublic": true,19  "type": "INDIVIDUAL"20}

HTTP 400

Bad Request

HTTP 403

Forbidden

HTTP 404

Not Found