Skip to main content
GET
/
v1
/
mock-apis
/
{mockApiId}
/
settings
/
chaos
Get chaos settings
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/settings/chaos \
  --header 'Authorization: <api-key>'
{
  "chaos": {
    "enabled": true,
    "percentageFailures": 13,
    "socketClose": {
      "enabled": true
    },
    "socketReset": {
      "enabled": true
    },
    "invalidHttp": {
      "enabled": false
    },
    "longDelay": {
      "enabled": true,
      "durationMillis": 555
    },
    "httpErrors": [
      {
        "status": 503
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10
Example:

"jjl8y"

Response

The chaos settings

chaos
object

Chaos testing settings for introducing random failures into mock API responses.