Actions31
- Alert Actions
- Application Actions
- Billing Actions
- Device Actions
- Fact Actions
- Instruction Actions
- Policy Actions
Fact → Create
AI-generatedSummary
Create a custom fact
Inputs
- name (required) — Name of the custom fact
- type (required) — Data type of the custom fact
- script (required) — Shell script to collect the fact value from devices
- additionalFields — Collection of additional fields for the custom fact (e.g., description, frequency)
Output shape
a single created custom fact record
Includes fields such as id, name, type, script, description, frequency, etc., reflecting the response from Addigy's custom fact creation endpoint.
Examples
Example 1: Create a new custom fact named 'HardwareModel' of type 'String'
{"name":"HardwareModel","type":"string","script":"#!/bin/bash\necho "model"","additionalFields":{"description":"Device model","frequency":"daily"}}