Hi @Aamir Ansari ,
I'm glad to hear you solve the problem, I would make a brief summary of this thread:
Current status:
The issue has been solved. The solution is: update List hidden properties using SharePoint REST api. Here's the Stack overflow answer: https://sharepoint.stackexchange.com/questions/252355/rest-api-to-change-visibility-of-list
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!