Ok, it looks like it throws an error whenever you insert a value for IDs that don’t exist. For example, if I do ID #1, #2, #3, #4, #5 and I only have 3 IDs… it’ll produce an error.
If I do #1, #2, #3, #3, #3, then it’ll post properly (ignoring the duplicates).
The request body is a bit challenging to make super dynamic, but what I can do is create a separate call that allows you to customize the body a bit more. You’ll still have to sort out a way to create a dynamic array so that the formatting is right, but this would be editable for you in the action instead of having fields the way it currently is.
In other words, if you want to anticipate an unknown number of profiles connected to your users, you’ll need to create the string of joined “profile_ids[ ]= id#” with “&” and then insert that into this custom body.
Or, we can talk about a custom integration in your app directly.