Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

analytics-1.4-apis Company.GetReportSuites

Avatar

Level 1

Hi,

from the doc: https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/admin-api/methods/company/r_GetRepo... 

and https://adobedocs.github.io/analytics-1.4-apis/swagger-docs.html#/Company/Company.GetReportSuites 

I don't understand how to use the parameter search 

 

searchxsd:stringA search filter to apply in retrieving report suites.

 

I can't  leave the parameter empty and i can't don't pass the parameter

  404 {"error":"Not Found","error_description":"","error_uri":""}

 

Can someone helps me?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
You may use the one of the following variations: 1. data = { "search": "bitbangcorporate", "types": [ "virtual" ] } 2. { "search": "bitbangcorporate" } 3. { "types": [ "standard" ] }

View solution in original post

4 Replies

Avatar

Employee Advisor

Can you share curl for the request?

Avatar

Level 1

Hi Khurshid,

I corrent mi request, now I don't get no more the error, but the API ignore the values that I use as filter.

I'm using the python requests library the body of the post is this:

 

data = {'types': ['standard', 'rollup', 'virtual'], 'search': "rsid='bitbangcorporatetestrollupsimo'"}

 

and this is the call

 

url = "https://api.omniture.com/admin/1.4/rest/?method="
response = requests.post(url + "Company.GetReportSuites", headers=header, data=data)

 

and the API don't apply the filter, why?

I tryed also removing the quotas on the value bitbangcorporatetestrollupsimo, but the resault don't change

 

Stefano

Avatar

Correct answer by
Employee Advisor
You may use the one of the following variations: 1. data = { "search": "bitbangcorporate", "types": [ "virtual" ] } 2. { "search": "bitbangcorporate" } 3. { "types": [ "standard" ] }