I had successfully create groups and add users in it using REST API. These are the permissions on a SharePoint Group/User for a site:
*Full Control - Has full control.
*Design - Can view, add, update, delete, approve, and customize.
*Edit - Can add, edit and delete lists; can view, add, update and delete list
items and documents.
*Contribute - Can view, add, update, and delete list items and documents.
*Read - Can view pages and list items and download documents.
*Create new sub sites - Can create new sub sites
*View Only - Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.
Now how can I able to add permission to a certain SP group with any of the kind of the above privileges using REST API.