curl --request PUT \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/settings/state \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"state": {
"defaultContextExpression": "{{request.headers.X-Session-Id}}"
}
}
'{
"state": {
"defaultContextExpression": "<string>"
}
}curl --request PUT \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/settings/state \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"state": {
"defaultContextExpression": "{{request.headers.X-Session-Id}}"
}
}
'{
"state": {
"defaultContextExpression": "<string>"
}
}The ID of the Mock API
5 - 10"jjl8y"
State management settings for the mock API.
Show child attributes
Settings successfully updated
State management settings for the mock API.
Show child attributes