---
schema_version: "1"
id: 3494d092c60a1babdfc228818bfb2de921caa105888ab3eec78b59963631d396
title: Update
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_templateUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_templateUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: efc20f611d4a25e95f45dab03a121523eae6675236a10e152a98a1cc8ba9b57c
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates a template and returns a status

### Syntax

Update(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                             |
| ------- | ------ | ------------ | --------------------------------------- |
| **1**   | string | **Required** | Attributes regarding template to change |

## Examples

This sample code updates the Name attribute of the template to the specified value:

```
var myTemplate = Template.Init('myTemplateCK');
var status = temp.Update({ "TemplateName" : "Edited Template" });
```
