I Created One SharePoint List and Also Created Three views.
My requirement is I want to hide that views based on users How to do that using
Rest API ?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
For every view you can set users or groups who can see it or not.
Open list with view you want to set -> go to Edit page -> click on right corner of list -> click Edit webpart -> Unroll part "Advanced" in the right panel, and there is field PieplePicker named "Target Audiences".
If you add some people here, they will see it. If someone isn't here, he can see only the name of view, but nothing will represent under this view for this user. Hope it helps you.
You can try this:
For a REST API based solution check these answers:
Out of the Box functionality in SharePoint List can be used in this case. But to delete an item through REST API, we generally make use of following REST URL.
Hope this link might help.