Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Create a new windowsDefenderApplicationControlSupplementalPolicy 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
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
| Permission type | Permissions (from least to most privileged) |
|---|---|
| Delegated (work or school account) | DeviceManagementApps.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. |
| Application | DeviceManagementApps.ReadWrite.All |
HTTP Request
POST /deviceAppManagement/wdacSupplementalPolicies
Request headers
| Header | Value |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Accept | application/json |
Request body
In the request body, supply a JSON representation for the windowsDefenderApplicationControlSupplementalPolicy object.
The following table shows the properties that are required when you create the windowsDefenderApplicationControlSupplementalPolicy.
| Property | Type | Description |
|---|---|---|
| id | String | The unique identifier of the Windows Defender Application Control Supplemental Policy. This id is assigned during creation of the policy. |
| displayName | String | The display name of the Windows Defender Application Control Supplemental Policy. |
| description | String | The description of the Windows Defender Application Control Supplemental Policy. |
| content | Binary | Indicates the content of the Windows Defender Application Control Supplemental Policy in byte array format. |
| contentFileName | String | Indicates the file name associated with the content of the Windows Defender Application Control Supplemental Policy. |
| version | String | Indicates the Windows Defender Application Control Supplemental Policy's version. |
| creationDateTime | DateTimeOffset | Indicates the created date and time when the Windows Defender Application Control Supplemental Policy was uploaded. |
| lastModifiedDateTime | DateTimeOffset | Indicates the last modified date and time of the Windows Defender Application Control Supplemental Policy. |
| roleScopeTagIds | String collection | List of Scope Tags for the Windows Defender Application Control Supplemental Policy entity. |
Response
If successful, this method returns a 201 Created response code and a windowsDefenderApplicationControlSupplementalPolicy object in the response body.
Example
Request
Here is an example of the request.
POST https://graph.microsoft.com/v1.0/deviceAppManagement/wdacSupplementalPolicies
Content-type: application/json
Content-length: 404
{
"@odata.type": "#microsoft.graph.windowsDefenderApplicationControlSupplementalPolicy",
"displayName": "Display Name value",
"description": "Description value",
"content": "Y29udGVudA==",
"contentFileName": "Content File Name value",
"version": "Version value",
"creationDateTime": "2017-01-01T00:00:43.1365422-08:00",
"roleScopeTagIds": [
"Role Scope Tag Ids value"
]
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 517
{
"@odata.type": "#microsoft.graph.windowsDefenderApplicationControlSupplementalPolicy",
"id": "83d0c39e-c39e-83d0-9ec3-d0839ec3d083",
"displayName": "Display Name value",
"description": "Description value",
"content": "Y29udGVudA==",
"contentFileName": "Content File Name value",
"version": "Version value",
"creationDateTime": "2017-01-01T00:00:43.1365422-08:00",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"roleScopeTagIds": [
"Role Scope Tag Ids value"
]
}