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
200
Successful response
application/json
get
GET /api/ListSites?type=SharePointSiteUsage HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "displayName": "text",
    "createdDateTime": "2025-07-14T13:01:26.510Z",
    "ownerPrincipalName": "text",
    "lastActivityDate": "2025-07-14T13:01:26.510Z",
    "fileCount": 1,
    "storageUsedInGigabytes": 1,
    "storageAllocatedInGigabytes": 1,
    "reportRefreshDate": "2025-07-14T13:01:26.510Z",
    "webUrl": "text",
    "description": "text"
  }
]

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
200
Operation successful
post
POST /api/ExecSetSharePointMember HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 80

{
  "groupId": "text",
  "add": true,
  "URL": "text",
  "SharePointType": "text",
  "user": "text"
}
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
200
Operation successful
post
POST /api/ExecSharePointPerms HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 93

{
  "UPN": "text",
  "RemovePermission": true,
  "URL": "text",
  "user": "text",
  "onedriveAccessUser": "text"
}
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
200
Site created successfully
post
POST /api/AddSite HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 128

{
  "tenantFilter": "text",
  "siteName": "text",
  "siteDescription": "text",
  "SiteOwner": "text",
  "TemplateName": "team",
  "siteDesign": "blank"
}
200

Site created successfully

No content

Add multiple SharePoint sites

post

Create multiple SharePoint sites in bulk

Body
tenantFilterstringRequired

Tenant ID

Responses
200
Sites created successfully
post
POST /api/AddSiteBulk HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 169

{
  "tenantFilter": "text",
  "bulkSites": [
    {
      "SiteName": "text",
      "siteDescription": "text",
      "siteOwner": "text",
      "TemplateName": "text",
      "siteDesign": "text",
      "sensitivityLabel": "text"
    }
  ]
}
200

Sites created successfully

No content

List Teams

get

List Microsoft Teams

Query parameters
typestring · enumRequired

Type of Teams list

Possible values:
Responses
200
Successful response
application/json
get
GET /api/ListTeams?type=list HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "displayName": "text",
    "description": "text",
    "visibility": "text",
    "mailNickname": "text",
    "id": "text"
  }
]

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
200
Team created successfully
post
POST /api/AddTeam HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "tenantID": "text",
  "displayName": "text",
  "description": "text",
  "owner": "text",
  "visibility": "public"
}
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
200
Successful response
application/json
get
GET /api/ListTeamsActivity?type=TeamsUserActivityUser HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "UPN": "text",
    "LastActive": "2025-07-14T13:01:26.510Z",
    "MeetingCount": 1,
    "CallCount": 1,
    "TeamsChat": 1
  }
]

List Teams voice phone numbers

get

List Microsoft Teams voice phone numbers

Responses
200
Successful response
application/json
get
GET /api/ListTeamsVoice HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "AssignedTo": "text",
    "TelephoneNumber": "text",
    "AssignmentStatus": "text",
    "NumberType": "text",
    "AcquiredCapabilities": "text",
    "IsoCountryCode": "text",
    "PlaceName": "text",
    "ActivationState": "text",
    "IsOperatorConnect": true,
    "AcquisitionDate": "2025-07-14T13:01:26.510Z"
  }
]

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
200
Operation successful
post
POST /api/ExecTeamsVoicePhoneNumberAssignment HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "PhoneNumber": "text",
  "PhoneNumberType": "text",
  "locationOnly": true,
  "input": "text"
}
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
200
Operation successful
post
POST /api/ExecRemoveTeamsVoicePhoneNumberAssignment HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "PhoneNumber": "text",
  "AssignedTo": "text",
  "PhoneNumberType": "text"
}
200

Operation successful

No content

List Teams emergency locations

get

List Microsoft Teams emergency locations

Responses
200
Successful response
application/json
get
GET /api/ListTeamsLisLocation HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "Description": "text",
    "LocationId": "text"
  }
]

List users

get

List users for selection in forms

Responses
200
Successful response
application/json
get
GET /api/listUsers HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "displayName": "text",
    "userPrincipalName": "text",
    "id": "text"
  }
]

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
200
Successful response
application/json
get
GET /api/ListGraphRequest?Endpoint=text HTTP/1.1
Host: 
Accept: */*
200

Successful response

{
  "Results": [
    {}
  ]
}

Last updated

Was this helpful?