Hi,
I have an alteryx analytical application on the gallery that expects two arguments through a text box interface tool.
As a first step I tried to accomplish this using the interactive API browser interface. But i get the below error:-
The error says it is an Unknown exception without much explanation.
Can you please help me with understanding why this error might be happening.
Best,
Jagdeesh Narayanan
Solved! Go to Solution.
Hi @JagdeeshN
Did you send the data in a JSON format?
This should be the format you need to send
{
"questions": [
{
"name": "",
"value": ""
}
],
"priority": ""
}
Cheers,
Hi @Thableaus,
Thanks a lot for your response.
I did use the same format as part of my API call payload. But it was still throwing the same error.
But we were able to resolve this error. The Swagger API documentation was wrongly documented. In the sample payload with the documentation the priority field is defined as a String with probable values ('Low', 'Medium' and 'High').
When we change to a numeric value(1,2,3,4,5_ it works fine.
Best,
Jagdeesh Narayanan
Great @JagdeeshN, I'm glad to hear.
Good thing we have this in the community now so people can find the answers if they have the same questions.
Cheers,
I have just gone through this situation, the documentation is guiding to fullfill the priority field as string. It was failing but after adding a number worked fine:
@JagdeeshN I need to provide 3 answers while calling an API workflow, but right now I could be able to provide only one using the notation below:
Adding other answers like the example below is not working:
Have you gone through something similar?
Did anyone eventually find an answer to it? My workflow runs but without taking into account my input from the API.
Hey all!
I was just starting to figure out how to use the API to pass multiple questions through and thought I might add to this in case anyone comes across it. To add multiple questions your JSON format would need to look something like this
{
"questions": [
{
"name": "data1",
"value": "juykykyu"
},
{
"name": "data2",
"value": "llsdfsdfsdf"
}
],
"priority": "1"
}
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |