# REST Resource: accounts.containers.variables

- [Resource: Variable](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables#Variable)
  - [JSON representation](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables#Variable.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables#METHODS_SUMMARY)

## Resource: Variable

Represents a Google Tag Manager Variable.

| JSON representation |
|---|
| ``` { "accountId": string, "containerId": string, "variableId": string, "name": string, "type": string, "notes": string, "scheduleStartMs": string, "scheduleEndMs": string, "parameter": [ { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/Parameter`) } ], "enablingTriggerId": [ string ], "disablingTriggerId": [ string ], "fingerprint": string, "parentFolderId": string } ``` |

| Fields ||
|---|---|
| `accountId` | `string` GTM Account ID. |
| `containerId` | `string` GTM Container ID. |
| `variableId` | `string` The Variable ID uniquely identifies the GTM Variable. |
| `name` | `string` Variable display name. |
| `type` | `string` GTM Variable Type. |
| `notes` | `string` User notes on how to apply this variable in the container. |
| `scheduleStartMs` | `string (https://developers.google.com/discovery/v1/type-format format)` The start timestamp in milliseconds to schedule a variable. |
| `scheduleEndMs` | `string (https://developers.google.com/discovery/v1/type-format format)` The end timestamp in milliseconds to schedule a variable. |
| `parameter[]` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/Parameter`)`` The variable's parameters. |
| `enablingTriggerId[]` | `string` 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. |
| `disablingTriggerId[]` | `string` 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. |
| `fingerprint` | `string` The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. |
| `parentFolderId` | `string` Parent folder id. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/create` | Creates a GTM Variable. |
| ### `https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/delete` | Deletes a GTM Variable. |
| ### `https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/get` | Gets a GTM Variable. |
| ### `https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/list` | Lists all GTM Variables of a Container. |
| ### `https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.variables/update` | Updates a GTM Variable. |