I am currently helping a team with a Power Automate flow that uses an HTTP request to translate documents with Iliad API. The issue we are running into is “Error 400: Bad Request” or “Error 422: Unprocessable Entity”. It appears that the issue may lie in the Dynamic Content as the error indicates that there is no file listed, nor is there a target language listed (even though they are a part of the code). Does anyone have any ideas? I am attaching images of the flow, the HTTP request and the necessary syntax.
"body": {
"detail": [
{
"type": "missing",
"loc": [
"body",
"file"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.7/v/missing"
},
{
"type": "missing",
"loc": [
"body",
"target_language"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.7/v/missing"
}
],
"debugInfo": "clientRequestId: ddeacdf7-c295-4459-a4ea-1e05d0030937"
}
Is it a syntax error? What should I change?