---
title: "Update shared step"
method: PATCH
path: "/shared_step/{code}/{hash}"
tags: ["shared-steps"]
---

# Update shared step

`PATCH /shared_step/{code}/{hash}`

This method updates a shared step.

## Path parameters

- `code` string, required
- `hash` string, required

## Request body

- SharedStepUpdate
  - `title` string, required
  - `action` string — Deprecated, use the `steps` property instead.
  - `expected_result` string — Deprecated, use the `steps` property instead.
  - `data` string — Deprecated, use the `steps` property instead.
  - `steps` SharedStepContentCreate[]
    - `hash` string
    - `action` string, required
    - `expected_result` string
    - `data` string
    - `attachments` string[] — A list of Attachment hashes.
    - `steps` object[] — Nested steps will be here. The same structure is used for them.

## Response `200`

A result.

- HashResponse
  - `status` boolean
  - `result` object
    - `hash` string

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.

---

[API](https://skmtc.dev/qase/apis/qase-io-testops-api-v1.md) · [All operations](https://skmtc.dev/qase/apis/qase-io-testops-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qase/qase-io-testops-api-v1/revisions/12ddc644fac5/schema)
