Share segment created via API 2.0 with other users | Community
Skip to main content
October 12, 2019
Solved

Share segment created via API 2.0 with other users

  • October 12, 2019
  • 1 reply
  • 1678 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Garretth

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/shares.md

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.  

1 reply

GarretthAdobe EmployeeAccepted solution
Adobe Employee
November 10, 2021

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/shares.md

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.