Postman API
  1. Mocks
Postman API
  • API
    • Get all APIs
      GET
    • Create API
      POST
    • Delete an API
      DELETE
    • Single API
      GET
    • Update an API
      PUT
    • Get All API Versions
      GET
    • Create API Version
      POST
    • Delete an API Version
      DELETE
    • Get an API Version
      GET
    • Update an API Version
      PUT
    • Get contract test relations
      GET
    • Get documentation relations
      GET
    • Get environment relations
      GET
    • Get integration test relations
      GET
    • Get monitor relations
      GET
    • Get linked relations
      GET
    • Create relations
      POST
    • Create Schema
      POST
    • Get Schema
      GET
    • Update Schema
      PUT
    • Create collection from schema
      POST
    • Get test suite relations
      GET
    • Sync relations with schema
      PUT
  • Collections
    • All Collections
    • Create Collection
    • Create a Fork
    • Merge a Fork
    • Delete Collection
    • Single Collection
    • Update Collection
  • Environments
    • All Environments
    • Create Environment
    • Delete Environment
    • Single Environment
    • Update Environment
  • Import
    • Import exported data
    • Import external API specification
  • User
    • API Key Owner
  • Mocks
    • All Mocks
      GET
    • Create Mock
      POST
    • Delete Mock
      DELETE
    • Single Mock
      GET
    • Update Mock
      PUT
    • Publish Mock
      POST
    • Unpublish Mock
      DELETE
  • Monitors
    • All Monitors
    • Create Monitor
    • Delete Monitor
    • Single Monitor
    • Update Monitor
    • Run a Monitor
  • Webhooks
    • Create Webhook
  • Workspaces
    • All workspaces
    • Create Workspace
    • Delete Workspace
    • Single workspace
    • Update Workspace
  1. Mocks

Unpublish Mock

DELETE
/mocks/{mock_uid}/unpublish
Mocks
This endpoint unpublishes the mock you have created using its uid
Requires API Key as X-Api-Key request header or apikey URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.getpostman.com/mocks//unpublish'
Response Response Example
{
  "mock": {
    "id": "06040138-dd6b-4cce-9a02-7e1c1ab59723"
  }
}

Request

Path Params
mock_uid
string 
required

Responses

🟢200Success Response
application/json
Body
mock
object 
optional
id
string 
optional
Example:
06040138-dd6b-4cce-9a02-7e1c1ab59723
Previous
Publish Mock
Next
All Monitors
Built with