Mosyle

App · 17 actions

Manage Apple devices in Mosyle Business or Mosyle Manager: devices, tags, lost mode, users and groups.

Actions

ActionWhat it does
Add devices to a device groupAdd devices to a device group.
Add users to a user groupAdd end users to a user group.
Assign a device to a userAssign a device, found by its serial number, to a user.
Clear devices' pending commandsCancel the commands still waiting to reach devices.
Create a userCreate a user (an end user in Mosyle Business, a student or teacher in Mosyle Manager).
Create a user groupCreate a user group.
List classesList classes with their teachers and students.
List device groupsList the device groups for one kind of device.
List devicesList the devices of one kind (Mac, iPhone and iPad, Apple TV or Vision Pro), optionally only some serial numbers or tags.
List user groupsList user groups.
List usersList users, optionally only some user IDs (or, in Mosyle Business, emails).
Play a sound on a lost devicePlay a sound on devices in lost mode, to help find them.
Remove users from a user groupTake end users out of a user group.
Restart devicesSend devices the command to restart.
Set a device's tagsSet the tags of a device, found by its serial number.
Turn off lost modeTurn off lost mode.
Turn on lost modeTurn on lost mode on supervised iPhones and iPads, with a message for whoever finds them.

Add devices to a device group

Add devices to a device group. Mosyle Business only.

Inputs

Device group IDdevice_group_idtextRequired
The device group's ID (from List device groups).
DevicesdeviceslistRequired
The devices to add, by the ID your Mosyle Business account uses for devices in groups.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Add users to a user group

Add end users to a user group. Mosyle Business only.

Inputs

User group IDuser_group_idtextRequired
The user group's ID (from List user groups).
UsersuserslistRequired
The users' IDs in Mosyle (their `iduser`).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Assign a device to a user

Assign a device, found by its serial number, to a user.

Inputs

Serial numberserial_numbertextRequired
The device's serial number.
UserusertextRequired
The user: their ID in Mosyle (the `iduser` in Mosyle Business, the user ID in Mosyle Manager).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Clear devices' pending commands

Cancel the commands still waiting to reach devices. Mosyle Manager only.

Inputs

Device UDIDsdevice_udidslistRequired
The devices' UDIDs (the `deviceudid` List devices returns).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Create a user

Create a user (an end user in Mosyle Business, a student or teacher in Mosyle Manager).

Inputs

User IDuser_id_texttextRequired
The user's ID, such as their username. Mosyle uses it to match the user.
NamenametextRequired
The user's full name.
Emailemailtext
The user's email address.
School roleschool_roletext
Student or teacher. Mosyle Manager only; Student when left empty.One of: student, teacher.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Create a user group

Create a user group. Mosyle Business only.

Inputs

NamenametextRequired
The group's name.
IdentifieridentifiertextRequired
A unique identifier for the group, such as `engineering`.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

List classes

List classes with their teachers and students. Mosyle Manager only.

Inputs

Pagepagenumber
The page to read, from 1.At least 1. Default: 1.
Page sizepage_sizenumber
How many records a page holds.From 1 to 1000. Default: 100.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "classes": [
      {
        "class_name": "example",
        "coordinators": [
          "example"
        ],
        "id": "example",
        "location": "example",
        "students": [
          "example"
        ],
        "teacher": [
          "example"
        ]
      }
    ],
    "page": 1,
    "page_size": 1,
    "rows": 1
  }
}

List device groups

List the device groups for one kind of device.

Inputs

Device typeostextRequired
The kind of device.One of: ios, mac, tvos, visionos.
Pagepagenumber
The page to read, from 1.At least 1. Default: 1.
Page sizepage_sizenumber
How many records a page holds.From 1 to 1000. Default: 100.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "groups": [
      {
        "device_numbers": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "page": 1,
    "page_size": 1,
    "rows": 1
  }
}

List devices

List the devices of one kind (Mac, iPhone and iPad, Apple TV or Vision Pro), optionally only some serial numbers or tags.

Inputs

Device typeostextRequired
The kind of device.One of: ios, mac, tvos, visionos.
Serial numbersserial_numberslist
Only these serial numbers.
Tagstagslist
Only devices with these tags.
Fields to returncolumnslist
Only return these device fields (such as `deviceudid`, `serial_number`, `device_name`, `tags`). Leave empty for all.
Pagepagenumber
The page to read, from 1.At least 1. Default: 1.
Page sizepage_sizenumber
How many records a page holds.From 1 to 1000. Default: 100.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "devices": [
      {
        "date_last_beat": "example",
        "device_model": "example",
        "device_name": "example",
        "deviceudid": "example",
        "lostmode_status": "example",
        "os": "example",
        "osversion": "example",
        "serial_number": "example",
        "status": "example",
        "tags": "example",
        "useremail": "example",
        "userid": "example",
        "username": "example"
      }
    ],
    "page": 1,
    "page_size": 1,
    "rows": 1
  }
}

List user groups

List user groups. Mosyle Business only.

Inputs

Pagepagenumber
The page to read, from 1.At least 1. Default: 1.
Page sizepage_sizenumber
How many records a page holds.From 1 to 1000. Default: 100.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "page": 1,
    "page_size": 1,
    "rows": 1,
    "user_groups": [
      {
        "id": "example",
        "identifier": "example",
        "idusergroup": "example",
        "name": "example"
      }
    ]
  }
}

List users

List users, optionally only some user IDs (or, in Mosyle Business, emails).

Inputs

User IDsidentifierslist
Only these user IDs.
Emailsemailslist
Only these email addresses. Mosyle Business only.
Pagepagenumber
The page to read, from 1.At least 1. Default: 1.
Page sizepage_sizenumber
How many records a page holds.From 1 to 1000. Default: 100.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "page": 1,
    "page_size": 1,
    "rows": 1,
    "users": [
      {
        "email": "example",
        "id": "example",
        "iduser": "example",
        "managedappleid": "example",
        "name": "example",
        "type": "example"
      }
    ]
  }
}

Play a sound on a lost device

Play a sound on devices in lost mode, to help find them. Mosyle Manager only.

Inputs

Device UDIDsdevice_udidslistRequired
The devices' UDIDs (the `deviceudid` List devices returns).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Remove users from a user group

Take end users out of a user group. Mosyle Business only.

Inputs

User group IDuser_group_idtextRequired
The user group's ID (from List user groups).
UsersuserslistRequired
The users' IDs in Mosyle (their `iduser`).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Restart devices

Send devices the command to restart.

Inputs

Device UDIDsdevice_udidslistRequired
The devices' UDIDs (the `deviceudid` List devices returns).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Set a device's tags

Set the tags of a device, found by its serial number.

Inputs

Serial numberserial_numbertextRequired
The device's serial number.
TagstagslistRequired
The device's tags.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Turn off lost mode

Turn off lost mode. Mosyle Manager only.

Inputs

Device UDIDsdevice_udidslistRequired
The devices' UDIDs (the `deviceudid` List devices returns).

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

Turn on lost mode

Turn on lost mode on supervised iPhones and iPads, with a message for whoever finds them. Mosyle Manager only.

Inputs

Device UDIDsdevice_udidslistRequired
The devices' UDIDs (the `deviceudid` List devices returns).
Messagemessagetext
The message shown on the device's screen.
Phone numberphone_numbertext
A phone number shown on the device's screen.
Footnotefootnotetext
A footnote shown on the device's screen.

Outputs

dataobject
The response from Mosyle.
Example output
{
  "data": {
    "results": [
      {}
    ],
    "status": "example"
  }
}

On this page