REST API endpoints with Define and available in SharePoint with HTTP Requests.

               

 

1. Read: GET - Used to retrieve data from SharePoint lists, libraries, and other resources. The GET HTTP method is used for read operations.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)


Create: POST - Used to create new items or resources in SharePoint lists, libraries, or other resources. The POST HTTP method is used for create operations.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/items


Update: PATCH - Used to update existing items or resources in SharePoint lists, libraries, or other resources. The MERGE HTTP method is used for update operations.

 <siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)


Delete: DELETE - Used to delete items or resources from SharePoint lists, libraries, or other resources. The DELETE HTTP method is used for delete operations.

 <siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)


Batch: POST - Allows you to perform multiple CRUD operations in a single HTTP request. This can improve performance by reducing the number of round trips between the client and server.

 <siteUrl>/_api/$batch


Metadata: GET - Provides access to metadata about SharePoint lists, libraries, fields, and other resources. This can be useful for building custom applications that need to interact with SharePoint data.

<siteUrl>/_api/$metadata


Search: POST - Provides advanced search capabilities, including full-text search, filtering, and sorting. This endpoint is often used to build custom search interfaces for SharePoint sites.

 <siteUrl>/_api/search/postquery


User Profiles: GET - Provides access to user profile data, such as job title, department, and contact information. This can be useful for building custom applications that integrate with user profile data.

 <siteUrl>/_api/SP.UserProfiles.PeopleManager/GetMyProperties


Webhooks: POST - Allows you to subscribe to changes in SharePoint data, such as when an item is created or updated in a list. This can be useful for building custom applications that need to respond to changes in SharePoint data in real-time.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/subscriptions


Permissions: GET - Allows you to manage permissions for SharePoint resources, such as lists, libraries, and sites. This includes setting permissions for users and groups, as well as checking user permissions on specific resources.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)/roleassignments


Versions: GET - Allows you to access version history for items in SharePoint lists and libraries. This can be useful for building custom applications that need to track changes to SharePoint data over time.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)/versions


Attachments: GET - Allows you to work with attachments associated with list items. This includes adding new attachments, retrieving existing attachments, and deleting attachments.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<itemId>)/AttachmentFiles


Folders: GET - Allows you to work with folders in SharePoint libraries, including creating new folders, retrieving existing folders, and deleting folders.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/folders


Files: GET - Allows you to work with files in SharePoint libraries, including uploading new files, retrieving existing files, and deleting files.

<siteUrl>/_api/web/lists/getbytitle('<listName>')/files


Lists: GET - Allows you to work with SharePoint lists, including creating new lists, retrieving existing lists, and deleting lists. This endpoint can also be used to manage list settings, such as views, columns, and content types.

<siteUrl>/_api/web/lists


Fields: GET - Allows you to work with SharePoint fields, including creating new fields, retrieving existing fields, and deleting fields. This endpoint can also be used to manage field settings, such as data types, validation rules, and default values.

 <siteUrl>/_api/web/lists/getbytitle('<listName>')/fields


Content Types: GET - Allows you to work with SharePoint content types, including creating new content types, retrieving existing content types, and deleting content types. This endpoint can also be used to manage content type settings, such as fields, views, and workflows.

 <siteUrl>/_api/web/lists/getbytitle('<listName>')/contenttypes


Web: GET - Allows you to work with SharePoint webs, including retrieving site metadata, managing site permissions, and creating subsites. This endpoint can also be used to manage site settings, such as navigation, search, and site templates.

<siteUrl>/_api/web


Site Designs: GET - Allows you to define custom site templates that can be used to create new SharePoint sites. This endpoint can be used to manage site design settings, such as site theme, logo, and layout.

<siteUrl>/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteDesigns


Site Pages: GET - Allows you to work with SharePoint site pages, including creating new site pages, retrieving existing site pages, and deleting site pages. This endpoint can also be used to manage site page settings, such as page layout, web parts, and permissions.

<siteUrl>/_api/web/lists/getbytitle('Site Pages')/items


Navigation: GET - Allows you to work with SharePoint navigation, including managing site navigation settings, such as the top link bar and the quick launch bar. This endpoint can also be used to create custom navigation menus and links.

<siteUrl>/_api/web/navigation


Workflow: POST - Allows you to work with SharePoint workflows, including starting and stopping workflows, retrieving workflow instances, and managing workflow settings. This endpoint can be used to create custom workflows that automate business processes in SharePoint.

<siteUrl>/_api/SP.WorkflowServices.WorkflowSubscriptionService.Current/EnumerateSubscriptionsByList(<listId>)


Alerts: GET - Allows you to work with SharePoint alerts, including creating and managing alerts for users and groups. This endpoint can be used to send email notifications to users when changes occur in SharePoint content.

<siteUrl>/_api/web/alerts


Site Scripts: GET -  Allows you to define custom site scripts that can be used to automate site provisioning tasks in SharePoint. This endpoint can be used to manage site script settings, such as site design and site template.

<siteUrl>/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteScripts


File Versions: GET - Allows you to work with file versions in SharePoint, including retrieving file version history, restoring previous file versions, and creating custom file version labels. This endpoint can be used to manage versioning settings in SharePoint and control the lifecycle of SharePoint documents.

<siteUrl>/_api/web/GetFileByServerRelativeUrl('<fileUrl>')/versions


Taxonomy: GET - Allows you to work with SharePoint taxonomy, including managing term sets, term groups, and terms. This endpoint can be used to manage the metadata that is associated with SharePoint content, such as documents and list items.

<siteUrl>/_api/sp.taxonomy.taxonomysession/gettermbyid('<termId>')


27. Hub Sites: GET - Allows you to work with SharePoint hub sites, which provide a way to organize and connect related SharePoint sites. This endpoint can be used to manage hub site settings and automate hub site provisioning.

<siteUrl>/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetHubSites

No comments:

Post a Comment

Thanks!

Pages