API request returns '400 Bad Request'?

  • 27 January 2022
  • 0 replies
  • 17 views

Userlevel 3

Issue:

When issuing an API request with a command such as curl, an 'Error 400 Bad Request' response is returned.

 

Solution:

Make sure that you are including the following custom HTTP header attribute in your request:  'X-Requested-By:sdc'

For example:

curl -u username:password -X DELETE http://localhost:18630/rest/v1/pipeline/samplepipeline -H "X-Requested-By:sdc"

This custom header is required for all POST/PUT/DELETE REST API requests to the Data Collector.


This topic has been closed for comments