You are here: Home > API Reference > Windows > Policies > Create new Windows policy configuration

Create new Windows policy configuration

Required Permission: mdm.windows.policy.create

Create new Windows device policy bundling applications, scripts, configurations, and agent settings for deployment to managed devices.

POST
https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/policies

Request

Send your API key in the request header authorization
Example: Authorization: Bearer <token>

organizationId string
required
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$

Body Params application/json
name string required
Policy name to assign upon creation for identification in management interfaces and device assignment workflows.
≤ 256 characters
description string optional
Optional free-text description clarifying the purpose or scope of this policy.
≤ 500 characters
config object optional
OMA-DM configuration object containing registry settings, security policies, and device restrictions to apply on managed Windows devices.
applications array [object] optional
Array of application assignments included in policy enabling bundled deployment and management of software packages.
winApplicationId string required
Windows application identifier for the app to include in policy deployment.
Match pattern: ^[a-fA-F0-9]{24}$
configuration object optional
Application-specific configuration settings applied during deployment enabling customized installation and runtime options.
action string optional
Deployment action specifying whether application is force-installed or made available for optional user installation.
forceInstall available
updatePolicy object optional
Quarantine and grace-period configuration for this app assignment. quarantine (0-30 days, a single value shared by all update types) holds a build back until it has been released for that many whole UTC days, but only when the agent config assets resolve which build to distribute (last build, last build on a git branch/tag, etc.): the previous build that already cleared the window is served instead. It never applies to an assignment pinned to a specific build, nor to the builds pushed over MDM. autoUpdate governs the grace periods: when it is true, each gracePeriod (0-90 days) becomes a graceExpirationDate — the start of the resolved build's release UTC day, plus quarantine, plus that gracePeriod — sent to the agent for that update type. When autoUpdate is false no grace dates are emitted, and when it has never been configured no update policy is sent at all, so the agent keeps its own default.
quarantine integer optional
≥ 0 · ≤ 30
autoUpdate boolean optional
major object optional
minor object optional
patch object optional
scripts array [object] optional
Array of script assignments included in policy enabling automated PowerShell or batch command operations.
id string optional
≤ 128 characters
type string optional
once loop onDemand
loopTime integer optional
≥ 0
resetDate string optional
Format: date-time
arguments string optional
argumentsProcessed string optional
name string optional
≤ 256 characters
description string optional
≤ 500 characters
runner string optional
≤ 256 characters
scope string optional
user machine
bookmarks array [object] optional
List of bookmark assignments for deploying web application shortcuts and internal portal links to device home screens.
title string optional
≤ 256 characters
description string optional
≤ 500 characters
url string optional
≤ 500 characters
iconBase64 string optional
iconUrl string optional
≤ 500 characters
admxConfigs array [object] optional
Array of ADMX configuration assignments enabling group policy template settings for advanced Windows configurations.
winAdmxConfigId string required
ADMX configuration identifier for group policy template to include in policy.
Match pattern: ^[a-fA-F0-9]{24}$
assets array [object] optional
Array of file asset assignments included in policy enabling deployment of certificates, configuration files, or resources.
mdmAssetId string optional
Match pattern: ^[a-fA-F0-9]{24}$
location string optional
≤ 256 characters
assetName string optional
≤ 256 characters
scope string optional
user system all-users
agentConfiguration object optional
MDM agent configuration settings controlling agent deployment, permissions, and capabilities on managed devices.
enabled boolean optional
Agent enablement flag controlling whether MDM agent is active on devices and able to perform management operations.
buildTag string optional
Agent build version tag specifying which agent release to deploy on devices for version control and compatibility.
≤ 128 characters
allowLocation boolean optional
Location permission flag controlling whether agent can access device location data for tracking features.
allowNetworkStatus boolean optional
Network status permission flag controlling whether agent can monitor network connectivity for reporting.
allowPackageTime boolean optional
Package time tracking permission flag controlling whether agent reports application usage statistics.
allowPackageTransfer boolean optional
Package transfer permission flag controlling whether agent can facilitate file transfers between devices.
policyFeatures object optional
defaultViewFeature string optional
applications assets bookmarks scripts
toggledFeatures array [object] optional
enableDefaultView boolean optional
bitlocker object optional
Bitlocker configuration settings controlling Bitlocker encryption on managed devices.
state string optional
Bitlocker device target state: encrypted, unencrypted, unmanaged.
≤ 128 characters
encrypted unencrypted unmanaged
encryptionMethod string required
Bitlocker encryption method specifying which encryption algorithm is used for Bitlocker encryption on managed devices. Possible values: AesCbc128, AesCbc256, XtsAes128, XtsAes256
≤ 128 characters
AesCbc128 AesCbc256 XtsAes128 XtsAes256
encryptionType string required
Bitlocker encryption type specifying which encryption type is used for Bitlocker encryption on managed devices. Possible values: Full, UsedSpaceOnly
≤ 128 characters
Full UsedSpaceOnly
teamviewerRemoteConfiguration object optional
status string optional
Whether this policy explicitly turns TeamViewer remote support on or off for its devices. 'none' means the policy has no opinion and inherits the setting from a lower-priority policy in composition; 'enabled'/'disabled' are explicit decisions, with the first non-'none' policy (by priority) winning.
≤ 128 characters
none enabled disabled
rollout object optional
loopTime integer optional
How often (in seconds) devices re-run the rollout-capture script while waiting to enroll with TeamViewer. Falls back to the library default when not set. Minimum 60.
≥ 0
segmentId integer optional
Segment identifier for scoping policy into an specific segment
≥ 0
exposeToChildren boolean optional
{
    "name": "New Security Policy",
    "description": "Baseline security policy applied to all corporate-owned Windows devices.",
    "config": {
        "./Device/Vendor/MSFT/Policy/Config/Security/RequireDeviceEncryption": {
            "format": "int",
            "value": "1",
            "priority": 100
        }
    },
    "applications": [
        {
            "winApplicationId": "507f1f77bcf86cd799439044",
            "configuration": {
                "language": "en",
                "edition": "enterprise"
            },
            "action": "available",
            "updatePolicy": {
                "quarantine": 7,
                "autoUpdate": true,
                "major": {
                    "gracePeriod": 30
                },
                "minor": {
                    "gracePeriod": 14
                },
                "patch": {
                    "gracePeriod": 3
                }
            }
        }
    ],
    "scripts": [
        {
            "id": "string",
            "type": "once",
            "loopTime": 0,
            "resetDate": "2024-01-01T00: 00:00Z",
            "arguments": "string",
            "argumentsProcessed": "string",
            "name": "string",
            "description": "string",
            "runner": "string",
            "scope": "user"
        }
    ],
    "bookmarks": [
        {
            "title": "Employee Portal",
            "description": "Internal employee self-service portal",
            "url": "https://portal.company.com",
            "iconBase64": "",
            "iconUrl": "https://portal.company.com/icon.png"
        }
    ],
    "admxConfigs": [
        {
            "winAdmxConfigId": "507f1f77bcf86cd799439055"
        }
    ],
    "assets": [
        {
            "mdmAssetId": "string",
            "location": "string",
            "assetName": "string",
            "scope": "user"
        }
    ],
    "agentConfiguration": {
        "enabled": true,
        "buildTag": "v2.5.0",
        "allowLocation": true,
        "allowNetworkStatus": true,
        "allowPackageTime": false,
        "allowPackageTransfer": false,
        "policyFeatures": {
            "defaultViewFeature": "applications",
            "toggledFeatures": [
                {
                    "name": "applications",
                    "active": true
                }
            ],
            "enableDefaultView": true
        }
    },
    "bitlocker": {
        "state": "encrypted",
        "encryptionMethod": "AesCbc128",
        "encryptionType": "Full"
    },
    "teamviewerRemoteConfiguration": {
        "status": "enabled",
        "rollout": {
            "loopTime": 3600
        }
    },
    "segmentId": "1",
    "exposeToChildren": true
}

