Update Mock

PUT https://api.getpostman.com/mocks/{{mock_uid}}

This endpoint allows you to update a mock you have created using its uid. The endpoint allows you to edit fields, * name * environment * description * private * versionTag

Requires API Key as X-Api-Key request header or apikey URL query parameter.

Request Body

{"mock"=>{"name"=>"My Mock Server", "environment"=>"11582779-ac1b6608-deb7-4c05-9d48-ee775aabfc19", "description"=>"example describing update mock description", "private"=>false, "versionTag"=>"abf07d3d-f8ec-47d4-8015-9fe83078b4ec"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"mock":{"id":"06040138-dd6b-4cce-9a02-7e1c1ab59723","owner":"11582779","uid":"11582779-06040138-dd6b-4cce-9a02-7e1c1ab59723","collection":"11582779-fd6797e2-de6b-4699-975c-85290e4c2499","mockUrl":"https://06040138-dd6b-4cce-9a02-7e1c1ab59723.mock.pstmn.io","name":"My Mock Server","config":{"headers":[],"matchBody":false,"matchQueryParams":true,"matchWildcards":true},"environment":"11582779-ac1b6608-deb7-4c05-9d48-ee775aabfc19"}}