All objects have the operation attribute. This indicates the type of rule that will be applied to the object.
Important to note that objects are returned in an array in the order they were executed.

    "operacao": "insert",
    "obj": { ... }



insert: Insert/Update the object
update: Updates/Insert the object
delete: Remove an object



To ensure best practices, always use the UPSERT technique when validating operations. This technique is a combination of insert and update operations. So, whenever you receive an "update" type operation and the record doesn't exist, you must create the record. The same goes if the operation is an "insert" and the record already exists, in this case, you must update the record. This approach ensures that you always have the most up-to-date data in your system and eliminates the need for additional validation or handling of different types of operations.