Edit Task via REST API

Edit Task via REST API

Hello-

I need to edit an existing task via the REST API.  Is there an online reference to the SDP REST API Version 2?  Or, can you provide feedback on the snippet below?


Public Sub test_edit_task()
   Dim objHTTP As New MSXML2.ServerXMLHTTP
   Dim URL As String
   Dim body As String
   
    Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
    URL = "
http://localhost:8080/sdpapiv2/tasks/25051?TECHNICIAN_KEY=A3514EB6-0B6A-463E-A145-7609FECF5EDC"
    body = "INPUT_DATA=" & "{""task"":{""title"":""Sample task through API"",""status"":{""name"":""Closed""}}}"
    objHTTP.Open "GET", URL & body, False
   
    Call objHTTP.send("")
    Debug.Print objHTTP.Status
    Debug.Print objHTTP.responseText
   
 
End Sub


The method above returns the task details, but does not update the task.

Thanks in advance!

                  New to ADSelfService Plus?