I am trying to get data from a REST API. According to the documentation, the API needs to have a date in the body like this:
{"date": "2023-01-05"}
It's working when I try it in Postman. When I try it in Azure Data Factory, it doesn't work.
I have a copy of data activity, the source is a Linked service REST API call. The necessary headers are inserted.
I have tried to insert the body in the additional headers, but that did not work.
My question is:
How/where can I insert the body of in the source of a copy data activity when the source is a REST API Linked service?
Here is a picture of the source in the copy activity and the error code I am getting
Error code:
Rest call failed with client error, status code 422 422, please check your activity settings. Request URL: https://api.gastroplanner.eu/booking/v1/bookings. Response: {"message":"The given data was invalid.","errors":{"date":["The date field is required when year month is not present."]}}