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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Segments endpoint API 2.0 returns blank response

jharrington7897
Level 4
Level 4

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
jharrington7897
Correct answer by
Level 4
Level 4

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
jharrington7897
Level 4
Level 4
I am able to grab a *single* segment, so it makes me think I'm doing something wrong in the URL?
jharrington7897
Correct answer by
Level 4
Level 4

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