capabilities.work

Publish a Mock and Add a Custom Response

A 3-step recipe with Postman. We can help you get access.

Recipe · 3 steps

Publish a Mock and Add a Custom Response

with Postman

Publish a mock server and attach a custom server response.

  1. Publish the mock server so it is publicly accessible without authentication.
  2. Create a custom server response on the mock server.
  3. List the mock server's custom responses to confirm the new response is present.
What you'll need to have ready
  • mockId: The mock server's unique ID or UID.
  • responseName: The name of the custom server response.
  • statusCode: The HTTP status code the custom response should return.
  • responseBody: The body content of the custom response.
For your developer

Arazzo workflow postman:publish-mock-and-add-response, 3 operations: publishMock → createServerResponse → getMockServerResponses. Specs on APIs.io.