0
votes

When I insert calendar with allowedConferenceSolutionTypes "eventHangout" using Calendar API but a response is provided "hangoutsMeet" but as per Google Calendar API response should be provided "eventHangout".

Request for creating calendar:

POST https://www.googleapis.com/calendar/v3/calendars?key=[YOUR_API_KEY] HTTP/1.1

Authorization: Bearer [YOUR_ACCESS_TOKEN] Accept: application/json Content-Type: application/json

{ "summary": "Event Hangout", "conferenceProperties": { "allowedConferenceSolutionTypes": [ "eventHangout" ] } }

Response: { "kind": "calendar#calendar", "etag": ""ZK9fcme_JbF_CB4WYnKnXWUeuYw"", "id": "[email protected]", "summary": "Event Hangout", "timeZone": "UTC", "conferenceProperties": { "allowedConferenceSolutionTypes": [ "hangoutsMeet" ] } }

How can I get allowedConferenceSolutionTypes "eventHangout" in the Calendar creation response?

it's always return "allowedConferenceSolutionTypes":["hangoutsMeet"]

Not eventHangout

1

1 Answers

0
votes

It is not possible to set/modify the calendar's allowedConferenceSolutionTypes property.

When creating a new calendar using Calendars.insert() you need to supply a Calendar resource in the request body having the summary as a required property

If you will check other properties available for the Calendar resource, conferenceProperties is not a writable property. Hence you cannot modify that property.

See notes column to identify writable properties.

enter image description here