0

I want to create zeppelin notebook via zeppelin REST API. I don't want to create an empty notebook, instead I want to create a notebook with some scala code in it.

What parameters do I need to pass to create such a notebook? Or is it possible to clone a notebook with some small modifications. Like, I can have a template notebook with parametrized fields. During clone, I will replace the parameters with actual value. Is it possible to do that?

Unfortunately the Sample JSON input in zeppelin document is not loading. I am getting the following error.

Not Found

The requested URL /docs/rest-api/rest-json/rest-json-notebook-create.json was not found on this server.
sag
  • 5,333
  • 8
  • 54
  • 91

2 Answers2

1

It seems, currently there is no API to create notebook with paragraphs loaded with code.

I've extended API to do that.

Refer, https://github.com/samuel-pt/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/ParagraphRestApi.java

sag
  • 5,333
  • 8
  • 54
  • 91
0

This functionality had been added just recently.

nojka_kruva
  • 1,454
  • 1
  • 10
  • 23