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 ADManager Plus?

                    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. ...
                      • 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" } } }
                      • Reply a request through v3 API (Postman)

                        The API documentation for replying a request is under Admin > API Documentation > Request > Add notification Syntax of the URL: http(or https)://<servername>:<portnumber>/api/v3/requests/<Request ID>/notifications?TECHNICIAN_KEY=<API Key> Call: Post ...
                      • 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 ...