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