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>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.wiremock.io/llms.txt
Use this file to discover all available pages before exploring further.
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