Create a tag, trigger or variable
create_entityCreate a tag, trigger, or variable in a Google Tag Manager workspace by providing resource JSON with name and type, plus optional parameters and firing trigger IDs.
Instructions
Creates a tag, trigger or variable in a workspace. body is the resource JSON: minimally { name, type } plus type-specific parameter entries; tags also take firingTriggerId (array of trigger id strings). Example tag body: { "name": "GA4 event", "type": "gaawe", "parameter": [...], "firingTriggerId": ["12"] }. Returns the created resource with its server-assigned id and fingerprint. Requires the tagmanager.edit.containers scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The resource JSON to create (name, type, parameter, and for tags firingTriggerId). | |
| account_id | Yes | GTM account id (string). | |
| entity_type | Yes | Which collection to create in. | |
| container_id | Yes | Container id (string). | |
| workspace_id | Yes | Workspace id (string). |