PUT https://api.getpostman.com/mocks/{{mock_uid}}
This endpoint allows you to update a mock you have created using its Requires API Key as uid
. The endpoint allows you to edit fields,
* name
* environment
* description
* private
* versionTag
X-Api-Key
request header or apikey
URL query parameter.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status OK
{
"mock": {
"id": "06040138-dd6b-4cce-9a02-7e1c1ab59723",
"owner": "11582779",
"uid": "11582779-06040138-dd6b-4cce-9a02-7e1c1ab59723",
"collection": "11582779-fd6797e2-de6b-4699-975c-85290e4c2499",
"mockUrl": "https://06040138-dd6b-4cce-9a02-7e1c1ab59723.mock.pstmn.io",
"name": "My Mock Server",
"config": {
"headers": [],
"matchBody": false,
"matchQueryParams": true,
"matchWildcards": true
},
"environment": "11582779-ac1b6608-deb7-4c05-9d48-ee775aabfc19"
}
} |
ENDPOINTS