githubEdit

Teams & SharePoint

List sites

get

List SharePoint sites or OneDrive accounts based on the type parameter

Query parameters
typestring · enumRequired

Type of sites to list

Possible values:
Responses
chevron-right
200

Successful response

application/json
displayNamestringOptional

Display name of the site

createdDateTimestring · date-timeOptional

Date and time when the site was created

ownerPrincipalNamestringOptional

Principal name of the site owner

lastActivityDatestring · date-timeOptional

Date of last activity

fileCountintegerOptional

Number of files

storageUsedInGigabytesnumber · floatOptional

Storage used in gigabytes

storageAllocatedInGigabytesnumber · floatOptional

Storage allocated in gigabytes

reportRefreshDatestring · date-timeOptional

Date when the report was refreshed

webUrlstringOptional

URL of the site

descriptionstringOptional

Description of the site

get
/api/ListSites
200

Successful response

Add or remove SharePoint site member

post

Add or remove a user as a member of a SharePoint site

Body
groupIdstringRequired

Owner principal name

addbooleanRequired

True to add, false to remove

URLstringRequired

Web URL of the site

SharePointTypestringRequired

Root web template

userstringRequired

User principal name to add or remove

Responses
chevron-right
200

Operation successful

No content

post
/api/ExecSetSharePointMember
200

Operation successful

No content

Manage SharePoint or OneDrive permissions

post

Add or remove a user as a site admin for SharePoint or add/remove permissions for OneDrive

Body
UPNstringRequired

Owner principal name

RemovePermissionbooleanRequired

True to remove permission, false to add

URLstringRequired

Web URL of the site or OneDrive

userstringOptional

User principal name to add or remove permissions for

onedriveAccessUserstringOptional

User principal name to add or remove OneDrive access for

Responses
chevron-right
200

Operation successful

No content

post
/api/ExecSharePointPerms
200

Operation successful

No content

Add a new SharePoint site

post

Create a new SharePoint site

Body
tenantFilterstringOptional

Tenant ID

siteNamestringRequired

Name of the site

siteDescriptionstringRequired

Description of the site

SiteOwnerstringRequired

User principal name of the site owner

TemplateNamestring · enumRequired

Template name

Possible values:
siteDesignstring · enumRequired

Site design template

Possible values:
Responses
chevron-right
200

Site created successfully

No content

post
/api/AddSite
200

Site created successfully

No content

Add multiple SharePoint sites

post

Create multiple SharePoint sites in bulk

Body
tenantFilterstringRequired

Tenant ID

Responses
chevron-right
200

Sites created successfully

No content

post
/api/AddSiteBulk
200

Sites created successfully

No content

List Teams

get

List Microsoft Teams

Query parameters
typestring · enumRequired

Type of Teams list

Possible values:
Responses
chevron-right
200

Successful response

application/json
displayNamestringOptional

Display name of the team

descriptionstringOptional

Description of the team

visibilitystringOptional

Visibility of the team

mailNicknamestringOptional

Mail nickname of the team

idstringOptional

ID of the team

get
/api/ListTeams
200

Successful response

Add a new Team

post

Create a new Microsoft Team

Body
tenantIDstringRequired

Tenant ID

displayNamestringRequired

Display name of the team

descriptionstringOptional

Description of the team

ownerstringRequired

User principal name of the team owner

visibilitystring · enumRequired

Team visibility

Possible values:
Responses
chevron-right
200

Team created successfully

No content

post
/api/AddTeam
200

Team created successfully

No content

List Teams activity

get

List Microsoft Teams user activity

Query parameters
typestring · enumRequired

Type of Teams activity

Possible values:
Responses
chevron-right
200

Successful response

application/json
UPNstringOptional

User principal name

LastActivestring · date-timeOptional

Date and time of last activity

MeetingCountintegerOptional

Number of meetings

CallCountintegerOptional

Number of calls

TeamsChatintegerOptional

Number of Teams chats

get
/api/ListTeamsActivity
200

Successful response

List Teams voice phone numbers

get

List Microsoft Teams voice phone numbers

Responses
chevron-right
200

Successful response

application/json
AssignedTostringOptional

User the phone number is assigned to

TelephoneNumberstringOptional

Phone number

AssignmentStatusstringOptional

Assignment status

NumberTypestringOptional

Type of phone number

AcquiredCapabilitiesstringOptional

Capabilities of the phone number

IsoCountryCodestringOptional

ISO country code

PlaceNamestringOptional

Place name

ActivationStatestringOptional

Activation state

IsOperatorConnectbooleanOptional

Whether the number is operator connect

AcquisitionDatestring · date-timeOptional

Date when the number was acquired

get
/api/ListTeamsVoice
200

Successful response

Assign Teams voice phone number

post

Assign a phone number to a user or set emergency location

Body
PhoneNumberstringRequired

Phone number to assign

PhoneNumberTypestringOptional

Type of phone number

locationOnlybooleanOptional

True if only setting emergency location

inputstringOptional

User principal name or location ID

Responses
chevron-right
200

Operation successful

No content

post
/api/ExecTeamsVoicePhoneNumberAssignment
200

Operation successful

No content

Unassign Teams voice phone number

post

Unassign a phone number from a user

Body
PhoneNumberstringRequired

Phone number to unassign

AssignedTostringRequired

User the phone number is assigned to

PhoneNumberTypestringRequired

Type of phone number

Responses
chevron-right
200

Operation successful

No content

post
/api/ExecRemoveTeamsVoicePhoneNumberAssignment
200

Operation successful

No content

List Teams emergency locations

get

List Microsoft Teams emergency locations

Responses
chevron-right
200

Successful response

application/json
DescriptionstringOptional

Description of the location

LocationIdstringOptional

ID of the location

get
/api/ListTeamsLisLocation
200

Successful response

List users

get

List users for selection in forms

Responses
chevron-right
200

Successful response

application/json
displayNamestringOptional

Display name of the user

userPrincipalNamestringOptional

User principal name

idstringOptional

ID of the user

get
/api/listUsers
200

Successful response

List Graph API resources

get

List resources from Microsoft Graph API

Query parameters
EndpointstringRequired

Graph API endpoint

$filterstringOptional

OData filter

$topintegerOptional

Maximum number of results

$countbooleanOptional

Include count

$orderbystringOptional

Order by field

$selectstringOptional

Fields to select

Responses
chevron-right
200

Successful response

application/json
Resultsobject[]Optional
get
/api/ListGraphRequest
200

Successful response

Last updated

Was this helpful?