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

Delete Mock

DELETE
/mocks/{mock_uid}
Mocks
This endpoint allows you to delete an existing mock 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/'
Response Response Example
{
  "mock": {
    "id": "0fca2246-c108-41f5-8454-cc032def329f",
    "uid": "1679925-0fca2246-c108-41f5-8454-cc032def329f"
  }
}

Request

Path Params
mock_uid
string 
required

Responses

🟢200Successful Response
application/json
Body
mock
object 
optional
id
string 
optional
Example:
0fca2246-c108-41f5-8454-cc032def329f
uid
string 
optional
Example:
1679925-0fca2246-c108-41f5-8454-cc032def329f
Previous
Create Mock
Next
Single Mock
Built with