---
schema_version: "1"
id: a2837a04d814bba27d275b324c46d9efbda298f0ce66825bd666ffd6249567aa
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_portfolioUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_portfolioUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ad96b918c759fbd0cd238ee4068181f16a82ba98e4b3b1abc155cf256f753666
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates the specified attributes of the specified Portfolio object

### Syntax

Update(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                               |
| ------- | ------ | ------------ | ----------------------------------------- |
| **1**   | string | **Required** | Attributes to change for Portfolio object |

## Example

This sample code updates the name attribute of the portfolio object to the specified value:

```
var portObj = Portfolio.Init('myPortfolioCK');
var status = portObj.Update({ DisplayName : "Updated SSJS Image"});
```
