Skip to main content
jkougoulos
Visitor III
January 5, 2024
Solved

New indicator via API

  • January 5, 2024
  • 2 replies
  • 1423 views

Hello,

 

I am trying from an external script in python to create an indicator in FortiSOAR 7.4.2, and I am bit stuck on how to define the indicator type which is basically a picklist.

How would I formulate in the payload the reference to the item in the picklist?

 

So far, I have tried the following payloads (and various variations) unsuccessfully; it looks like the API call tries to create (in some cases successfully) both the indicator but also a new IndicatorType (if I omit the uuid)

payload = {
"typeofindicator": "Domain",
"value": indicator_value,
"recordTags" : [ "mytag" ],
"description" : ioc_descr,
"lastSeen" : lastseen,
"firstseen" : firstseen,
"expiryDate" : expirydate
}
 
payload = {
"typeofindicator": {
"itemValue" : "Domain",
"listName": "/api/3/picklist_names/50ee5bfa-e18f-49ba-8af9-dcca25b0f9c0",
"uuid" : "5a5a7d42-be27-4903-858a-19909ebfa1eb"
},
"value": indicator_value,
"recordTags" : [ "mytag" ],
"description" : ioc_descr,
"lastSeen" : lastseen,
"firstseen" : firstseen,
"expiryDate" : expirydate
}
    Best answer by AlokAgar

    You can use in following format.

     

    {
    "value":"indicator_value",
    "typeofindicator": {"picklistName":"IndicatorType", "picklistValue":"Domain"}
    }

    2 replies

    AlokAgar
    Staff
    AlokAgarAnswer
    Staff
    January 8, 2024

    You can use in following format.

     

    {
    "value":"indicator_value",
    "typeofindicator": {"picklistName":"IndicatorType", "picklistValue":"Domain"}
    }
    jkougoulos
    Visitor III
    January 8, 2024

    thanks a lot, this worked!

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT