Ask Your Question

How to use REST API to publish pipeline in SDC to SCH?

asked 2019-02-01 15:54:38 -0500

tdzhangbin gravatar image

I am working on Streamsets by using REST API. When I finished the pipeline p1 in SDC, then I export p1 to a p1.json. Then in SCH, I cannot find a rest api to load p1.json.

Could someone tell me how to import extra json into SCH?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-05 13:55:54 -0500

kirti gravatar image

Here is a way to import pipelines using REST API:

/v1/pipelines/importPipelineCommits // Import Pipelines from compressed archive

which is POST method.

This would be a good starting point for you.

edit flag offensive delete link more


Thanks. I tried to use this one, but the return code is 415 when I pass the file:file_path in the command.

tdzhangbin gravatar imagetdzhangbin ( 2019-02-06 15:35:16 -0500 )edit

HTTP code 415 = Unsupported Media Type. REST API endpoint v1/pipelines/importPipelineCommits expects compressed file (for example, .zip -- not .json) and so Content-Type must be set to 'multipart/form-data' and Accept-Encoding to 'gzip, deflate'

iamontheinet gravatar imageiamontheinet ( 2019-02-06 16:27:07 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-02-01 15:54:38 -0500

Seen: 289 times

Last updated: Feb 05 '19