apiPatch

api.apiPatch<T>(endpoint, data) Convenience method that sends a PATCH request with a JSON body and returns the parsed JSON response. Use it for partial updates of an existing resource.

Arguments
argumentTypeDescription
endpointrequiredstringAPI path starting with /api/v1/... (e.g. /api/v1/cards/123). See the REST section for the full list of endpoints.
datarequiredunknownPartial update payload, JSON-serialized.

Return value - Promise<T>

const api = window.Addon.iframe();

const updated = await api.apiPatch(
  `/api/v1/cards/${cardId}`,
  { title: 'Renamed by addon' },
);
logo
FlowFast
If you have any questions or need help with integration feel free to write us at support@flowfast.io