Invalid URL - Task API is not working - 14001

Invalid URL - Task API is not working - 14001

API response - throws invalid URL error

apprUrl = url + "/api/v3/changes/changeid/tasks"


Reason - 14001 
ยท       Support for older version of V3 API for Tasks and Worklogs is deprecated. To use the latest format of the API, add the accept header "application/vnd.manageengine.sdp.v3+json" to the API URL. To know more about the difference between the V3 API old format and the new format, see Tasks and Worklogs.

Solution :

Users need to add the below headers in their code to make it work.

Key = Accept
Value = application/vnd.manageengine.sdp.v3+json


                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to send notifications to project owner when (Project is edited, task is added, Milestone is added)

                      Last tested in Build: 10602 1. Send mail project owner Please follow the below steps. 1.. Go to Admin --> Project Custom Functions --> Custom Actions --> Paste the content from the attachment (1. Project_sendmail.txt) and save it with a name. 2. ...
                    • Script to auto-populate the task owner field with the technician who created the request

                      REQUIREMENT: When a technician creates a request and a task is added under the request, the task owner should be the same technician. TESTED IN: Builds 14503 (Postgres) STEPS: 1) Under "Admin" > "Task Custom Functions," create a new custom function ...
                    • Add / Update Account - V1 API -> for 10606

                      Below works in 10606 Build MSP. Account Add API URL: http://<servername>:<portnumber>/sdpapi/admin/account/ HTTP Method: POST data= { "operation": { "details": { "AccountName": "Account 7", "LoginURL": "test", "Description": "Testing", "DoorNumber": ...
                    • Reply API

                      Below is a sample reply API URL: http://<servername>:<portnumber>/sdpapi/request/<Request ID>/reply CALL: POST INPUT_DATA={ "operation": { "details": { "to": "to address", "cc": "cc address", "subject": "subject", "description": "description" } } }
                    • Adding attachment to Resolution using API

                      PURPOSE: To add an attachment to the resolution via API. STEPS: 1) Upload the attachment file and obtain the attachment ID: URL: <domain_url>/api/v3/requests/upload Method: POST Payload: files ( input_data = <file_content> ) Response: 2) Add the ...