Formatting JSON template files

The JSON template is one of the required parameters needed to translate data in CSV or Excel files. The template contains the API import commands and placeholders that indicate the number of the columns containing the relevant data of the type ${n}, where n is the number of the column.

Note   The first column is 1.

Community example

Copy code

[{
  "resourceType": "Community",
  "identifier": {
    "id": "${n}"
  },
  "parent": {
    "id": "9f01ccd6-3329-49ef-af9a-3e1c9826f731"
  }
}]

Domain example

Copy code

[{
  "resourceType": "Domain",
  "identifier": {
    "id": "${n}"
  },
  "name": "${n}",
  "description": "${n}",
  "community": {
    "name": "${n}"
  },
  "type": {
    ​"name": "${n}"
  }
}]

Asset example

Copy code

[{
  "resourceType": "Asset",
  "identifier": {
    "name": "${n}",
    "domain": {
      "name": "${n}",
      "community": {
        "name": "${n}"
      },
    },
  },
  "attributes": {
    "00000000-0000-0000-0000-000000003115": [
      "value": "${n}"
    ]
  }
}]