---
schema_version: "1"
id: 3a089e851b60b26f39674e346d8b4e11b8fee4b1c0b40a3a308a495c89a97b29
title: DefinitionUpdate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_sendDefinitionUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_sendDefinitionUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 66b91ae8436ffb76bdf2a656d9bb22a1ea01673f839a6efd447076328a400fff
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# DefinitionUpdate

## Overview

Updates the send definition and returns a status

### Syntax

DefinitionUpdate(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                             |
| ------- | ------ | ------------ | --------------------------------------- |
| **1**   | string | **Required** | Attributes of send definition to change |

## Examples

This sample code initializes a send definition with an external key of myESD and updates the name:

```
var esd = Send.Definition.Init('myESD');
var status = esd.Update({ "Name" : "Updated ESD Name" });
```

This sample code updates an email send definition with a new sendable data extension:

```
var newDE = {
    DataExtensionKey : "DE"
    PubListKey : "MyPubListKey"
}

var deESD = Send.Definition.Init('ESD');
var status = deESD.Update(newDE);

This sample code demonstrates how to update a filter definition used by a send definition:

var esd = Send.Definition.Init('myESD');
var esdUpdates = {
    Name : "Updated ESD Name",
    FilterDefinition : {
        CustomerKey : "myFilterDefKey",
        ListID : 12345
    }
};

var status = esd.Update(esdUpdates);
```
