---
schema_version: "1"
id: 70ad6e4ffaceaf2bc3e8f10d7204d8ca67d7b007602563a245bad44a2cb72181
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_folderUpdate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_folderUpdate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 35a6af93e37fde6f3c03b13ac65e3c8b4b219913814d769335973de56c873a84
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Update

## Overview

Updates the folder and returns a status

### Syntax

(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                           |
| ------- | ------ | ------------ | ------------------------------------- |
| **1**   | string | **Required** | Attributes regarding folder to change |

## Example

This sample code updates the Name attribute of the folder to the specified value:

```
var myFolder = Folder.Init("myFolder");
var status = myFolder.Update({ "Name" : "Updated Folder Name" });
```
