Skip to content
Back

Import file format

Describes the JSON file accepted by SorcEye content import and the fields of every type. You can get a file through export and edit it by hand.

File structure

The file is a JSON array of groups. Each group describes one content type: the system (system), the type (type) and an array of records (data). At most one group is allowed per system + type pair.
[
  {
    "system": "dh",
    "type": "domains",
    "data": [
      {
        "title": {
          "en": "Example",
          "ru": "Пример"
        }
      }
    ]
  }
]

Import rules

  • Import is partial: records that fail validation are skipped and the rest are saved.
  • A record whose title matches one of your existing records of the same type is skipped.
  • If you lack the permission for a content type, the group of that type is skipped.
  • References to other records (class_id, domain_id, domains, feature_id and similar) are numeric ids. Ids of your own records and of SRD records are accepted; ids of another account's records are rejected with a per-record error.

Content systems

Choose a system to see the record types it accepts and the fields of each type.

Shared structures