Skip to main content

updateSnapshot

Updates the settings of one editable snapshot and refreshes the tracking script, returning its ID and name or validation errors. Send every setting, starting from the values snapshot returns: an omitted name or reoccurring is reset. Start and expiration changes are ignored without the matching permissions flags; use renameSnapshot to change only the name. Requires snapshot edit access.

updateSnapshot(
id: Int!
params: UpdateSnapshotParams!
): UpdateSnapshotResults

Arguments​

updateSnapshot.id ● Int! non-null scalar​

Snapshot ID from snapshotsList, snapshots, or createSnapshots.

updateSnapshot.params ● UpdateSnapshotParams! non-null input​

Settings to apply; required option/value pairs must be supplied even when disabled.

Type​

UpdateSnapshotResults object​

Update result from updateSnapshot, containing the saved ID and name or validation errors.