tryPatch
Like patch, but returns null if the request failed for any reason.
Additionally, if ApiFetcher.logOnError is set to true, any failure will be logged to the console. By default, this will be true for debug builds and false for release builds.
Parameters
The body to send with the request. Make sure your class is marked with @Serializable or provide a custom bodySerializer.
A serialize-friendly version of tryPatch that has no body but expects a serialized response.
Deprecated
DO NOT IGNORE. Please change to `tryPatchBytes` instead. This method will be modified soon in a backwards incompatible way, in order to support additional cases that the current form doesn't support.
Replace with
tryPatchBytes(apiPath, body, headers, redirect, abortController, bodySerializer)A serialize-friendly version of tryPatch that expects a body but does not expect a serialized response.