Alteryx Server

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

How to Pass Answers to an Alteryx Application Through the API

Highlighted
7 - Meteor

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:-

 

jagdeeshn_0-1591629230392.png

 

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

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

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,

Highlighted
7 - Meteor

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

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

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,