Expand my Community achievements bar.

Webinar: Adobe Customer Journey Analytics Product Innovations: A Quarterly Overview. Come learn for the Adobe Analytics Product team who will be covering AJO reporting, Graph-based Stitching, guided analysis for CJA, and more!
SOLVED

Segments endpoint API 2.0 returns blank response

Avatar

Level 5

Feel like I'm doing something dumb here.

 

Trying to hit the "segments" endpoint on the 2.0 API, in order to create a mapping of "segment id" to "segment name"

It returns a 200 code, but only returns an empty JSON.  Am I doing something wrong with the URL or request?:

 

Firing a GET to this location:

https://analytics.adobe.io/api/[myglobalcompanyid]/segments/?rsids=[myreportsuite]

 

Response:

[20-01-10 16:15:51:093 CST]

{"content":[],"numberOfElements":0,"totalElements":0,"totalPages":0,"lastPage":true,"firstPage":true,"sort":null,"size":10,"number":0}

 

1 Accepted Solution

Avatar

Correct answer by
Level 5

Figured it out!

 

You must include "&includeType=all", otherwise nothing comes back.

 

In the Swagger UI, this is not a required value

View solution in original post

2 Replies

Avatar

Level 5
I am able to grab a *single* segment, so it makes me think I'm doing something wrong in the URL?

Avatar

Correct answer by
Level 5

Figured it out!

 

You must include "&includeType=all", otherwise nothing comes back.

 

In the Swagger UI, this is not a required value