Segments endpoint API 2.0 returns blank response | Community
Skip to main content
Level 4
January 10, 2020
Solved

Segments endpoint API 2.0 returns blank response

  • January 10, 2020
  • 2 replies
  • 3693 views

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}

 

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 J2_2

Figured it out!

 

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

 

In the Swagger UI, this is not a required value

2 replies

J2_2Author
Level 4
January 10, 2020
I am able to grab a *single* segment, so it makes me think I'm doing something wrong in the URL?
J2_2AuthorAccepted solution
Level 4
January 10, 2020

Figured it out!

 

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

 

In the Swagger UI, this is not a required value