POST
/v1/organizations/:organizationId/mdm/apple/enterprise/commands/:targetType
Copy to clipboard
Create bulk commands
Required Permission: mdm.apple.command.create
Creates and queues management commands for multiple targets simultaneously in a single operation.
Request
Add parameter in header
authorization
Example:
Authorization: Bearer <token>
organizationId
string
required
targetType
string
required
Body Params
application/json
command
object
optional
targetIds
array [string]
optional
{
"command": {
"RequestType": "DeviceLock",
"Message": "Device locked for security"
},
"targetIds": [
"507f1f77bcf86cd799439016",
"507f1f77bcf86cd799439017"
]
}
Responses
200 Response
application/json
status
boolean
optional
data
array [object]
optional
id
string
optional
organization
string
optional
admEnterprise
string
optional
targetType
string
optional
targetId
string
optional
mdmUser
string
optional
UUID
string
optional
status
string
optional
command
object
optional
from
string
optional
data
object
optional
sentAt
string
optional
receivedAt
string
optional
triedAt
string
optional
canceledAt
string
optional
numTries
integer
optional
groupName
string
optional
info
object
optional
build
any
optional
createdAt
string
optional
updatedAt
string
optional
{
"status": true,
"data": [
{
"id": "507f1f77bcf86cd799439011",
"organization": "507f1f77bcf86cd799439012",
"admEnterprise": "507f1f77bcf86cd799439013",
"targetType": "device",
"targetId": "507f1f77bcf86cd799439014",
"mdmUser": "507f1f77bcf86cd799439015",
"UUID": "550e8400-e29b-41d4-a716-446655440000",
"status": "Pending",
"command": {
"RequestType": "DeviceInformation",
"Queries": [
"DeviceName",
"OSVersion"
]
},
"from": "configurationChanged",
"data": {
"DeviceName": "iPhone 13 Pro",
"OSVersion": "17.2.1"
},
"sentAt": "2026-02-10T12: 01:00Z",
"receivedAt": "2026-02-10T12: 01:15Z",
"triedAt": "2026-02-10T12: 01:30Z",
"canceledAt": "2026-02-10T12: 02:00Z",
"numTries": 3,
"groupName": "DeviceInformation",
"info": {
"build": "string"
},
"createdAt": "2026-02-10T12: 00:00Z",
"updatedAt": "2026-02-10T14: 30:00Z"
}
]
}
400 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 5091,
"message": "Invalid data"
}
}
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"
}
}