For entity creation, the only way I have found to do bulk creation is to do a POST to the Import endpoint with the action set to 'create'. Similarly it looks like I can do something like action='update' to do bulk updates with the Import endpoint.
I'm wondering if this is the best way to achieve bulk creates/updates or if the entities support bulk posting/patching right to the entity REST endpoints. For example, passing a JSON array of entity definitions to Account or Account/bulk or something like that. When I tried that with a POST to Account it failed silently and created one incorrect account with missing data instead of the multiple accounts I passed. Doesn't seem to work but figured I'd ask in case there is an undocumented way of doing this.
I know how to use the massUpdate endpoint as well but that doesn't achieve what I need since it applies a single update to many entities rather than allowing individual entities to have their own updates.
Thanks.
I'm wondering if this is the best way to achieve bulk creates/updates or if the entities support bulk posting/patching right to the entity REST endpoints. For example, passing a JSON array of entity definitions to Account or Account/bulk or something like that. When I tried that with a POST to Account it failed silently and created one incorrect account with missing data instead of the multiple accounts I passed. Doesn't seem to work but figured I'd ask in case there is an undocumented way of doing this.
I know how to use the massUpdate endpoint as well but that doesn't achieve what I need since it applies a single update to many entities rather than allowing individual entities to have their own updates.
Thanks.
Comment