Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Allow Metadata Save Operations to Complete with Returned Warnings
When a metadata save operation generates warnings, the default behavior of Tooling API
is to fail the operation without returning the warnings. For objects in both the Tooling API and
Metadata API WSDLs, you can indicate that you want error-free save operations to complete
successfully, returning any warnings.
To indicate that you want error-free save operations to complete successfully, returning any generated warnings, specify the header ignoreSaveWarnings in your HTTP request.
There is also a SOAP header in Tooling API for saving metadata even if warnings are returned. See MetadataWarningsHeader.