patch
Call PATCH on a target resource with R as the expected return type.
You can set R to Unit if this request doesn't expect a response body.
See also tryPatch, which will return null if the request fails for any reason.
Note: you should NOT prepend your path with "api/", as that will be added automatically.
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 patch that has no body but expects a serialized response.
Deprecated
DO NOT IGNORE. Please change to `patchBytes` 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
patchBytes(resource, body, headers, redirect, abortController, bodySerializer)A serialize-friendly version of patch that expects a body but does not expect a serialized response.