POST /calendars
Changed onCreates a secondary calendar. The authenticated user for the request is made the data owner of the new calendar.
Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation of authority to allow applications to act on behalf of a specific user. Don't use a service account for authentication. If you use a service account for authentication, the service account is the data owner, which can lead to unexpected behavior. For example, if a service account is the data owner, data ownership cannot be transferred.
Request
- Base URLhttps://www.googleapis.com/calendar/v3
- URLhttps://www.googleapis.com/calendar/v3/calendars
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/calendarAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/calendar
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/calendar.app.createdAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/calendar.app.created
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/calendar.calendarsAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/calendar.calendars
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/calendarwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/calendarwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/calendar.calendarswas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/calendar.calendarswas removed from the endpoint's security schemeOauth2c
- info
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status - info
the security scope
https://www.googleapis.com/auth/calendarwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/calendarwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/calendar.calendarswas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/calendar.calendarswas removed from the endpoint's security schemeOauth2c
- breaking