---
title: "UpdateSurfacesCommand | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/UpdateSurfacesCommand/"
---

# UpdateSurfacesCommand

> - [`BaseProductCommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#abstract-baseproductcommand)\<[`MultiSelectMode`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/Commands.md#multiselectmode)\<[`MultiSelectMode`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/Commands.md#multiselectmode)\>, `void`\>

## Classes

### UpdateSurfacesCommand

#### Extends

#### Constructors

##### Constructor

```ts
new UpdateSurfacesCommand(
   productHandler, 
   commandManager, 
   viewer, 
   variableItemsHelper, 
   userChangesService, 
   historyArgs, 
   args): UpdateSurfacesCommand;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `productHandler` | [`ProductHandler`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/ProductHandler.md#producthandler) |
| `commandManager` | [`CommandManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/CommandManager.md#commandmanager) |
| `viewer` | [`Viewer`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/Viewer-1.md#viewer) |
| `variableItemsHelper` | [`VariableItemHelper`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/VariableItemHelper.md#variableitemhelper) |
| `userChangesService` | [`UserChangesService`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/UserChanges-1.md#userchangesservice) |
| `historyArgs` | [`IHistoryArgs`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/ModelUpdateCommand.md#ihistoryargs) |
| `args` | `IUpdateSurfaceOptions`\<`Product`\> |

###### Returns

[`UpdateSurfacesCommand`](#updatesurfacescommand)

###### Overrides

[`BaseProductCommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#abstract-baseproductcommand).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#constructor)

#### Methods

##### execute()

```ts
execute(): Promise<void>;
```

###### Returns

[`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`void`\>

###### Inherited from

[`BaseProductCommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#abstract-baseproductcommand).[`execute`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#execute)

##### redo()

```ts
redo(): Promise<void>;
```

###### Returns

[`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`void`\>

###### Inherited from

[`BaseProductCommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#abstract-baseproductcommand).[`redo`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#redo)

##### undo()

```ts
undo(): Promise<void>;
```

###### Returns

[`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`void`\>

###### Inherited from

[`BaseProductCommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#abstract-baseproductcommand).[`undo`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/BaseProductCommand.md#undo)

##### updateSurface()

```ts
updateSurface(
   oldSurface, 
   newSurface, 
   options): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `oldSurface` | `Surface` |
| `newSurface` | `Surface` |
| `options` | `ISetPrintAreasOptions` |

###### Returns

`void`

##### updateSurfaces()

```ts
updateSurfaces(params): Promise<void>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `params` | `IUpdateSurfaceOptions`\<`Product`\> |

###### Returns

[`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`void`\>
