Favicon

You are here: Home > API Reference > Windows > Windows Devices > Clear device cache and force refresh.

Clear device cache and force refresh.

Required Permission: mdm.windows.device.cleanCache

Triggers a process to clear server-side cache and requests a full update of device details from the agent immediately afterwards.

POST
/v1/organizations/:organizationId/mdm/windows/enterprise/devices/:winDeviceId/clean-cache
Copy to clipboard

Clear device cache and force refresh.

Required Permission: mdm.windows.device.cleanCache

Triggers a process to clear server-side cache and requests a full update of device details from the agent immediately afterwards.

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
winDeviceId string
required
Windows device identifier used for targeting operations, supporting MongoDB ObjectId, IMEI, or serial number formats for flexible device lookup.
Match pattern: ^(([a-fA-F0-9]{24})|(\w{1,}))$

Responses

200 Response application/json
status boolean optional
data object optional
action string optional
Cache clearing action type specifying which cache categories were cleared during the operation.
≤ 128 characters
{
    "status": true,
    "data": {
        "action": "full-refresh"
    }
}
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"
    }
}