Skip to main content
PUT
Update a mock

Authorizations

x-api-key
string
header
required

Path Parameters

mock_id
string<uuid>
required

Body

application/json

Partial update. Fields the client omits are not modified. An explicit null on a nullable column (description, default_response_body) clears it; an explicit null on a NOT-NULL column is rejected at the schema layer (see _reject_null_on_not_null).

name
string | null
Required string length: 1 - 255
description
string | null
Maximum string length: 4000
default_status
integer | null
Required range: 100 <= x <= 599
default_response_body
is_enabled
boolean | null

Response

Successful Response

id
string<uuid>
required
organization_id
string<uuid>
required
slug
string
required
name
string
required
description
string | null
required
default_status
integer
required
default_response_body
required
is_enabled
boolean
required
created_by
string<uuid> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
public_url_path
string
required
scenarios
MockScenarioResponse · object[]