Skip to main content

goalEdit

Replaces the trigger set and labels of a non-deleted goal, and its name when given, and returns only its id; use goalRename to change only the name. Every filter is validated before anything is saved. Triggers sent with an id are updated, triggers without one are created, and existing triggers left out are soft-deleted. On success the tracking script is marked for regeneration and a new thumbnail screenshot is requested. Requires goal edit access.

goalEdit(
params: GoalEditParams!
): GoalMutationResult!

Arguments​

goalEdit.params ● GoalEditParams! non-null input​

Goal id and its complete new trigger list.

Type​

GoalMutationResult object​

Id of the goal changed by goalCreate, goalEdit, goalRename, or goalDelete. Fetch the full goal with goalDetail, or with goalRef after deletion.