---
schema_version: "1"
id: 85db3d9a182e495a334b97dc2130a67edab1fb5210a5c89b41f1421ba2dc5f93
title: Definition.Add
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_sendDefinitionAdd.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_sendDefinitionAdd.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6db6aa2775f21d4d2f82518b2cafe1670d18bdfdf090e10ce048d69aa9dc99d7
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Definition.Add

## Overview

Add a send definition

### Syntax

Definition.Add(1, 2, 3, 4)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                              |
| ------- | ------ | ------------ | -------------------------------------------------------- |
| **1**   | string | **Required** | Customer key, name, and subject line for send definition |
| **2**   | string | **Required** | Customer key for related send classification             |
| **3**   | string | **Required** | Customer key for email used in send definition           |
| **4**   | array  | **Required** | Array of associated list IDs                             |

## Examples

This sample code adds the send definition.

```
var esdParams = {
    "CustomerKey" : "example_esd",
    "Name" : "Example Send Definition",
    "EmailSubject" : "Sent By Example Send Definition"
};
Send.Definition.Add(esdParams, 'example_sc_key', 'example_email_key', [ 12345, 12346 ]);
```
