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?

thanks,
FrancescaS

Parents Reply
  • Nothing buit in by default.

    The business rules are managed by the client of the API and the API perform the action asked only (save, update, delete, etc). By exemple you can have some dependencies SetRequired with condition, etc.

    If you need to retrieve this information from rest API you need to use the metadata endpoint and check the $metadata[<modules]['fields'] which contains the fields definition with more information than the previous Sugar 6 endpoint get_module_fields

Children
No Data