API Overview
An API, short for Application Programming Interface, is a collection of definitions and protocols designed for constructing and incorporating application software seamlessly. By using the API, you can generate content while adhering to the predefined rules and configurations outlined in the Templates and Policies.
The exposure of REST APIs within EasyLife 365 Collaboration Insiders opens the door for users to craft integrations tailored to their applications and workflows. The officially supported endpoints provide functional capabilities, enabling users to:
User operations
- Create Group/Team: Generate a Microsoft 365 Group or Microsoft Team. Needs a signed-in user.
- Invite Guest: Extend invitations to Guest Accounts. Works with a signed-in user and with an application.
- Create SharePoint Team or Communication site: Establish SharePoint Team or Communication sites. Works with a signed-in user and with an application.
Admin operations
- Update Fields: Modify dropdown values associated with your metadata fields.
- Manage Groups: Read groups, change their templates and policies, and delete them.
- Manage Guests: Read guests, change their templates, policies and owners.
- Manage OneDrive accounts: Read OneDrive accounts and change their policies.
- Manage SharePoint site: Read SharePoint sites and change their templates and policies.
Call the API as an application
Every route above except creating groups can be called by an application, with no signed-in user. Use this for scheduled scripts, function apps and other services. Call the API as an application lists the roles, the token request, every route with its role, the errors and the rate limits. Create Application Registration shows how to set up the app in Entra ID.
Only the versioned routes (with /v1/ in the path) accept an application role. A role never lets an application do more than its name says: a read role cannot change anything, and a create role cannot read.