Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Apihelp-opensearch-param-warningsaserror.

MediaWiki:Apihelp-opensearch-param-warningsaserror

From MoodleDocs

If warnings are raised with format=json, return an API error instead of ignoring them.