Frequently used REST APIs – Part 1
Hi All,
Greetings for the day!!!
While doing SharePoint / Power Platform / Teams development we most of the time need to use REST APIs and then need to google. This is the reason – birth of this article. Thought to keep all REST APIs together so that whenever need can find quickly.
I will keep updating this article. As I am using respective REST APIs I’ll keep adding those.
If you have some known frequently used REST APIs, please add in comment section, I’ll include those in article
Get web details
- Method : Get
/_api/web/
To get all lists
- Method : GET
/_api/web/lists/
To get all list items of particular list
- Method : GET
_api/web/lists/getbytitle('<LIST NAME>')/Items
To get list items / documents count
- Method : GET
_api/web/lists/getbytitle('<List name / document library name>')/ItemCount
To get the members of specific group
- Method : GET
_api/Web/SiteGroups/getbyid(GROUPID)/Users
Example : https://knowledgejunction1.sharepoint.com/_api/Web/SiteGroups/getbyid(3)/Users
Get all roles
- Method : GET
_api/web/roleDefinitions/
To Get role id / Get the permission level ID
- Method : GET
_api/web/roleDefinitions/getByName('<ROLE NAME>')
- Possible OOB role names are
- Full Control
- Design
- Edit
- Contribute
- Read
- Restricted View
- Limited Access
- Web-Only Limited Access
- System.LimitedView
- System.LimitedEdit
Get all site groups
- Method : GET
_api/web/siteGroups/
Get the SharePoint group ID or specific group details from group name
- Method : GET
_api/web/siteGroups/getByName('<GROUP NAME>')
Thanks for reading 🙂 If its worth at least reading once, kindly please like and share !!! SHARING IS CARING 🙂
Enjoy the beautiful life !!! Have a FUN !!! HAVE A SAFE LIFE !!! TAKE CARE 🙂

4 Responses
[…] This is part 2 in series. First part is here – Frequently used REST APIs – Part 1 […]
[…] This is part 3 in series. First part is here – Frequently used REST APIs – Part 1 […]
[…] https://knowledge-junction.in/2022/09/01/frequently-used-rest-apis-part-1/ […]
[…] https://microsoft365hub.in/2022/09/01/frequently-used-rest-apis-part-1/ […]