Skip to main content
POST
Create a device alert rule

承認

Authorization
string
header
必須

For authenticated requests, set the Authorization: Bearer your_api_key parameter in the header.
You can create and manage your API Keys by visiting the API Keys tab in the Settings page of your organization in Admina

パスパラメータ

organizationId
number
必須

ボディ

application/json
alertType
enum<string>
必須

Device alert type the rule belongs to

利用可能なオプション:
device_unreturned_assigned,
device_unreturned_leased,
device_replacement,
device_inactive,
device_mdm_compliance,
device_inventory_shortage
:

"device_replacement"

name
string
必須

Rule display name (unique per org)

:

"macOS 4-Year Swap"

condition
object
必須
description
string
:

"Flag macOS devices older than 4 years"

deviceGroupId
number

ID of the device group whose members are evaluated. Omit to target every device in the organization.

:

7

urgency
enum<string>
デフォルト:warning

Urgency of alerts generated by this rule (defaults to warning)

利用可能なオプション:
critical,
warning
isEnabled
boolean
デフォルト:true

レスポンス

id
number
必須
:

42

alertType
enum<string>
必須
利用可能なオプション:
retired_account,
inactive_account,
on_leave_account,
unknown_account,
public_files,
device_unreturned_assigned,
device_unreturned_leased,
device_replacement,
device_inactive,
device_mdm_compliance,
device_inventory_shortage
:

"device_replacement"

name
string
必須
:

"macOS 4-Year Swap"

urgency
enum<string>
必須
利用可能なオプション:
critical,
warning
:

"warning"

description
string | null
必須
deviceGroupId
number | null
必須

Null when the rule targets all devices in the organization — always the case for the Standard Rule, and allowed for custom rules. Use isStandard to tell the two apart.

:

7

isStandard
boolean
必須

Standard Rule targets all devices and cannot be deleted

condition
object
必須
isEnabled
boolean
必須
createdAt
string<date-time>
必須
updatedAt
string<date-time>
必須
最終更新日 2026年9月15日