> For the complete documentation index, see [llms.txt](https://docs.visualsentinel.com/llms.txt)

# ApiMonitorConfig data model

The ApiMonitorConfig shape in the Visual Sentinel REST API.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `assertions` | array of object | No | Max items 100. |
| `assertions[].path` | string | Yes | Max length 1024. |
| `assertions[].operator` | string | Yes | One of: `equals`, `not_equals`, `contains`, `not_contains`, `exists`, `not_exists`, `greaterThan`, `lessThan`, `matches`, `type`. |
| `assertions[].value` | string or number or boolean or null | No |   |
| `assertions[].valueType` | string | No | One of: `string`, `number`, `boolean`, `null`. |
| `assertions[].target` | string | No | One of: `body`, `header`, `status`. Default: `body`. |
| `responseSlo` | number or null | No | Default: `null`. |
| `responseFormat` | string | No | One of: `json`, `text`, `xml`, `auto`. Default: `json`. |
| `saveResponseBody` | boolean | No | Default: `true`. |
| `maxResponseBodySize` | integer | No | Default: `10240`. Minimum 1024, maximum 51200. |
| `graphql` | object | No |   |
| `graphql.query` | string | Yes | Min length 1, max length 20480. |
| `graphql.variables` | map of [JsonValue](https://docs.visualsentinel.com/reference/models/json-value.md) | No |   |

## Used by

- [CreateMonitorRequest](https://docs.visualsentinel.com/reference/models/create-monitor-request.md) data model
- [UpdateMonitorRequest](https://docs.visualsentinel.com/reference/models/update-monitor-request.md) data model

Generated from the OpenAPI 3.1 specification at [https://docs.visualsentinel.com/openapi.json](https://docs.visualsentinel.com/openapi.json).
