Hi everyone!
I'm hoping someone with some more experience of the Download tool and APIs might be able to help me with a problem I'm having.
I am currently trying to do a POST request for Placements following the current DfE Register API but I keep getting the following error:
"HTTP/1.1 422 Unprocessable Content - Param is missing or the value is empty or invalid: data"
From this I'm understanding that the issue is the payload and it isn't wrapping the relevant field I'm trying to upload, URN, with the parameter data. I've been able to manually add the payload in Postman as the following and it worked:
{
"data": {
"urn":"123456"
}
}Is there a way to view the payload information that is being sent as part of the POST request to get some more information about what is not correctly formatted? I've tried using all three options in the Payload configuration but I can't seem to get any of them to work. Using the Payload configuration, how do I get the code above?
Any help or insights would be greatly appreciated!