Update m365AppsInstallationOptions
Namespace: microsoft.graph
Update the properties of an m365AppsInstallationOptions object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | OrgSettings-Microsoft365Install.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | OrgSettings-Microsoft365Install.ReadWrite.All | Not available. |
When calling on behalf of a user, the user needs to belong to the Office apps administrator role.
HTTP request
PATCH /admin/microsoft365Apps/installationOptions
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
Request body
In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.
The following table specifies the properties that can be updated.
Property | Type | Description |
---|---|---|
updateChannel | appsUpdateChannelType | Specifies how often users get feature updates for Microsoft 365 apps installed on devices running Windows. The possible values are: current , monthlyEnterprise , or semiAnnual , with corresponding update frequencies of As soon as they're ready , Once a month , and Every six months . Include the Prefer: include-unknown-enum-members header to explicitly request for enum values beyond unknownFutureValue . |
appsForWindows | appsInstallationOptionsForWindows | The Microsoft 365 apps installation options container object for a Windows platform. |
appsForMac | appsInstallationOptionsForMac | The Microsoft 365 apps installation options container object for a MAC platform. |
Response
If successful, this method returns a 204 No Content
response code.
Examples
Example 1: Set the Microsoft 365 update channel
Request
The following examples show a requet to set the Microsoft 365 update channel.
PATCH https://graph.microsoft.com/v1.0/admin/microsoft365Apps/installationOptions
Content-Type: application/json
{
"updateChannel": "current"
}
Response
The following example shows the response.
HTTP/1.1 204 No Content
Example 2: Set the Microsoft 365 apps installation options
Request
The following example shows a request to set the Microsoft 365 apps installation options for a platform.
PATCH https://graph.microsoft.com/v1.0/admin/microsoft365Apps/installationOptions
Content-Type: application/json
{
"appsForWindows": {
"isMicrosoft365AppsEnabled": true,
"isVisioEnabled": false
}
}
Response
The following example shows the response.
HTTP/1.1 204 No Content
Example 3: Update channel and installation options
Request
The following example shows a request to set Microsoft 365 apps update channel and installation options simutaneously.
PATCH https://graph.microsoft.com/v1.0/admin/microsoft365Apps/installationOptions
Content-Type: application/json
{
"updateChannel": "monthlyEnterprise",
"appsForWindows": {
"isMicrosoft365AppsEnabled": true,
"isProjectEnabled": false,
"isSkypeForBusinessEnabled": true,
"isVisioEnabled": false
},
"appsForMac": {
"isMicrosoft365AppsEnabled": true,
"isSkypeForBusinessEnabled": false
}
}
Response
The following example shows the response.
HTTP/1.1 204 No Content