---
title: "Reprovision global Microsoft 365 integration."
method: POST
path: "/admin/ms365"
tags: ["Microsoft 365"]
---

# Reprovision global Microsoft 365 integration.

`POST /admin/ms365`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/admin/ms365`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/admin/ms365/post.ts> (a function with typed inputs; its response is checked against the schema)

Update global Microsoft 365 settings.

## Request body

- object
  - `national_cloud` 'GLOBAL' | 'CHINA': The Microsoft cloud services are available in several separate national clouds. These national cloud versions are physical and logical network-isolated instances of Microsoft enterprise cloud services that are confined within the geographic borders of specific countries and operated by local personnel. Can be either: - `GLOBAL`: Azure global service. - `CHINA`: Azure China service.
  - `directory_id` string: The Directory ID (Tenant ID) of Microsoft identity platform.
  - `application_id` string: The Application (client) ID of Azure AD.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
