Official comment
Hi Joe,
Can you please try using only:
data = { "q": "TEST"}
Let me know if it works.
Elad
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?
Hi Joe,
Can you please try using only:
data = { "q": "TEST"}
Let me know if it works.
Elad
Please sign in to leave a comment.
[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"}'
Hi Joe,
I am trying to reproduce your issue with Postman (API tool) and my request is working as expected.
Here is the URL I am using: https://api.clarizen.com/v2.0/services/data/search?q=project
Are you sending the parameter on the URL (like in my example) or in the request body?
Elad
URL working for me as well. Parameter was sent previously in the request body.
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
Hello Chad,
This is a GET request and the parameters should be passed in the URL. I think this should work:
curl --X GET 'https://api.clarizen.com/V2.0/services/data/Search?q=test' --H 'Authorization: ApiKey xxx'
I hope this helps.
Roland