# Entity

- [JSON representation](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Entity#SCHEMA_REPRESENTATION)
- [ChangeStatus](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Entity#ChangeStatus)

A workspace entity that may represent a tag, trigger, variable, or folder in addition to its status in the workspace.

| JSON representation |
|---|
| ``` { "changeStatus": enum (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Entity#ChangeStatus`), // Union field `entity` can be only one of the following: "tag": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.tags#Tag`) }, "trigger": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.triggers#Trigger`) }, "variable": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.variables#Variable`) }, "folder": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.folders#Folder`) }, "client": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.clients#Client`) }, "transformation": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.transformations#Transformation`) }, "zone": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.zones#Zone`) }, "customTemplate": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.templates#CustomTemplate`) }, "builtInVariable": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.versions#BuiltInVariable`) }, "gtagConfig": { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.gtag_config#GtagConfig`) } // End of list of possible types for union field `entity`. } ``` |

| Fields ||
|---|---|
| `changeStatus` | ``enum (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Entity#ChangeStatus`)`` Represents how the entity has been changed in the workspace. |
| Union field `entity`. `entity` can be only one of the following: ||
| `tag` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.tags#Tag`)`` The tag being represented by the entity. |
| `trigger` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.triggers#Trigger`)`` The trigger being represented by the entity. |
| `variable` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.variables#Variable`)`` The variable being represented by the entity. |
| `folder` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.folders#Folder`)`` The folder being represented by the entity. |
| `client` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.clients#Client`)`` The client being represented by the entity. |
| `transformation` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.transformations#Transformation`)`` The transformation being represented by the entity. |
| `zone` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.zones#Zone`)`` The zone being represented by the entity. |
| `customTemplate` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.templates#CustomTemplate`)`` The custom template being represented by the entity. |
| `builtInVariable` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.versions#BuiltInVariable`)`` The built in variable being represented by the entity. |
| `gtagConfig` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.gtag_config#GtagConfig`)`` The gtag config being represented by the entity. |

## ChangeStatus

| Enums ||
|---|---|
| `changeStatusUnspecified` |   |
| `none` | The entity has never been changed. |
| `added` | The entity is added to the workspace. |
| `deleted` | The entity is deleted from the workspace. |
| `updated` | The entity has been updated in the workspace. |