---
schema_version: "1"
id: 251e26e2116f09e1a523a3f85b5c27426aab43e3ff88d55773dd75890d76453d
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_emailUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_emailUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 19bc7cf46f52edb5d626c685e860725ec2adc931259c1d33849365aee4846bc5
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates an email based on the specified criteria.

### Syntax

Update(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                       |
| ------- | ------ | ------------ | --------------------------------- |
| **1**   | string | **Required** | Criteria used to search for email |

## Example

This sample code updates the Name and Subject attributes of the email to the specified value:

```
var myEmail = Email.Init("myEmail");
var status = myEmail.Update({ "Name": "Updated Name", "Subject" : "Updated Email Subject" });
```
