Logo
30 Days of Postman exercises API Documentation

Delete Mock

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

This endpoint allows you to delete an existing mock 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": "0fca2246-c108-41f5-8454-cc032def329f", "uid": "1679925-0fca2246-c108-41f5-8454-cc032def329f" } }



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

ENDPOINTS