Add attachment to request with API

Add attachment to request with API

Do you have a working example with the parameter attachment ?

I tried with : (from the example in the file in this post:  https://forums.manageengine.com/topic/zabbix-api#49000007977501)

{
    "operation": {
        "details": {
            "requester": "Shawn Adams",
            "subject": "Specify Subject",
            "description": "Specify Description",
            "requesttemplate": "Unable to browse",
            "priority": "High",
            "site": "New York",
            "group": "Network",
            "technician": "Howard Stern",
            "level": "Tier 3",
            "status": "open",
            "service": "Email",
            "impact":"High",
            "impactdetails":"This affects the business",
            "mode":"Web Form",
            "urgency":"High",
            "category":"Software",
            "subcategory":"Adobe Reader",
            "attachment": "filename"
        }
    }
}
          }
      }
}
and an input type file in the form: <input type="file" name="filename" id="filename">

But no file seems to be attached to the request.

Any Clues?

                  New to ADSelfService Plus?