mocks

Create a scenario for a mock

post/v1/mocks/{mock_id}/scenarios

Path parameters

mock_idstring uuid required

Request body

namestring required
priorityinteger
match_methodstring
match_path_patternstring nullable
match_headersobject
match_queryobject
match_bodyobject
response_statusinteger
response_headersobject
delay_msinteger
is_enabledboolean

Response

Successful Response

idstring uuid required
mock_idstring uuid required
namestring required
priorityinteger required
match_methodstring required
match_path_patternstring nullable required
match_headersobject required
match_queryobject required
match_bodyobject required
response_statusinteger required
response_headersobject required
delay_msinteger required
is_enabledboolean required
created_atstring date-time required
updated_atstring date-time required

Changes

Changed in 1 of the 3 revisions of this API.4

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog