curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/mappings/remove-by-metadata \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"matchesJsonPath": {
"expression": "$.outer",
"equalToJson": "{ \"inner\": 42 }"
}
}'
curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/mappings/remove-by-metadata \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"matchesJsonPath": {
"expression": "$.outer",
"equalToJson": "{ \"inner\": 42 }"
}
}'
The ID of the Mock API
5 - 10
"jjl8y"
The stub mappings were successfully removed