Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

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

1 Accepted Solution

Avatar

Correct answer by
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.  

View solution in original post

1 Reply

Avatar

Correct answer by
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.