Solved

How to subscribe user to segment via API

  • 27 February 2024
  • 3 replies
  • 39 views

Badge

I have successfully subscribed a user to a list via the api and profile-subscription-bulk-create-job task.

 

However my client is using segments and the API doesn’t seem to allow me to use a segment ID and subscribe them. Is this true?

 

Is there another way to subscribe a user to a segment via the API?

icon

Best answer by saulblum 27 February 2024, 19:10

View original

3 replies

Userlevel 4
Badge +7

Hi, segments are dynamic groups of profiles based on their profile properties and/or events the profiles have done, so you can’t explicitly add a profile to a segment; you have to update the profile’s properties or add events to the profile so the profile meets the definition of a given segment.

Badge

Thanks for your prompt answer. Is it possible to do what you’re saying via the API? If yes could you point me in the right direction in the API docs?

Userlevel 4
Badge +7

You can update profiles with Create or Update Profile

And use Create Event to send events

Reply