Hi @Megha1,
As previously mentioned, this is an issue with the REST API so you should continue using the #api-and-webhooks category. I see you have already created another topic for this in that category. Please do not post the same question in multiple topics, as it can make the forum more difficult to navigate for other users. For more information, see the dev forum FAQ.
Thanks!