diff --git a/docs/rest-api/rest-notebook.md b/docs/rest-api/rest-notebook.md
index 766f38d0e5..1c5ebdeec6 100644
--- a/docs/rest-api/rest-notebook.md
+++ b/docs/rest-api/rest-notebook.md
@@ -112,15 +112,6 @@ Notebooks REST API supports the following operations: List, Create, Get, Delete,
{
"title": "paragraph title2",
"text": "paragraph text2",
- "showTitle": true,
- "colWidth": 9.0,
- "graph": {
- "mode": "pieChart"
- }
- }
- {
- "title": "paragraph title3",
- "text": "paragraph text3",
"config": {
"title": true,
"colWidth": 6.0,
@@ -622,31 +613,18 @@ Notebooks REST API supports the following operations: List, Create, Get, Delete,
}
- | sample JSON input (providing paragraph config) |
-
-{
- "title": "paragraph title3",
- "text": "paragraph text3",
"config": {
"title": true,
"colWidth": 6.0,
"results": [
{
"graph": {
- "mode": "scatterChart",
+ "mode": "pieChart",
"optionOpen": true
}
}
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java
index bb2ea07d11..8c1075e986 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java
@@ -955,38 +955,7 @@ public class NotebookRestApi {
p.setTitle(request.getTitle());
p.setText(request.getText());
Map< String, Object > config = request.getConfig();
- if ( config != null){
- Vector< String > ignoredFields = new Vector<>();
- if ( request.getGraph() != null)
- ignoredFields.add("graph");
- if ( request.getColWidth() != null)
- ignoredFields.add("colWidth");
- if ( request.getShowTitle() != null)
- ignoredFields.add("showTitle");
- if ( ignoredFields.size() > 0 )
- LOG.warn("As config is provided, the following field(s) are ignored {}",
- ignoredFields.toString());
- }
- else {
- config = new HashMap<>();
- Map graph = request.getGraph();
- if (graph != null) {
- List |