Update a tag, trigger or variable
update_entityReplace a GTM tag, trigger, or variable completely by its API path. Fetch the current resource first, modify it, and submit the full object with its fingerprint to avoid conflicts.
Instructions
Updates a tag, trigger or variable by its API path. PUT semantics: this is a FULL REPLACE, not a patch — fetch the current resource with get_resource, modify it, and send the whole object back. Pass the resource's last-seen fingerprint for optimistic-concurrency safety; a mismatch fails the request. Requires the tagmanager.edit.containers scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The complete replacement resource JSON. | |
| path | Yes | API-relative resource path as returned in the resource's own "path" field, e.g. "accounts/1/containers/2/workspaces/3/triggers/5". | |
| fingerprint | No | The fingerprint from the last read of this resource; the update fails if it is stale. |