Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Share segment created via API 2.0 with other users

Avatar

Level 1

Hi All,

     I am creating segments using via API 2,0 using JWT authentication(service account). I am able to create the segment but it needs to be shared with rest of the team.

There is no documentation regarding this for API 2.0. API V 1.4 had shares parameter in segment.save method, so something similar should be present for API V 2.0.

V 1.4 documentation:

analytics-1.4-apis/r_Save.md at master · AdobeDocs/analytics-1.4-apis · GitHub

V 2.0 documentation

analytics-2.0-apis/segments-guide.md at master · AdobeDocs/analytics-2.0-apis · GitHub

0 Replies

Avatar

Employee

I believe the solution you are after is the "component-metadata - shares" endpoint as documented here: 
https://adobedocs.github.io/analytics-2.0-apis/#/component-metadata%20-%20shares/updateShares

https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/s...

I've never used this endpoint, but it appears to be suggesting the functionality you are after. I would test it on some test segments, before starting any big project.