Update an existing goal. All attributes are optional; only the attributes you send are changed. criterion replaces the stored criterion: send its operator, and a value unless the operator is is_present or is_empty, which take none. Its field can be omitted and cannot be changed — delete the goal and create a new one instead. Changes are not retroactive: page views the goal already marked keep it, and earlier page views are not re-checked.The operator must be one the goal's field accepts; an unsupported one is rejected with a 422 naming the accepted operators:field | Operators |
|---|
page_url | is, is_not, begins_with, not_begins_with, ends_with, contains, not_contains |
page | is, is_not, begins_with, ends_with, contains, not_contains |
form_submit | is, is_not, is_present, is_empty |
file_download_name | is, is_not, contains, is_present, is_empty |
video_title | is, is_not, begins_with, contains, is_present, is_empty |
video_url | is, is_not, begins_with, is_present, is_empty |
Requires the web_visits:write OAuth2 scope.