Page 1 of 1

Efficiently updating debtors

PostPosted: Fri Feb 21, 2025 12:34 pm
by mls
Hi,

Is there any way to update a debtor via the API without returning the full debtor DTO model?

The issue is that some debtors in our system have lots of large documents which are being returned for simple update requests.

Mike

Re: Efficiently updating debtors  Topic is solved

PostPosted: Fri Feb 21, 2025 9:09 pm
by Mike.Sheen
mls wrote:Hi,

Is there any way to update a debtor via the API without returning the full debtor DTO model?

The issue is that some debtors in our system have lots of large documents which are being returned for simple update requests.

Mike


Yep - a simple plugin can add a response filter to null out the values you don't want to see - or even everything if that's what you want.

I'd probably want to make that an opt-in behaviour in case other things now or in the future expect the standard DTO in the response - so perhaps a request header indicating to make the response DTO skinny.