Logo
30 Day Challange API Documentation

Delete a server response

DELETE https://api.getpostman.com/mocks/{{mockId}}/server-responses/{{serverResponseId}}

Deletes a mock server's server response.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "id": "bf6bbf95-bebb-44ba-8edb-1f096f905774", "name": "Service Unavailable", "statusCode": 503, "headers": [ { "key": "Content-Type", "value": "application/json" } ], "language": "json", "body": "{\n \"message\": \"Service is temporarily unavailable due to maintenance. If the problem persists, reach out to support.\"\n}", "createdBy": "1", "updatedBy": "1", "createdAt": "2022-05-02T09:38:04.000Z" }



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

ENDPOINTS