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

To get all lists

  • Method : GET

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

Example :

Get all roles

  • Method : GET

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

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 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: