Forum Discussion

Hernan's avatar
4 years ago

"errorMessage":"Invalid type","errorCode":1400 adding SDT

Hi,

Trying to create an SDT with

{"sdtType":1,"type":"ServiceGroupSDT","startDateTime":1636189200000,"endDateTime":1636328700000,"serviceGroupId":123,"comment":"Reason for SDT"}

I am getting "errorMessage":"Invalid type","errorCode":1400

I get the same for DeviceSDT and DeviceGroupSDT (passing deviceDisplayName and deviceGroupFullPath instead of serviceGroupId)

Please advise.

  • This was some time ago, but I think the solution was to use "sdtType":"oneTime" instead of "sdtType":1

  • Anonymous's avatar
    Anonymous

    That's right. Possible values are at least (but possibly not limited to): "oneTime", "weekly", "daily", "monthly" and "monthlyByWeek". 

  • On 10/18/2021 at 6:33 PM, Hernan said:

    Hi,

    Trying to create an SDT with

    {"sdtType":1,"type":"ServiceGroupSDT","startDateTime":1636189200000,"endDateTime":1636328700000,"serviceGroupId":123,"comment":"Reason for SDT"}

    I am getting "errorMessage":"Invalid type","errorCode":1400

    I get the same for DeviceSDT and DeviceGroupSDT (passing deviceDisplayName and deviceGroupFullPath instead of serviceGroupId)

    Please advise.

     

    On 10/18/2021 at 6:33 PM, Hernan said:

    Hi,

    Trying to create an SDT with

    {"sdtType":1,"type":"ServiceGroupSDT","startDateTime":1636189200000,"endDateTime":1636328700000,"serviceGroupId":123,"comment":"Reason for SDT"}

    I am getting "errorMessage":"Invalid type","errorCode":1400

    I get the same for DeviceSDT and DeviceGroupSDT (passing deviceDisplayName and deviceGroupFullPath instead of serviceGroupId)

    Please advise.

    Hi Hernan ,
    i am new in LogicMonitor , Adding device in SDT through GUI is tedious task when we have many devices , is it possible for you to explain me how to do the same via API.