Using the API to close a ticket with tasks

Using the API to close a ticket with tasks

I've closed all the tasks on a ticket but i'm trying to use the API to close a ticket. Using the API tool and the 'Close Request' section I am putting in my ticket number and this JSON string:

{
    "request": {
        "closure_info": {
            "requester_ack_resolution": true,
            "requester_ack_comments": "Mail fetching is up and running now",
            "closure_comments": "Reset the pasword solved the issue",
            "closure_code": {
                "name": "success"
            }
        }
    }
}

(just as  test) and its giving this error:

{
    "response_status": {
        "status_code": 4000,
        "messages": [
            {
                "status_code": 4003,
                "type": "failed",
                "message": "Request cannot be completed. Please fill the closure mandatory fields",
                "fields": [
                    "description"
                ]
            }
        ],
        "status": "failed"
    }
}

I've tried putting description in it, everywhere but it just keeps giving me a "Unable to parse the JSON" or keeps barking that description is a required field...any help would be great.

Attached 2 screenshots, one showing the API call and description field requirement and the other showing the field on closer that I cannot seem to find documentation on how to fill/close

      • Sticky Posts

      • [SOLVED] 10500 Update issue with custom certificate

        Update kept failing just before the database (SQL) update.  When I switched the server.xml back to default the update went through but with either that one left in place or the one calling my cert back in place the server never gets beyond server started...............  suggesting something not right in the server.xml?
      • [SOLVED] Emails are not being sent with changes

        Hi,  I have a problem with mail notifications. Emails are not being sent on change creation and on change status transition. The roles to notify are set in the workflows as you can see in the screenshow below as example: Notifications are working with Requests. I'll attach the log file from the last change I created.
      • Script fails when AD USER has an apostrophe in name ex. abc ' D slva

        Script fails when AD USER has an apostrophe in name ex. abc ' D slva Action Executed is :sendmail notification to sap Message: Traceback (most recent call last): File "sendemail.py", line 62, in requestJson= getSDPJson(sys.argv[2]) File "sendemail.py", line 27, in getSDPJson data = json.load(data_file) File "C:\Python35-32\lib\json\__init__.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "C:\Python35-32\lib\json\__init__.py", line 319, in loads
      • Survey link not working

        Hi,  I am encountering an issue with the survey link. I have included the variable $SurveyLink in the survey settings and have inserted the hyperlink as well, but whenever the email for the survey is sent out, it only shows as "http://ict-helpdesk:8080/$SurveyLink" I am using servicedesk plus build 9223. Thanks! Geraldine Legaspi
      • Remote Desktop / Remote Control Troubleshooting document

        Dear Users, Kindly refer to the following documents for any details regarding remote control. Prerequisites and troubleshooting document : http://writer.zoho.com/corporate/mailzoho.com/kprakash/Remote-Control-Document How remote control works (also includes steps for pushing the agent to remote machines from Active directory) : http://writer.zoho.com/corporate/mailzoho.com/kprakash/How-Remote-Control-Works Thanks and regards, Srikrishnan ServiceDeskPlus ManageEngine ServiceDesk Plus - Help Desk Software

                        New to ADSelfService Plus?