Logo
30-day challenge API Documentation

Publish a mock server

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

Publishes a mock server. Publishing a mock server sets its Access Control configuration setting to public.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "mock": { "id": "e3d951bf-873f-49ac-a658-b2dcb91d3289" } }



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

ENDPOINTS