How should I combine multiple REST calls that each set a value on a user's profile?
- 12 years ago
Hi benjamingray,
It sounds like an endpoint might be a good fit for what you'd like to do. You could create an endpoint that would consume the parameters and values that you want to set, and then make the necessary REST API calls within the endpoint. That way you'd only have to make a single request to the endpoint.
I'd definitely urge you to be cautious in how you implement the endpoint though. You'll want to take steps to secure it from improper use, to ensure that others aren't mailiciously changing user profile values. For example, check that the user attemtping to access the endpoint is an Administrator, or at least the same user whose settings you're trying to change if you're going to be making the request as the users themselves..
You can learn more about endpoints here:
If your community doesn't already have endpoints enabled, you can file a case and our Support team will help you with the next steps of getting it enabled..
I hope this helps!
-Adam