# Tag Manager API . accounts . containers . folders

## Instance Methods

Returns the entities Resource.

Creates a GTM Folder.

Deletes a GTM Folder.

Gets a GTM Folder.

Lists all GTM Folders of a Container.

Updates a GTM Folder.

### Method Details

`create(accountId, containerId, body=None, x__xgafv=None)`

    Creates a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a Google Tag Manager Folder.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "accountId": "A String", # GTM Account ID.
      "containerId": "A String", # GTM Container ID.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "accountId": "A String", # GTM Account ID.
        "containerId": "A String", # GTM Container ID.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      }

`delete(accountId, containerId, folderId, x__xgafv=None)`

    Deletes a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

`get(accountId, containerId, folderId, x__xgafv=None)`

    Gets a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "accountId": "A String", # GTM Account ID.
        "containerId": "A String", # GTM Container ID.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      }

`list(accountId, containerId, x__xgafv=None)`

    Lists all GTM Folders of a Container.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # List Folders Response.
        "folders": [ # All GTM Folders of a GTM Container.
          { # Represents a Google Tag Manager Folder.
            "name": "A String", # Folder display name.
                # @mutable tagmanager.accounts.containers.folders.create
                # @mutable tagmanager.accounts.containers.folders.update
            "accountId": "A String", # GTM Account ID.
            "containerId": "A String", # GTM Container ID.
            "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
                # This value is recomputed whenever the folder is modified.
            "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
          },
        ],
      }

`update(accountId, containerId, folderId, body=None, fingerprint=None, x__xgafv=None)`

    Updates a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a Google Tag Manager Folder.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "accountId": "A String", # GTM Account ID.
      "containerId": "A String", # GTM Container ID.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
    }

      fingerprint: string, When provided, this fingerprint must match the fingerprint of the folder in
    storage.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "accountId": "A String", # GTM Account ID.
        "containerId": "A String", # GTM Container ID.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      }