updatePopup()

Updates the properties of an existing popup by its ID. Validates the changes against the schema before applying them.

Signature


Parameters

id string
The ID of the popup to update.
options Popup (partial)
The properties to update. Only the specified fields will be changed. The id cannot be modified.

Returns

The updated Popup, or null if the project has no popups, the popup is not found, or validation fails.

Example