Skip to content

Google: Creates an event — request body — body gadget

Creates an event.: request body, field body / gadget. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: Creates an event — request body — body gadget

FieldTypePresenceDescription and constraints
$objectRootA gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata.
displaystringOptionalThe gadget’s display mode. Deprecated. Possible values are:
- “icon” - The gadget displays next to the event’s title in the calendar view.
- “chip” - The gadget displays when the event is clicked.
heightintegerOptionalThe gadget’s height in pixels. The height must be an integer greater than 0. Optional. Deprecated.
Format: int32
iconLinkstringOptionalThe gadget’s icon URL. The URL scheme must be HTTPS. Deprecated.
linkstringOptionalThe gadget’s URL. The URL scheme must be HTTPS. Deprecated.
preferencesobjectOptionalPreferences.
Additional keys: see wildcard field
preferences.*stringAdditional keysThe preference name and corresponding value.
titlestringOptionalThe gadget’s title. Deprecated.
typestringOptionalThe gadget’s type. Deprecated.
widthintegerOptionalThe gadget’s width in pixels. The width must be an integer greater than 0. Optional. Deprecated.
Format: int32

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.