PUT
/v1/organizations/:organizationId/mdm/windows/enterprise/devices/:winDeviceId/move
Copy to clipboard
Move winDevice to segment
Required Permission: mdm.windows.device.move
Move winDevice to segment
Request
Add parameter in header
authorization
Example:
Authorization: Bearer <token>
organizationId
string
required
winDeviceId
string
required
Body Params
application/json
segmentId
integer
required
{
"segmentId": 0
}
Responses
200 Response
application/json
status
boolean
optional
data
object
optional
id
string
optional
organizationId
string
optional
winEnterpriseId
string
optional
mdmUser
object
optional
id
string
optional
email
string
optional
displayName
string
optional
tags
array [string]
optional
winId
string
optional
state
string
optional
config
object
optional
configDates
object
optional
customConfig
object
optional
summary
object
optional
name
string
optional
osVersion
string
optional
osVersionName
string
optional
os
string
optional
serialNumber
string
optional
imei
string
optional
battery
string
optional
expirationTimestamp
string
optional
supervised
boolean
optional
image
string
optional
compliance
object
optional
scripts
array [object]
optional
type
string
optional
id
string
optional
loopTime
integer
optional
resetDate
string
optional
arguments
string
optional
argumentsProcessed
string
optional
name
string
optional
description
string
optional
runner
string
optional
scriptsInfo
array [object]
optional
lastStatusReportTime
string
optional
type
string
optional
winPolicy
object
optional
id
string
optional
organizationId
string
optional
winEnterpriseId
string
optional
name
string
optional
config
object
optional
applications
array [object]
optional
winApplicationId
string
optional
configuration
object
optional
action
string
optional
updatePolicy
object
optional
applicationsInfo
array [object]
optional
bookmarks
array [object]
optional
title
string
optional
description
string
optional
url
string
optional
iconBase64
string
optional
iconUrl
string
optional
scripts
array [object]
optional
type
string
optional
id
string
optional
loopTime
integer
optional
resetDate
string
optional
arguments
string
optional
argumentsProcessed
string
optional
name
string
optional
description
string
optional
runner
string
optional
scriptsInfo
array [object]
optional
admxConfigs
array [object]
optional
winAdmxConfigId
string
optional
admxConfigsInfo
array [object]
optional
id
string
optional
appName
string
optional
settingType
string
optional
fileName
string
optional
description
string
optional
agentConfiguration
object
optional
enabled
boolean
optional
buildTag
string
optional
allowLocation
boolean
optional
allowNetworkStatus
boolean
optional
allowPackageTime
boolean
optional
allowPackageTransfer
boolean
optional
assets
array [object]
optional
mdmAssetId
string
optional
location
string
optional
assetName
string
optional
scope
string
optional
assetsInfo
array [object]
optional
version
integer
optional
segmentId
integer
optional
updatedAt
string
optional
createdAt
string
optional
deviceWinPolicy
object
optional
id
string
optional
organizationId
string
optional
winEnterpriseId
string
optional
name
string
optional
config
object
optional
applications
array [object]
optional
winApplicationId
string
optional
configuration
object
optional
action
string
optional
updatePolicy
object
optional
applicationsInfo
array [object]
optional
bookmarks
array [object]
optional
title
string
optional
description
string
optional
url
string
optional
iconBase64
string
optional
iconUrl
string
optional
scripts
array [object]
optional
type
string
optional
id
string
optional
loopTime
integer
optional
resetDate
string
optional
arguments
string
optional
argumentsProcessed
string
optional
name
string
optional
description
string
optional
runner
string
optional
scriptsInfo
array [object]
optional
admxConfigs
array [object]
optional
winAdmxConfigId
string
optional
admxConfigsInfo
array [object]
optional
id
string
optional
appName
string
optional
settingType
string
optional
fileName
string
optional
description
string
optional
agentConfiguration
object
optional
enabled
boolean
optional
buildTag
string
optional
allowLocation
boolean
optional
allowNetworkStatus
boolean
optional
allowPackageTime
boolean
optional
allowPackageTransfer
boolean
optional
assets
array [object]
optional
mdmAssetId
string
optional
location
string
optional
assetName
string
optional
scope
string
optional
assetsInfo
array [object]
optional
version
integer
optional
segmentId
integer
optional
updatedAt
string
optional
createdAt
string
optional
winPolicyAssignments
array [object]
optional
winPolicyId
string
optional
winPolicy
object
optional
id
string
optional
organizationId
string
optional
winEnterpriseId
string
optional
name
string
optional
config
object
optional
applications
array [object]
optional
winApplicationId
string
optional
configuration
object
optional
action
string
optional
updatePolicy
object
optional
applicationsInfo
array [object]
optional
bookmarks
array [object]
optional
title
string
optional
description
string
optional
url
string
optional
iconBase64
string
optional
iconUrl
string
optional
scripts
array [object]
optional
type
string
optional
id
string
optional
loopTime
integer
optional
resetDate
string
optional
arguments
string
optional
argumentsProcessed
string
optional
name
string
optional
description
string
optional
runner
string
optional
scriptsInfo
array [object]
optional
admxConfigs
array [object]
optional
winAdmxConfigId
string
optional
admxConfigsInfo
array [object]
optional
id
string
optional
appName
string
optional
settingType
string
optional
fileName
string
optional
description
string
optional
agentConfiguration
object
optional
enabled
boolean
optional
buildTag
string
optional
allowLocation
boolean
optional
allowNetworkStatus
boolean
optional
allowPackageTime
boolean
optional
allowPackageTransfer
boolean
optional
assets
array [object]
optional
mdmAssetId
string
optional
location
string
optional
assetName
string
optional
scope
string
optional
assetsInfo
array [object]
optional
version
integer
optional
segmentId
integer
optional
updatedAt
string
optional
createdAt
string
optional
priority
integer
optional
winPolicyAssignmentsEnforced
array [object]
optional
winPolicyId
string
optional
winPolicy
object
optional
id
string
optional
organizationId
string
optional
winEnterpriseId
string
optional
name
string
optional
config
object
optional
applications
array [object]
optional
winApplicationId
string
optional
configuration
object
optional
action
string
optional
updatePolicy
object
optional
applicationsInfo
array [object]
optional
bookmarks
array [object]
optional
title
string
optional
description
string
optional
url
string
optional
iconBase64
string
optional
iconUrl
string
optional
scripts
array [object]
optional
type
string
optional
id
string
optional
loopTime
integer
optional
resetDate
string
optional
arguments
string
optional
argumentsProcessed
string
optional
name
string
optional
description
string
optional
runner
string
optional
scriptsInfo
array [object]
optional
admxConfigs
array [object]
optional
winAdmxConfigId
string
optional
admxConfigsInfo
array [object]
optional
id
string
optional
appName
string
optional
settingType
string
optional
fileName
string
optional
description
string
optional
agentConfiguration
object
optional
enabled
boolean
optional
buildTag
string
optional
allowLocation
boolean
optional
allowNetworkStatus
boolean
optional
allowPackageTime
boolean
optional
allowPackageTransfer
boolean
optional
assets
array [object]
optional
mdmAssetId
string
optional
location
string
optional
assetName
string
optional
scope
string
optional
assetsInfo
array [object]
optional
version
integer
optional
segmentId
integer
optional
updatedAt
string
optional
createdAt
string
optional
priority
integer
optional
automationRule
object
optional
id
string
optional
name
string
optional
deviceAudiences
array [object]
optional
id
string
optional
name
string
optional
reasons
array [string]
optional
subType
string
optional
stateHistory
array [object]
optional
state
string
optional
date
string
optional
config
object
optional
lastLocation
object
optional
agent
object
optional
origin
string
optional
date
string
optional
latitude
number
optional
longitude
number
optional
ip
string
optional
lastReportDate
string
optional
address
object
optional
address
string
optional
number
string
optional
postalCode
string
optional
city
string
optional
country
string
optional
ip
object
optional
origin
string
optional
date
string
optional
latitude
number
optional
longitude
number
optional
ip
string
optional
lastReportDate
string
optional
address
object
optional
address
string
optional
number
string
optional
postalCode
string
optional
city
string
optional
country
string
optional
refreshInfoNeeded
array [string]
optional
enrolledDate
string
optional
updatedAt
string
optional
createdAt
string
optional
{
"status": true,
"data": {
"id": "507f1f77bcf86cd799439011",
"organizationId": "507f1f77bcf86cd799439022",
"winEnterpriseId": "507f1f77bcf86cd799439033",
"mdmUser": {
"id": "507f1f77bcf86cd799439066",
"email": "[email protected]"
},
"displayName": "Marketing Dept Laptop",
"tags": [
"sales",
"field-team",
"remote"
],
"winId": "device-win-mdm-12345678",
"state": "ACTIVE",
"config": {
"./Device/Vendor/MSFT/Policy/Config/Security/RequireDeviceEncryption": "1"
},
"configDates": {
"securityPolicy": "2026-02-10T10: 00: 00.000Z",
"applications": "2026-02-09T15: 30: 00.000Z"
},
"customConfig": {
"customField1": "value1",
"customField2": true
},
"summary": {
"name": "DESKTOP-ABC123",
"osVersion": "10.0.19045.3803",
"osVersionName": "Windows 11 Pro",
"os": "Windows",
"serialNumber": "SN123456789",
"imei": "356938035643809",
"battery": "85%",
"expirationTimestamp": "2027-02-10T00: 00: 00.000Z",
"supervised": true,
"image": "https://cdn.example.com/device-surface-laptop.png",
"compliance": {
"compliant": true,
"lastCheck": "2026-02-10T12: 00: 00.000Z"
}
},
"scripts": [
{
"type": "once",
"id": "507f1f77bcf86cd799439077",
"loopTime": 60,
"resetDate": "2026-02-10T00: 00: 00.000Z",
"arguments": "-ExecutionPolicy Bypass -Parameter1 Value1",
"argumentsProcessed": "-ExecutionPolicy Bypass -Parameter1 ProcessedValue",
"name": "System Configuration Script",
"description": "Configures network settings and security policies",
"runner": "powershell.exe"
}
],
"scriptsInfo": [
{}
],
"lastStatusReportTime": "2026-02-10T12: 30: 00.000Z",
"type": "windows",
"winPolicy": {
"id": "507f1f77bcf86cd799439011",
"organizationId": "507f1f77bcf86cd799439022",
"winEnterpriseId": "507f1f77bcf86cd799439033",
"name": "Corporate Security Baseline",
"config": {
"./Device/Vendor/MSFT/Policy/Config/Security/RequireDeviceEncryption": "1"
},
"applications": [
{
"winApplicationId": "507f1f77bcf86cd799439044",
"configuration": {
"language": "en",
"edition": "enterprise"
},
"action": "available",
"updatePolicy": {
"autoUpdate": true,
"allowedVersions": ">=1.0.0"
}
}
],
"applicationsInfo": [
{}
],
"bookmarks": [
{
"title": "string",
"description": "string",
"url": "string",
"iconBase64": "string",
"iconUrl": "string"
}
],
"scripts": [
{
"type": "once",
"id": "string",
"loopTime": 0,
"resetDate": "2024-01-01T00: 00:00Z",
"arguments": "string",
"argumentsProcessed": "string",
"name": "string",
"description": "string",
"runner": "string"
}
],
"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
},
"assets": [
{
"mdmAssetId": "string",
"location": "string",
"assetName": "string",
"scope": "user"
}
],
"assetsInfo": [
{}
],
"version": 5,
"segmentId": "1",
"updatedAt": "2026-02-10T14: 30: 00.000Z",
"createdAt": "2025-10-15T09: 00: 00.000Z"
},
"deviceWinPolicy": {
"id": "507f1f77bcf86cd799439011",
"organizationId": "507f1f77bcf86cd799439022",
"winEnterpriseId": "507f1f77bcf86cd799439033",
"name": "Corporate Security Baseline",
"config": {
"./Device/Vendor/MSFT/Policy/Config/Security/RequireDeviceEncryption": "1"
},
"applications": [
{
"winApplicationId": "507f1f77bcf86cd799439044",
"configuration": {
"language": "en",
"edition": "enterprise"
},
"action": "available",
"updatePolicy": {
"autoUpdate": true,
"allowedVersions": ">=1.0.0"
}
}
],
"applicationsInfo": [
{}
],
"bookmarks": [
{
"title": "string",
"description": "string",
"url": "string",
"iconBase64": "string",
"iconUrl": "string"
}
],
"scripts": [
{
"type": "once",
"id": "string",
"loopTime": 0,
"resetDate": "2024-01-01T00: 00:00Z",
"arguments": "string",
"argumentsProcessed": "string",
"name": "string",
"description": "string",
"runner": "string"
}
],
"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
},
"assets": [
{
"mdmAssetId": "string",
"location": "string",
"assetName": "string",
"scope": "user"
}
],
"assetsInfo": [
{}
],
"version": 5,
"segmentId": "1",
"updatedAt": "2026-02-10T14: 30: 00.000Z",
"createdAt": "2025-10-15T09: 00: 00.000Z"
},
"winPolicyAssignments": [
{
"winPolicyId": "698f42e5457fafa13d0887a3",
"winPolicy": {},
"priority": 1
}
],
"winPolicyAssignmentsEnforced": [
{
"winPolicyId": "698f42e5457fafa13d0887a3",
"winPolicy": {},
"priority": 1,
"automationRule": {
"id": "698f42e5457fafa13d08879d",
"name": "Sales Team iOS Policies",
"deviceAudiences": [
{
"id": "698f42e5457fafa13d0887a7",
"name": "Sales Department",
"reasons": [
"tag:sales",
"user.department:Sales"
]
}
]
}
}
],
"subType": "device",
"stateHistory": [
{
"state": "ACTIVE",
"date": "2025-10-15T09: 15: 00.000Z",
"config": {
"reason": "initial-enrollment"
}
}
],
"lastLocation": {
"agent": {
"origin": "agent",
"date": "2026-02-10T12: 00: 00.000Z",
"latitude": 40.7128,
"longitude": -74.006,
"ip": "203.0.113.45",
"lastReportDate": "2026-02-10T12: 00: 00.000Z",
"address": {
"address": "123 Main Street",
"number": "123",
"postalCode": "10001",
"city": "New York",
"country": "United States"
}
},
"ip": {
"origin": "agent",
"date": "2024-01-01T00: 00:00Z",
"latitude": 0,
"longitude": 0,
"ip": "string",
"lastReportDate": "2024-01-01T00: 00:00Z",
"address": {
"address": "string",
"number": "string",
"postalCode": "string",
"city": "string",
"country": "string"
}
}
},
"refreshInfoNeeded": [
"hardware",
"applications"
],
"enrolledDate": "2025-10-15T09: 15: 00.000Z",
"updatedAt": "2026-02-10T14: 30: 00.000Z",
"createdAt": "2025-10-15T09: 00: 00.000Z"
}
}
401 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
404 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}