Duplicate check /required fields when creating a record via API

It would stand to reason that when creating a record via API the duplicate and required fields checks also apply, but that does not seem to be the case.

What is the best/most efficient way to implement the same duplicate checks that are available in the UI, when creating records via API?


Parents Reply
  • Wouldn't you just use the 'get_module_fields' call to get a list of fields and then use that to check requiredness before posting?  Been a while since I bothered to make the call, I think thats the name, I just check my data before I post it and I already know what fields are required.  Would need to be a bit more diligent for something I would distribute.