v1

latestSwagger 2.02026-08-0484141342.3 KB
Templates

# Create Template

Creates the dynamic/static templates with given threats or rule content

post/v1/templates

Request body

descriptionstring

description of the template

namestring

Template Name (Example Template)

Example request

{
  "content": {
    "rules": [
      {
        "affected_operating_systems": [
          "Windows"
        ],
        "category_names": [
          "Attack Scenario",
          "Malicious Code"
        ],
        "date_label": "Last 30 days.",
        "kill_chain_phases": [
          "Delivery",
          "Defense Evasion"
        ],
        "mitre_tactics": [
          4,
          10,
          11
        ],
        "only_name": "threat group campaign malware download",
        "severities": [
          "high"
        ],
        "tags": [
          "Iron Tiger",
          "APT27"
        ],
        "threat_actors": [
          60,
          62
        ]
      }
    ]
  },
  "description": "This template rocks!",
  "name": "Example Template"
}

Response

TemplateCreateReturnSwagger

content_typestring

Content Type (Static | Dynamic)

content_update_timeinteger

Template Content Update Time (1655748108944)

creation_timeinteger

Template Creation Time (1655748108944)

descriptionstring

Template Description (High Severity Threats For Last 30 Days)

idinteger

Template Id (1)

namestring

Template Name (Example Template)

Example response

{
  "content_type": "Static",
  "content_update_time": 1655748108944,
  "creation_time": 1655748108944,
  "description": "High Severity Threats For Last 30 Days",
  "id": 1,
  "name": "Example Template",
  "rules": [
    {
      "affected_operating_systems": [
        "Windows"
      ],
      "category_names": [
        "Attack Scenario",
        "Malicious Code"
      ],
      "date_label": "Last 30 days.",
      "kill_chain_phases": [
        "Delivery",
        "Defense Evasion"
      ],
      "mitre_tactics": [
        4,
        10,
        11
      ],
      "only_name": "threat group campaign malware download",
      "severities": [
        "high"
      ],
      "tags": [
        "Iron Tiger",
        "APT27"
      ],
      "threat_actors": [
        60,
        62
      ]
    }
  ]
}