Ask Your Question

Revision history [back]

curl -i -u username:password -X POST http://localhost:18630/rest/v1/pipeline/<pipelineId>/resetOffset -H "X-Requested-By:sdc"

The -i option gives you the status code etc rather than just an empty response:

HTTP/1.1 200 OK
Date: Mon, 01 Apr 2019 15:37:48 GMT
Set-Cookie: JSESSIONID_18630=node01p0zooisdbb1696kmvinvrant13.node0;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID_18630=node0dmpzsr6s6aehx2qn68zs6mcs14.node0;Path=/
X-Frame-Options: DENY
Content-Length: 0
Server: Jetty(9.4.12.v20180830)

You can find all the REST APIs by going to Help/RESTful API in the Data Collector UI.