---
title: "Update the specified snapshot for the defined step in a flow"
method: PATCH
path: "/flows/{flow_id}/snapshots/{step_id}"
tags: ["snapshots"]
---

# Update the specified snapshot for the defined step in a flow

`PATCH /flows/{flow_id}/snapshots/{step_id}`

You have to be a member of the workspace’s scope, where the specified flow is located and have `workspaces.flow.edit` permission.
**Notice** It’s forbidden to edit snapshot for step, that does not exist in flow and edit snapshot for step, if snapshot already exists.

## Path parameters

- `flow_id` string, required
- `step_id` string, required

## Request body

- object
  - `data` object, required
    - `type` 'snapshot', required — A value must be `snapshot`
    - `id` string, required — Step identifier
    - `attributes` object, required
      - `snapshot` object, required — The body of the snapshot. The value may be anything except `undefined`.

## Response `200`

OK

- object
  - `data` object, required
    - `id` string, required
    - `type` 'snapshot', required
    - `links` object, required
      - `self` string, required
    - `attributes` object, required
      - `snapshot` object, required
  - `meta` object, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
