import { type API } from "https://deno.land/x/jamf_school@0.5.0/models/mod.ts";
API is a low-level wrapper over the Jamf School API. It serves as a replacement to manually making requests. It performs data validation and error handling. Network errors, validation errors, and permission errors will all be raised.
Unfortunately, the data returned by these methods cannot be explored through doc.deno.land due to limitations with the documentation generator, as it would require a full TypeScript implementation to evaluate the types. Instead, the best solution is to either use the deno language server, or find the RouteData parameter in the method you want and find the matching file in https://deno.land/x/jamf_school/schemas.
Methods
(Read) Get a single device by its UDID.
(Read) Get all devices.
(Edit) Assign a new owner to a device. Using ID 0 will remove the owner without setting a new one.
(Edit) Move the device and its owner to a new location.
The device owner will also be moved if onlyDevice
is not true
.
(Edit) Move a collection of devices to a new location.
The device owners and any other devices they own will also be moved if
the onlyDevice
option is not true
.
The devices
array must have at least one item and at most 20. UDIDs
will not be deduplicated in this method.
(Add) Schedule the device to restart.
(Add) Schedule wiping a device of all its data, without changing the user the device is assigned to in Jamf School.
(Read) Get a single device group by its ID.
(Read) Get all device groups.
(Edit) Update an existing device group's details.
(Edit) Update an existing device group's details.
(Edit) Update an existing user group's details.
(Read) Get a single user by their ID.
(Edit) Update an existing user's details.
(Edit) Move the user and their devices to a new location.
(Read) Get a single user group by their ID.
(Read) Get a single app by its ID.
The ID used is a Jamf School ID, not the app's App Store ID.
(Read) Get a single location by its ID (zero-indexed).
(Read) Get a single profile by its ID.
(Read) Get all the profiles on your instance.