Post

5 followers Follow
0
Avatar

API Data Search

Documentation: https://api.clarizen.com/V2.0/services/data/Search

data = {"typeName": ''", "q": {"SearchText": "TEST"}, "SearchText": "TEST"}

data = {"typeName": None, "q": "TEST"}

data = {"typeName": None, "SearchText": "TEST"}

self.url_data_search = "https://api.clarizen.com/v2.0/services/data/search"

response = requests.get(self.url_data_search, data=data, headers=self.headers).content

[INFO ] Starting new HTTPS connection (1): api.clarizen.com
[DEBUG ] "GET /v2.0/services/data/search HTTP/1.1" 500 110
[INFO ] b'{"errorCode":"MissingArgument","message":"Missing argument: SearchText","referenceId":"l75F3xkTC2XXi25NjqV0J"}'

How do I resolve missing argument SearchText?

Joe Teumer Answered

Official comment

Avatar

Hi Joe,

Can you please try using only:

data = { "q": "TEST"}

Let me know if it works.

 

Elad

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

6 comments

0
Avatar

[INFO ] SEARCH URL : "https://api.clarizen.com/v2.0/services/data/search"
[INFO ] DATA : "{'q': 'TEST'}"
[INFO ] Starting new HTTPS connection (1): api.clarizen.com
[DEBUG ] "GET /v2.0/services/data/search HTTP/1.1" 500 111
[INFO ] b'{"errorCode":"MissingArgument","message":"Missing argument: SearchText","referenceId":"3fzb2Ny1NnKHEpXIEhCR4L"}'

Joe Teumer 0 votes
Comment actions Permalink
0
Avatar

URL working for me as well. Parameter was sent previously in the request body.

Joe Teumer 0 votes
Comment actions Permalink
0
Avatar

I'm having a similar problem.

 

When running this:

curl -X GET "https://api2.clarizen.com/v2.0/services/data/search" -d "{\"q\": \"TEST\"}" -H "Authorization: ApiKey XXX"

I get the following error:

{"errorCode":"MissingArgument","message":"Missing argument: SearchText","referenceId":"XXX"}

 

There doesn't seem to be any documentation to help me understand what "SearchText" is: https://api2.clarizen.com/V2.0/services/data/search

Chad Davis 0 votes
Comment actions Permalink