---
schema_version: "1"
id: 26bb0b79d6fb072c0d2fc24e4011b57c0098c607660a89213758bda709249bd1
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_subscriberUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_subscriberUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b3a287bb1459d7466fc6d6625866d3e321837ce756ae10cbb0cefc8e0f2f2c8d
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates the subscriber and returns a status

### Syntax

Update(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description |
| ------- | ------ | ------------ | ----------- |
| **1**   | string | **Required** |             |

## Example

This sample code updates a currently existing subscriber.

```
var subscriber = {
    "EmailTypePreference": "HTML",
    "Attributes":{"First Name": "Test", "Last Name": "User"}
};

var subObj = Subscriber.Init("SubKey");
var status = subObj.Update(subscriber);
```
