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

# Restore Stack Snapshot

> Brings every member of a stack back to a snapshot, databases first and then applications.

Restores all the members together: databases first, then applications. It stops at the first error and reports what was already restored in `details.restored`. Needs the `stacks:write` scope when called with an API key.

**stack\_id** `string` *required*

The stack ID.

**snapshot\_id** `string` *required*

The stack snapshot ID.

**workspace\_id** `string`

The workspace the stack belongs to, when you act on it as the workspace owner.

**restore\_image\_version** `boolean` (default: false)

Applications that run a custom image also go back to the image version of the snapshot, if it still exists.

### Response

The restore result, as in [Restore Application Snapshot](https://docs.vertracloud.app/api-reference/endpoint/apps/snapshots/restore.md).

### Errors

| Status | Code | When |
| - | - | - |
| 403 | `WORKSPACE_OWNER_ONLY` | You are a workspace member, not the owner. |
| 404 | `STACK_NOT_FOUND` | The stack does not exist or belongs to another account. |


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