Add a custom response to a mock server
One step with Postman. We can help you get access.
Get something done
Add a custom response to a mock server
with Postman
Use Postman: its Postman Mock Servers Server Responses API lets you add a custom response to a mock server in a single step (POST /mocks/{mockId}/serverResponses). capabilities.work can help you get signed up and connected.
- How do I make my mock server return a 500 error to test failure handling?
- Can I set custom headers and a body on a mock server response?
Say it to your AI assistant
- Create a server response {name} returning status {statusCode} on mock {mockId}.
- Add response {name} with status {statusCode} and body {body} to mock server {mockId}.
For your developer
POST /mocks/{mockId}/serverResponses in Postman Mock Servers Server Responses API. Full spec on APIs.io.