Modify Windows enrollment template
Required Permission: mdm.windows.enrollmentTemplate.update
Update existing Windows enrollment template configuration including name, rules, authentication providers, auxiliary fields, and Entra ID integration. Affects future enrollments only.
Request
authorization
Authorization: Bearer <token>
application/json
{
"name": "Corporate Device Enrollment - Updated",
"description": "Standard enrollment workflow for corporate Windows devices with Entra ID integration",
"rules": [
{
"name": "string",
"displayNamePattern": "string",
"tags": [
"string"
],
"conditions": [
{
"tags": [
[
"string"
]
],
"auxiliaryFields": [
[
"string"
]
],
"patterns": [
"string"
],
"identifiers": [
"string"
]
}
],
"winPolicyId": "string",
"winPolicyAssignments": [
{
"winPolicyId": "string",
"priority": 0
}
],
"segmentId": 0
}
],
"auxiliaryFields": [
{
"type": "select",
"key": "string",
"title": "string",
"description": "string",
"options": [
"string"
]
}
],
"loginProviderTypes": [
"ldap",
"saml",
"google"
],
"allowAutoContinue": true,
"entraId": {
"mobilityApp": {
"tenantId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"clientId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"clientSecret": "ABC~123def456GHI789jkl012MNO"
}
},
"segmentId": "1"
}
Responses
application/json
{
"status": true,
"data": {
"id": "698e06f56544c9857506df0c",
"name": "Corporate Device Enrollment",
"description": "Standard enrollment workflow for corporate Windows devices with Entra ID integration",
"rules": [
{
"name": "string",
"displayNamePattern": "string",
"tags": [
"string"
],
"conditions": [
{
"tags": [
[
"string"
]
],
"auxiliaryFields": [
[
"string"
]
],
"patterns": [
"string"
],
"identifiers": [
"string"
]
}
],
"winPolicyAssignments": [
{
"winPolicyId": "string",
"priority": 0
}
],
"segmentId": 0
}
],
"auxiliaryFields": [
{
"type": "select",
"key": "string",
"title": "string",
"description": "string",
"options": [
"string"
]
}
],
"loginProviderTypes": [
"ldap",
"saml",
"google"
],
"allowAutoContinue": true,
"winEnrollmentTokenId": "698e06f56544c9857506df0c",
"winEnrollmentToken": {
"id": "698e06f56544c9857506df0c",
"token": "enroll_abc123def456",
"serverUrl": "https://mdm.company.com/enroll"
},
"entraId": {
"mobilityApp": {
"tenantId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"clientId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"clientSecret": "ABC~123def456GHI789jkl012MNO"
}
},
"devicesCount": 247,
"segmentId": "1",
"updatedAt": "2026-02-10T12: 00:00Z",
"createdAt": "2026-01-15T09: 30:00Z"
}
}
application/json
{
"status": false,
"error": {
"code": 5050,
"message": "Feature not allowed for you billing plan"
}
}
application/json
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
application/json
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}