Responses

200 Response application/json
status boolean optional
data object optional
id string optional
Unique identifier for this specific resource instance in the system following a standardized format enabling targeted operations, relationship mapping, and tracking across all platform endpoints and data stores.
Match pattern: ^[a-fA-F0-9]{24}$
organizationId string optional
Organization identifier indicating workspace ownership for access control and data isolation across multi-tenant environments.
Match pattern: ^[a-fA-F0-9]{24}$
winEnterpriseId string optional
Windows enterprise configuration identifier linking policy to specific enrollment settings and device management context.
Match pattern: ^[a-fA-F0-9]{24}$
name string optional
Policy display name shown in interfaces and used for identification in listings and device assignments.
≤ 256 characters
description string optional
Optional free-text description clarifying the purpose or scope of this policy.
≤ 500 characters
config object optional
OMA-DM configuration object containing registry settings, security policies, and device restrictions to apply on managed Windows devices.
applications array [object] optional
Array of application assignments included in policy enabling bundled deployment and management of software packages.
winApplicationId string optional
Windows application identifier for the app to include in policy deployment.
Match pattern: ^[a-fA-F0-9]{24}$
configuration object optional
Application-specific configuration settings applied during deployment enabling customized installation and runtime options.
action string optional
Deployment action specifying whether application is force-installed or made available for optional user installation.
≤ 128 characters
forceInstall available
updatePolicy object optional
Quarantine and grace-period configuration for this app assignment. quarantine (0-30 days, a single value shared by all update types) holds a build back until it has been released for that many whole UTC days, but only when the agent config assets resolve which build to distribute (last build, last build on a git branch/tag, etc.): the previous build that already cleared the window is served instead. It never applies to an assignment pinned to a specific build, nor to the builds pushed over MDM. autoUpdate governs the grace periods: when it is true, each gracePeriod (0-90 days) becomes a graceExpirationDate — the start of the resolved build's release UTC day, plus quarantine, plus that gracePeriod — sent to the agent for that update type. When autoUpdate is false no grace dates are emitted, and when it has never been configured no update policy is sent at all, so the agent keeps its own default.
applicationsInfo array [object] optional
Application metadata array containing name, version, and publisher details for included apps displayed in interfaces.
bookmarks array [object] optional
title string optional
≤ 256 characters
description string optional
≤ 500 characters
url string optional
≤ 500 characters
iconBase64 string optional
iconUrl string optional
≤ 500 characters
scripts array [object] optional
Array of script assignments included in policy enabling automated PowerShell or batch command operations.
id string optional
≤ 128 characters
type string optional
once loop onDemand
loopTime integer optional
≥ 0
resetDate string optional
Format: date-time
arguments string optional
argumentsProcessed string optional
name string optional
≤ 256 characters
description string optional
≤ 500 characters
runner string optional
≤ 256 characters
scope string optional
user machine
scriptsInfo array [object] optional
Script metadata array containing name, description, and timing details for included scripts providing comprehensive script information in interfaces.
admxConfigs array [object] optional
Array of ADMX configuration assignments enabling group policy template settings for advanced Windows configurations.
winAdmxConfigId string optional
ADMX configuration identifier for group policy template to include in policy.
Match pattern: ^[a-fA-F0-9]{24}$
admxConfigsInfo array [object] optional
ADMX configuration metadata array containing template details, settings types, and descriptions.
id string optional
Unique identifier for this ADMX configuration template enabling targeted operations and relationship tracking across the platform.
Match pattern: ^[a-fA-F0-9]{24}$
appName string optional
Application name for ADMX template indicating which software or Windows component these settings apply to.
≤ 256 characters
settingType string optional
Setting type classification indicating category such as security, privacy, or functionality for organizational grouping and filtering.
≤ 256 characters
fileName string optional
ADMX template file name indicating original group policy definition source for reference and administrative purposes.
≤ 256 characters
description string optional
Human-readable description explaining purpose and effect of these ADMX settings for administrator understanding and documentation.
≤ 256 characters
agentConfiguration object optional
MDM agent configuration settings controlling agent deployment, permissions, and capabilities on managed devices.
enabled boolean optional
Agent enablement flag controlling whether MDM agent is active on devices and able to perform management operations.
buildTag string optional
Agent build version tag specifying which agent release to deploy on devices for version control and compatibility.
≤ 128 characters
allowLocation boolean optional
Location permission flag controlling whether agent can access device location data for tracking features.
allowNetworkStatus boolean optional
Network status permission flag controlling whether agent can monitor network connectivity for reporting.
allowPackageTime boolean optional
Package time tracking permission flag controlling whether agent reports application usage statistics.
allowPackageTransfer boolean optional
Package transfer permission flag controlling whether agent can facilitate file transfers between devices.
policyFeatures object optional
bitlocker object optional
Bitlocker configuration settings controlling Bitlocker encryption on managed devices.
state string optional
Bitlocker device target state: encrypted, unencrypted, unmanaged.
≤ 128 characters
encrypted unencrypted unmanaged
encryptionMethod string required
Bitlocker encryption method specifying which encryption algorithm is used for Bitlocker encryption on managed devices. Possible values: AesCbc128, AesCbc256, XtsAes128, XtsAes256
≤ 128 characters
AesCbc128 AesCbc256 XtsAes128 XtsAes256
encryptionType string required
Bitlocker encryption type specifying which encryption type is used for Bitlocker encryption on managed devices. Possible values: Full, UsedSpaceOnly
≤ 128 characters
Full UsedSpaceOnly
teamviewerRemoteConfiguration object optional
status string optional
Whether this policy explicitly turns TeamViewer remote support on or off for its devices. 'none' means the policy has no opinion and inherits the setting from a lower-priority policy in composition; 'enabled'/'disabled' are explicit decisions, with the first non-'none' policy (by priority) winning.
≤ 128 characters
none enabled disabled
rollout object optional
assets array [object] optional
Array of file asset assignments included in policy enabling deployment of certificates, configuration files, or resources.
mdmAssetId string optional
Match pattern: ^[a-fA-F0-9]{24}$
location string optional
≤ 256 characters
assetName string optional
≤ 256 characters
scope string optional
user system all-users
assetsInfo array [object] optional
Asset metadata array containing file names, types, and sizes for included resources displayed in administrative interfaces.
version integer optional
Internal version counter for policy changes enabling conflict detection and synchronization tracking across device updates and modifications.
≥ 0
segmentId integer optional
Segment identifier for scoping policy into an specific segment
≥ 0
exposeToChildren boolean optional
updatedAt string optional
ISO 8601 timestamp indicating the last time this record was modified in the database useful for tracking changes, synchronization processes, and maintaining audit trails of all modifications.
Format: date-time
createdAt string optional
ISO 8601 timestamp indicating when this record was initially created in the database providing historical context, chronological ordering capabilities, and analytics for lifecycle tracking and reporting.
Format: date-time
{
    "status": true,
    "data": {
        "id": "507f1f77bcf86cd799439011",
        "organizationId": "507f1f77bcf86cd799439022",
        "winEnterpriseId": "507f1f77bcf86cd799439033",
        "name": "Corporate Security Baseline",
        "description": "Baseline security policy applied to all corporate-owned Windows devices.",
        "config": {
            "./Device/Vendor/MSFT/Policy/Config/Security/RequireDeviceEncryption": {
                "format": "int",
                "value": "1",
                "priority": 100
            }
        },
        "applications": [
            {
                "winApplicationId": "507f1f77bcf86cd799439044",
                "configuration": {
                    "language": "en",
                    "edition": "enterprise"
                },
                "action": "available",
                "updatePolicy": {
                    "quarantine": 7,
                    "autoUpdate": true,
                    "major": {
                        "gracePeriod": 30
                    },
                    "minor": {
                        "gracePeriod": 14
                    },
                    "patch": {
                        "gracePeriod": 3
                    }
                }
            }
        ],
        "applicationsInfo": [
            {}
        ],
        "bookmarks": [
            {
                "title": "string",
                "description": "string",
                "url": "string",
                "iconBase64": "string",
                "iconUrl": "string"
            }
        ],
        "scripts": [
            {
                "id": "string",
                "type": "once",
                "loopTime": 0,
                "resetDate": "2024-01-01T00: 00:00Z",
                "arguments": "string",
                "argumentsProcessed": "string",
                "name": "string",
                "description": "string",
                "runner": "string",
                "scope": "user"
            }
        ],
        "scriptsInfo": [
            {}
        ],
        "admxConfigs": [
            {
                "winAdmxConfigId": "507f1f77bcf86cd799439055"
            }
        ],
        "admxConfigsInfo": [
            {
                "id": "507f1f77bcf86cd799439055",
                "appName": "Microsoft Edge",
                "settingType": "Privacy",
                "fileName": "edge.admx",
                "description": "Controls Edge browser privacy settings"
            }
        ],
        "agentConfiguration": {
            "enabled": true,
            "buildTag": "v2.5.0",
            "allowLocation": true,
            "allowNetworkStatus": true,
            "allowPackageTime": false,
            "allowPackageTransfer": false,
            "policyFeatures": {
                "defaultViewFeature": "applications",
                "toggledFeatures": [
                    {
                        "name": "applications",
                        "active": true
                    }
                ],
                "enableDefaultView": true
            }
        },
        "bitlocker": {
            "state": "encrypted",
            "encryptionMethod": "AesCbc128",
            "encryptionType": "Full"
        },
        "teamviewerRemoteConfiguration": {
            "status": "enabled",
            "rollout": {
                "loopTime": 3600
            }
        },
        "assets": [
            {
                "mdmAssetId": "string",
                "location": "string",
                "assetName": "string",
                "scope": "user"
            }
        ],
        "assetsInfo": [
            {}
        ],
        "version": 5,
        "segmentId": "1",
        "exposeToChildren": true,
        "updatedAt": "2026-02-10T14: 30: 00.000Z",
        "createdAt": "2025-10-15T09: 00: 00.000Z"
    }
}
400 Response application/json
status boolean optional
false
error object optional
code number optional
5050
message string optional
Feature not allowed for you billing plan
{
    "status": false,
    "error": {
        "code": 5146,
        "message": "WinPolicy name already used"
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4001
message string optional
Unauthorized
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}
404 Response application/json
status boolean optional
false
error object optional
code number optional
3001
message string optional
Entity not found
{
    "status": false,
    "error": {
        "code": 3001,
        "message": "Entity not found"
    }
}
Was this page helpful?