Add Client user to group via CURL

  • 1
  • Question
  • Updated 2 weeks ago
Hi there

I'm trying to add a previously created client user to a distribution group with a simple CURL. Unfortunately I can't find any documentation on this use case. Nothing similar in the code examples neither. Maybe somebody can put me in the right direction?

as of now, I'm able to create the client and set some preferences with a basic CURL line. I'm also able to GET the group ID. I just need a way to add a specific user to that group.

thanks for your help!

Patrick
Photo of Patrick Buser

Patrick Buser

  • 4 Posts
  • 0 Reply Likes

Posted 2 weeks ago

  • 1
Photo of Patrick Buser

Patrick Buser

  • 4 Posts
  • 0 Reply Likes
Figured it out. For documentation purposes that's what my CURL looks like:

curl -H "Content-Type: application/json" -X POST -d "[{'Email':'user@domain.com'}]" "https://swissfire.sf-api.com/sf/v3/Groups(xxxxxxxxx)/Contacts"; -H "Authorization: Bearer Token"

This site helped me build the correct curl: https://curlbuilder.com/