> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# vault.update()

> Public low-code contract, signatures and examples for vault.update.

## `vault.update()`

Updates parent category, description and metadata at its metadata counter. Never changes revision values.

### Signature

```ts theme={null}
static update(name: string, data: SecretUpdateInput, options?: SecretScopeOptions): Promise<Secret | null>;
```

### Example

```ts theme={null}
const current = await vault.get('TOKEN');
await vault.update('TOKEN', { version: current.version, description: 'CRM credential' });
```

See [all vault methods](https://docs.revoengine.com/low-code/reference/vault.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.