---
title: "admUpdateSpace"
canonical: "https://support.appfire.com/space/PSCONF/15307227/admUpdateSpace"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admUpdateSpace(spaceKey, space) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Updates the space properties (takes space key and an instance of CSpace struct as parameters).

Updates the space properties (takes space key and an instance of CSpace struct as parameters).

## Return Type

**[CSpace ](https://appfire.atlassian.net/wiki/spaces/PSCONF/pages/15303915)**

Updated instance of CSpace

## Example

Sets new description, name and key to a space with key = "KEY".

```javascript
CSpace space;
space.description = "New Space description";
space.name = "New Name";
space.key = "NSK";
return admUpdateSpace("KEY", space);
```

Sets new description, name and key to a space with key = "KEY".

## See also

> Macro (contentbylabel)