v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-135672128.0 KB
accounts

Creates a GTM Variable.

post/tagmanager/v2/{+parent}/variables

Path parameters

parentstring required

GTM Workspace's API relative path.

Request body

workspaceIdstring

GTM Workspace ID.

fingerprintstring

The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.

scheduleStartMsstring int64

The start timestamp in milliseconds to schedule a variable.

namestring

Variable display name.

parentFolderIdstring

Parent folder id.

pathstring

GTM Variable's API relative path.

scheduleEndMsstring int64

The end timestamp in milliseconds to schedule a variable.

typestring

GTM Variable Type.

accountIdstring

GTM Account ID.

notesstring

User notes on how to apply this variable in the container.

variableIdstring

The Variable ID uniquely identifies the GTM Variable.

tagManagerUrlstring

Auto generated link to the tag manager UI

enablingTriggerIdstring[]

For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling triggers are false. Treated as an unordered set.

containerIdstring

GTM Container ID.

disablingTriggerIdstring[]

For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false. Treated as an unordered set.

Response

Successful response