add_mock_rule
Append a new conditional rule to an existing mock API endpoint. Token-efficient partial update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | A single conditional rule. Rules are evaluated in ascending priority order. The first rule whose conditions ALL match will override the mock's default response. If no rule matches, the mock's default responseBody/responseStatus is returned as the fallback. | |
| mockId | Yes | Database ID of the mock endpoint | |
| projectId | Yes | Database ID of the project |