exotic-emerald
exotic-emerald2y ago

Can someone please help me with this API

It's giving me nothing but headaches... I am trying to send a post request to a custom knowledgebase on Stackai and am getting a 422 error?
No description
No description
No description
3 Replies
W. Williams (SFT)
It is because of all the double quotes you have in your body. It should be:
{
"in-0": "{User_question}"
"user_id": "{user_id}"
}
{
"in-0": "{User_question}"
"user_id": "{user_id}"
}
exotic-emerald
exotic-emeraldOP2y ago
No this was the original i was using and it still does not work. i saw someone else using the extra quotations and gave it a go but stil the same error. Tried that version again just in case. still the same error
W. Williams (SFT)
is the user_id a number or string? I'm happy to help. When will you be available to do a Discord call? I DMed you.

Did you find this page helpful?