Skip to main content

API request returns '400 Bad Request'?

  • January 27, 2022
  • 0 replies
  • 323 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

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.

Did this topic help you find an answer to your question?
This topic has been closed for comments