---
schema_version: "1"
id: 274f4aa27d6d73a2bb2124d940496a495b6f2d3fd183e2a4f2e2c0a5b73d6e82
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_accountUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_accountUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9517a3dcb70b17e833082d6d04f9acfe11f822b5b32a9306d1d1657b48263634
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates the account and returns a status

### Syntax

Update(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |     | Description                  |
| ------- | ------ | --- | ---------------------------- |
| **1**   | string |     | Account attributes to change |

If the passed attributes include TimeZoneID, the call uses that value to update the account time zone.

## Example

This sample code changes the FromName attribute of the account to the specified value:

```
var myAccount = Account.Init("MyCustomerKey");
var status = myAccount.Update({ "FromName" : "Demo From Name" });
```
