# Update Shared Marketing Campaign Template

Updates a shared automation template; omitted settings stay. Imports through its link from then on get the changed automation and objects; earlier imports are not touched. A new BAM assignment tag is refused until confirmActivation is true, which may only be passed after the user approved it. Read the current settings with get-shared-automation-template.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "ID of the template, from search-shared-automation-templates or create-shared-automation-template",
      "minimum": 1
    },
    "name": {
      "type": [
        "null",
        "string"
      ],
      "description": "New name of the template",
      "default": null,
      "minLength": 1,
      "maxLength": 250
    },
    "automationId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "ID of the account's automation the template hands out",
      "default": null,
      "minimum": 1
    },
    "includeDependentEntities": {
      "type": [
        "null",
        "boolean"
      ],
      "description": "true carries every object the automation uses; false only those in includedObjects",
      "default": null
    },
    "includedObjects": {
      "type": "object",
      "properties": {
        "emails": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "customFields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "webhooks": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "automations": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "additionalProperties": false,
      "default": null
    },
    "bamAssignmentTagId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "Tag that lists the template in the BAM template overview of a linked client account once its contact carries it; it does not restrict the link; 0 removes it",
      "default": null,
      "minimum": 0
    },
    "confirmActivation": {
      "type": "boolean",
      "description": "true only after the user approved a new assignment tag",
      "default": false
    },
    "metaLabels": {
      "type": "array",
      "description": "Labels of the template; replaces the current ones",
      "default": null,
      "items": {
        "type": "string",
        "maxLength": 250
      }
    },
    "notes": {
      "type": [
        "null",
        "string"
      ],
      "description": "Internal note",
      "default": null,
      "maxLength": 1000
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "type",
    "id",
    "settings",
    "ui"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "settings": {
      "type": "object"
    },
    "ui": {
      "type": "object"
    }
  },
  "additionalProperties": false
}
```

