Skip to main content
PATCH
Permission Required: project:edit-tests
Apply a partial update to a shared step collection. Like Update Test, this endpoint enforces an optimistic version check via expected_version, returning 409 if the collection has been modified since the version you fetched. The patch field is deep-merged into the current collection. Arrays (including step_order) are replaced wholesale.

Path Parameters

sharedStepId
string
required
The shared step collection ID

Request Body

expected_version
integer
required
The version returned by the most recent Get Shared Step. Must be a non-negative integer.
patch
object
required
Partial collection body. Cannot change the collection id or is_shared.

Response

Returns the updated shared step (same shape as Get Shared Step) on success. On version conflict, returns 409 with:

Authorizations

X-Api-Key
string
header
required

API key for authentication

Path Parameters

sharedStepId
string
required

Shared step collection ID

projectId
string
required

The project ID. You can copy it from the project settings page or the project URL in the dashboard.

Body

application/json
expected_version
integer
required
Required range: x >= 0
patch
object
required

Partial collection body. Cannot change id or is_shared.

Response

Shared step updated

id
string
project_id
string
name
string
version
integer
is_shared
boolean
created_at
string<date-time> | null
created_by
string | null
steps_by_key
object
step_order
string[]