Hi @Pau, thanks for prompt reply!
I might've not been entirely clear on the description. The issue that I'm facing is while using Custom Types API there is an additional step if I need to programmatically manage type definitions. For example, if I have a Custom Type defined in my script, I would first have to send
/update request(to update) and if it fails try
/insert request(to create) or, more gracefully, first check if type exists by fetching it and then deciding between
My proposal is to have a new
/upsert endpoint, accepting the same payload as
/insert but allowing managing creation or an update internally without needing extra step.
Hope it clarifies my idea a bit, let me know if you have any questions!