In this step, we’re going to create the minimum basis of the JSON.
Step 1: Define a common reference
Use a simple reference to link all blocks.
Example:
"reference": "lansweeper-default"
Step 2: Create the 3 Required Blocks
The file must contain:
- Ci
- Project
- category
Base example:
{
"ci": [
{
"reference": "lansweeper-default",
"definition": {
"assetTag": {
"type": "FieldValue",
"key": "BarCode"
},
"responsible": {
"type": "FieldValue",
"key": "UserName",
"SearchBy": ["Email"],
"DefaultValue": {
"id": 1
}
}
}
}
],
"project": [
{
"reference": "lansweeper-default",
"projectId": 1,
"siteId": "d4f18c4c-282e-4806-8918-0b76a2a19990"
}
],
"category": [
{
"reference": "lansweeper-default",
"id": 1,
"keys": ["Windows"],
"additionalFields": [],
"state": []
}
]
}
Step 3: Save and validate structure
Before filling in details, validate that:
- The JSON opens and closes properly with keys.
- There are no leftover commas.
- The same Reference Appears in CI, Project, and Category.