POST
https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/devices/{winDeviceId}/action
curl -X POST "https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/devices/{winDeviceId}/action" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"entity": "application",
"action": "install",
"id": "507f1f77bcf86cd799439088",
"type": "protected"
}'const response = await fetch("https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/devices/{winDeviceId}/action", {
method: "POST",
headers: {
Authorization: "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"entity": "application",
"action": "install",
"id": "507f1f77bcf86cd799439088",
"type": "protected"
}),
});
const data = await response.json();import requests
response = requests.post(
"https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/devices/{winDeviceId}/action",
headers={"Authorization": "Bearer <YOUR_API_KEY>"},
json={
"entity": "application",
"action": "install",
"id": "507f1f77bcf86cd799439088",
"type": "protected"
},
)
data = response.json()Request
Send your API key in the request header
authorization
Example:
Authorization: Bearer <token>
organizationId
string
required
winDeviceId
string
required
Body Params
application/json
entity
string
required
action
string
required
id
string
required
type
string
optional
{
"entity": "application",
"action": "install",
"id": "507f1f77bcf86cd799439088",
"type": "protected"
}
Responses
200 Response
application/json
status
boolean
optional
data
object
optional
status
string
optional
{
"status": true,
"data": {
"status": "queued"
}
}
400 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 5142,
"message": "Win Device not active"
}
}
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"
}
}