Logo
30 days challenge API Documentation

Publish Mock

POST https://api.getpostman.com/mocks/{{mock_uid}}/publish

This endpoint publishes 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 POST 'https://api.getpostman.com/mocks/undefined/publish'

ENDPOINTS