Logo
30 Days of Postman exercises API Documentation

Unpublish Mock

DELETE https://api.getpostman.com/mocks/{{mock_uid}}/unpublish

This endpoint unpublishes the mock you have created using its uid

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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "mock": { "id": "06040138-dd6b-4cce-9a02-7e1c1ab59723" } }



Curl
curl -X DELETE 'https://api.getpostman.com/mocks/undefined/unpublish'

ENDPOINTS