Hello Sindhu,
Try to validate below
if you are passing header, please refer input consideration section of REST API documentation. this helped in my case, try yours's, good luck!!

------------------------------
Naga Venkata Chaitanya Maheswaram
------------------------------