> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# template.metadataUpdated

> Emitted when template metadata is successfully updated.

## Event Properties

| Field          | Value                        |
| -------------- | ---------------------------- |
| `event`        | `"template.metadataUpdated"` |
| `confidential` | `boolean`                    |
| `payload`      | `object`                     |

<Tabs>
  <Tab title="Public Payload">
    | Field            | Type                | Description                              |
    | ---------------- | ------------------- | ---------------------------------------- |
    | `templateId`     | `string`            | Identifier of the template being updated |
    | `templateType`   | `"personal"`        | Type of template                         |
    | `source`         | `"template_detail"` | Where the update was initiated           |
    | `changedFields`  | `string[]`          | Which fields were changed                |
    | `versionChanged` | `false`             | Whether the template version changed     |

    #### Example

    ```json theme={null}
    {
      "event": "template.metadataUpdated",
      "confidential": false,
      "payload": {
        "templateId": "template_1",
        "templateType": "personal",
        "source": "template_detail",
        "changedFields": [
          "name",
          "description"
        ],
        "versionChanged": false
      }
    }
    ```
  </Tab>

  <Tab title="Confidential Payload">
    | Field            | Type                | Description                              |
    | ---------------- | ------------------- | ---------------------------------------- |
    | `templateId`     | `string`            | Identifier of the template being updated |
    | `templateType`   | `"personal"`        | Type of template                         |
    | `source`         | `"template_detail"` | Where the update was initiated           |
    | `changedFields`  | `string[]`          | Which fields were changed                |
    | `versionChanged` | `false`             | Whether the template version changed     |

    #### Example

    ```json theme={null}
    {
      "event": "template.metadataUpdated",
      "confidential": true,
      "payload": {
        "templateId": "template_1",
        "templateType": "personal",
        "source": "template_detail",
        "changedFields": [
          "name",
          "description"
        ],
        "versionChanged": false
      }
    }
    ```
  </Tab>
</Tabs>
