🚧 [Experimental] Create editor chart
Creates the specified Editor chart.
Request
POST
https://api.datalens.tech/rpc/createEditorChart
Headers
|
Name |
Description |
|
x-dl-api-version |
Type: string API version header. Const: Example: |
Body
application/json
{
"entry": {
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "table_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
},
"key": "example",
"workbookId": "example",
"name": "example"
}
}
|
Name |
Description |
|
entry |
All of 2 types
Example
|
CreateEditorTableNodeEntry
|
Name |
Description |
||||||||||||
|
data |
Type: object
Example
|
||||||||||||
|
type |
Type: string For Table Editor charts takes value: table_node Const: Example: |
||||||||||||
|
annotation |
Type: object
Annotation information. Example
|
||||||||||||
|
links |
Type: object
Link information. Example
|
||||||||||||
|
meta |
Type: object
Metadata associated with the entry. Example
|
Example
{
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "table_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
}
}
CreateEditorGravityChartsNodeEntry
|
Name |
Description |
||||||||||||
|
data |
Type: object
Example
|
||||||||||||
|
type |
Type: string For D3 Editor charts takes value: d3_node Const: Example: |
||||||||||||
|
annotation |
Type: object
Annotation information. Example
|
||||||||||||
|
links |
Type: object
Link information. Example
|
||||||||||||
|
meta |
Type: object
Metadata associated with the entry. Example
|
Example
{
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "d3_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
}
}
CreateEditorMarkdownNodeEntry
|
Name |
Description |
||||||||||
|
data |
Type: object
Example
|
||||||||||
|
type |
Type: string For Markdown Editor charts takes value: markdown_node Const: Example: |
||||||||||
|
annotation |
Type: object
Annotation information. Example
|
||||||||||
|
links |
Type: object
Link information. Example
|
||||||||||
|
meta |
Type: object
Metadata associated with the entry. Example
|
Example
{
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "markdown_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example"
}
}
CreateEditorAdvancedChartNodeEntry
|
Name |
Description |
||||||||||
|
data |
Type: object
Example
|
||||||||||
|
type |
Type: string For Advanced Editor charts takes value: advanced-chart_node Const: Example: |
||||||||||
|
annotation |
Type: object
Annotation information. Example
|
||||||||||
|
links |
Type: object
Link information. Example
|
||||||||||
|
meta |
Type: object
Metadata associated with the entry. Example
|
Example
{
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "advanced-chart_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example"
}
}
CreateEditorSelectorNodeEntry
|
Name |
Description |
||||||||
|
data |
Type: object
Example
|
||||||||
|
type |
Type: string For Editor JS selectors takes value: control_node Const: Example: |
||||||||
|
annotation |
Type: object
Annotation information. Example
|
||||||||
|
links |
Type: object
Link information. Example
|
||||||||
|
meta |
Type: object
Metadata associated with the entry. Example
|
Example
{
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "control_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example"
}
}
EntryLocationIdentifiers
|
Name |
Description |
|
key |
Type: string Entry key when creating the entry in a folder. Example: |
|
name |
Type: string Entry name when creating the entry in a workbook. Example: |
|
workbookId |
Type: string ID of the workbook where the entry should be created. Example: |
Example
{
"key": "example",
"workbookId": "example",
"name": "example"
}
Responses
200 OK
Response
Body
application/json
{
"entry": {
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "table_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
}
}
}
|
Name |
Description |
|
entry |
One of 5 types
Example
|
EditorTableNode
|
Name |
Description |
||||||||||||
|
createdAt |
Type: string Creation timestamp. Example: |
||||||||||||
|
createdBy |
Type: string Creator of the entry. Example: |
||||||||||||
|
data |
Type: object
Example
|
||||||||||||
|
entryId |
Type: string Unique identifier of the entry. Example: |
||||||||||||
|
hidden |
Type: boolean Indicates if the entry is hidden. |
||||||||||||
|
key |
Any of 3 types
Key identifier of the entry. Example: |
||||||||||||
|
meta |
Type: object | null Metadata associated with the entry. Example
|
||||||||||||
|
public |
Type: boolean Indicates if the entry is public. |
||||||||||||
|
publishedId |
Type: string | null Published version ID. Example: |
||||||||||||
|
revId |
Type: string Version ID for the Editor chart. Example: |
||||||||||||
|
savedId |
Type: string Saved version ID. Example: |
||||||||||||
|
scope |
Type: string Type of the entry. For charts takes value: widget Const: Example: |
||||||||||||
|
tenantId |
Type: string Tenant ID. Example: |
||||||||||||
|
type |
Type: string For Table Editor charts takes value: table_node Const: Example: |
||||||||||||
|
updatedAt |
Type: string Last update timestamp. Example: |
||||||||||||
|
updatedBy |
Type: string Last updater of the entry. Example: |
||||||||||||
|
version |
Type: number Editor version. Const: |
||||||||||||
|
workbookId |
Any of 3 types
ID of the workbook the Editor chart belongs to. Example: |
||||||||||||
|
annotation |
Type: object | null Annotation information. Example
|
||||||||||||
|
links |
Type: object | null Link information. Example
|
Example
{
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "table_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
}
}
EditorGravityChartsNode
|
Name |
Description |
||||||||||||
|
createdAt |
Type: string Creation timestamp. Example: |
||||||||||||
|
createdBy |
Type: string Creator of the entry. Example: |
||||||||||||
|
data |
Type: object
Example
|
||||||||||||
|
entryId |
Type: string Unique identifier of the entry. Example: |
||||||||||||
|
hidden |
Type: boolean Indicates if the entry is hidden. |
||||||||||||
|
key |
Any of 3 types
Key identifier of the entry. Example: |
||||||||||||
|
meta |
Type: object | null Metadata associated with the entry. Example
|
||||||||||||
|
public |
Type: boolean Indicates if the entry is public. |
||||||||||||
|
publishedId |
Type: string | null Published version ID. Example: |
||||||||||||
|
revId |
Type: string Version ID for the Editor chart. Example: |
||||||||||||
|
savedId |
Type: string Saved version ID. Example: |
||||||||||||
|
scope |
Type: string Type of the entry. For charts takes value: widget Const: Example: |
||||||||||||
|
tenantId |
Type: string Tenant ID. Example: |
||||||||||||
|
type |
Type: string For D3 Editor charts takes value: d3_node Const: Example: |
||||||||||||
|
updatedAt |
Type: string Last update timestamp. Example: |
||||||||||||
|
updatedBy |
Type: string Last updater of the entry. Example: |
||||||||||||
|
version |
Type: number Editor version. Const: |
||||||||||||
|
workbookId |
Any of 3 types
ID of the workbook the Editor chart belongs to. Example: |
||||||||||||
|
annotation |
Type: object | null Annotation information. Example
|
||||||||||||
|
links |
Type: object | null Link information. Example
|
Example
{
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "d3_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example",
"config": "example"
}
}
EditorMarkdownNode
|
Name |
Description |
||||||||||
|
createdAt |
Type: string Creation timestamp. Example: |
||||||||||
|
createdBy |
Type: string Creator of the entry. Example: |
||||||||||
|
data |
Type: object
Example
|
||||||||||
|
entryId |
Type: string Unique identifier of the entry. Example: |
||||||||||
|
hidden |
Type: boolean Indicates if the entry is hidden. |
||||||||||
|
key |
Any of 3 types
Key identifier of the entry. Example: |
||||||||||
|
meta |
Type: object | null Metadata associated with the entry. Example
|
||||||||||
|
public |
Type: boolean Indicates if the entry is public. |
||||||||||
|
publishedId |
Type: string | null Published version ID. Example: |
||||||||||
|
revId |
Type: string Version ID for the Editor chart. Example: |
||||||||||
|
savedId |
Type: string Saved version ID. Example: |
||||||||||
|
scope |
Type: string Type of the entry. For charts takes value: widget Const: Example: |
||||||||||
|
tenantId |
Type: string Tenant ID. Example: |
||||||||||
|
type |
Type: string For Markdown Editor charts takes value: markdown_node Const: Example: |
||||||||||
|
updatedAt |
Type: string Last update timestamp. Example: |
||||||||||
|
updatedBy |
Type: string Last updater of the entry. Example: |
||||||||||
|
version |
Type: number Editor version. Const: |
||||||||||
|
workbookId |
Any of 3 types
ID of the workbook the Editor chart belongs to. Example: |
||||||||||
|
annotation |
Type: object | null Annotation information. Example
|
||||||||||
|
links |
Type: object | null Link information. Example
|
Example
{
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "markdown_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example"
}
}
EditorAdvancedChartNode
|
Name |
Description |
||||||||||
|
createdAt |
Type: string Creation timestamp. Example: |
||||||||||
|
createdBy |
Type: string Creator of the entry. Example: |
||||||||||
|
data |
Type: object
Example
|
||||||||||
|
entryId |
Type: string Unique identifier of the entry. Example: |
||||||||||
|
hidden |
Type: boolean Indicates if the entry is hidden. |
||||||||||
|
key |
Any of 3 types
Key identifier of the entry. Example: |
||||||||||
|
meta |
Type: object | null Metadata associated with the entry. Example
|
||||||||||
|
public |
Type: boolean Indicates if the entry is public. |
||||||||||
|
publishedId |
Type: string | null Published version ID. Example: |
||||||||||
|
revId |
Type: string Version ID for the Editor chart. Example: |
||||||||||
|
savedId |
Type: string Saved version ID. Example: |
||||||||||
|
scope |
Type: string Type of the entry. For charts takes value: widget Const: Example: |
||||||||||
|
tenantId |
Type: string Tenant ID. Example: |
||||||||||
|
type |
Type: string For Advanced Editor charts takes value: advanced-chart_node Const: Example: |
||||||||||
|
updatedAt |
Type: string Last update timestamp. Example: |
||||||||||
|
updatedBy |
Type: string Last updater of the entry. Example: |
||||||||||
|
version |
Type: number Editor version. Const: |
||||||||||
|
workbookId |
Any of 3 types
ID of the workbook the Editor chart belongs to. Example: |
||||||||||
|
annotation |
Type: object | null Annotation information. Example
|
||||||||||
|
links |
Type: object | null Link information. Example
|
Example
{
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "advanced-chart_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example",
"prepare": "example"
}
}
EditorSelectorNode
|
Name |
Description |
||||||||
|
createdAt |
Type: string Creation timestamp. Example: |
||||||||
|
createdBy |
Type: string Creator of the entry. Example: |
||||||||
|
data |
Type: object
Example
|
||||||||
|
entryId |
Type: string Unique identifier of the entry. Example: |
||||||||
|
hidden |
Type: boolean Indicates if the entry is hidden. |
||||||||
|
key |
Any of 3 types
Key identifier of the entry. Example: |
||||||||
|
meta |
Type: object | null Metadata associated with the entry. Example
|
||||||||
|
public |
Type: boolean Indicates if the entry is public. |
||||||||
|
publishedId |
Type: string | null Published version ID. Example: |
||||||||
|
revId |
Type: string Version ID for the Editor chart. Example: |
||||||||
|
savedId |
Type: string Saved version ID. Example: |
||||||||
|
scope |
Type: string Type of the entry. For charts takes value: widget Const: Example: |
||||||||
|
tenantId |
Type: string Tenant ID. Example: |
||||||||
|
type |
Type: string For Editor JS selectors takes value: control_node Const: Example: |
||||||||
|
updatedAt |
Type: string Last update timestamp. Example: |
||||||||
|
updatedBy |
Type: string Last updater of the entry. Example: |
||||||||
|
version |
Type: number Editor version. Const: |
||||||||
|
workbookId |
Any of 3 types
ID of the workbook the Editor chart belongs to. Example: |
||||||||
|
annotation |
Type: object | null Annotation information. Example
|
||||||||
|
links |
Type: object | null Link information. Example
|
Example
{
"version": 1,
"entryId": "example",
"key": null,
"createdAt": "example",
"createdBy": "example",
"updatedAt": "example",
"updatedBy": "example",
"revId": "example",
"savedId": "example",
"publishedId": "example",
"tenantId": "example",
"hidden": true,
"public": true,
"workbookId": null,
"scope": "widget",
"meta": {},
"links": {},
"annotation": {
"description": "example"
},
"type": "control_node",
"data": {
"meta": "example",
"params": "example",
"sources": "example",
"controls": "example"
}
}