Hi is there a way to update segments in bulk using segment API, apparently the update segment API has a required id parameter but it only support single id at a time.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello,
Currently, the Segment API requires the segment ID parameter for updates and only supports updating one segment at a time. Unfortunately, there is no direct way to update multiple segments in bulk using a single API call.
However, you can automate the process of updating segments in bulk by scripting the API calls. Here’s a general approach you can follow:
Here’s a simple example in Python:
This script fetches segment IDs and updates each segment individually by looping through the list of IDs and making PUT requests to the API. While it's not a single bulk operation, this method achieves the same result efficiently Sobha Crystal Meadows Price
Hey @Nikhilk2
Thanks for the response.
Well I was trying the adobe analytics python wrapper by any chance have you used this?
I've used it before for Data insertion API but not with segment API, let me know if you have any best practices for this.
Views
Likes
Replies
Views
Like
Replies