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,
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": "f0115890-b935-4752-b00a-905b0e5a2372",
"owner": "459596",
"uid": "459596-f0115890-b935-4752-b00a-905b0e5a2372",
"collection": "459596-83f8fe34-940c-4cc9-8770-0103aadc739c",
"mockUrl": "https://f0115890-b935-4752-b00a-905b0e5a2372.mock-beta.pstmn.io",
"name": "Server stub testing",
"config": {
"headers": [],
"matchBody": false,
"matchQueryParams": true,
"matchWildcards": true,
"delay": null,
"serverResponseId": null
},
"createdAt": "2022-03-22T05:48:43.000Z",
"updatedAt": "2022-03-22T06:52:51.000Z"
}
} |
ENDPOINTS