action superset_post_chart { label: "post_chart" description: "Create a new Chart." provider: superset method: POST path: "/chart/" encoding: json input: { type: "object" required: ["datasource_id", "datasource_type", "slice_name"] properties: { cache_timeout: { type: "integer" format: "int32" description: "Duration (in seconds) of the caching timeout for this chart. Note this defaults to the datasource/table timeout if undefined." } dashboards: { type: "array" items: { type: "integer" format: "int32" description: "A list of dashboards to include this new chart to." } } datasource_id: { type: "integer" format: "int32" description: "The id of the dataset/datasource this new chart will use. A complete datasource identification needs `datasouce_id` and `datasource_type`." } datasource_name: { type: "string" description: "The datasource name." } datasource_type: { type: "string" description: "The type of dataset/datasource identified on `datasource_id`." enum: ["druid", "table", "view"] } description: { type: "string" description: "A description of the chart propose." } owners: { type: "array" items: { type: "integer" format: "int32" description: "Owner are users ids allowed to delete or change this chart. If left empty you will be one of the owners of the chart." } } params: { type: "string" description: "Parameters are generated dynamically when clicking the save or overwrite button in the explore view. This JSON object for power users who may want to alter specific parameters." } query_context: { type: "string" description: "The query context represents the queries that need to run in order to generate the data the visualization, and in what format the data should be returned." } slice_name: { type: "string" description: "The name of the chart." } viz_type: { type: "string" description: "The type of chart visualization used." } } } output: { type: "object" properties: { id: { type: "number" } result: { type: "object" required: ["datasource_id", "datasource_type", "slice_name"] properties: { cache_timeout: { type: "integer" format: "int32" description: "Duration (in seconds) of the caching timeout for this chart. Note this defaults to the datasource/table timeout if undefined." } dashboards: { type: "array" items: { type: "integer" format: "int32" description: "A list of dashboards to include this new chart to." } } datasource_id: { type: "integer" format: "int32" description: "The id of the dataset/datasource this new chart will use. A complete datasource identification needs `datasouce_id` and `datasource_type`." } datasource_name: { type: "string" description: "The datasource name." } datasource_type: { type: "string" description: "The type of dataset/datasource identified on `datasource_id`." enum: ["druid", "table", "view"] } description: { type: "string" description: "A description of the chart propose." } owners: { type: "array" items: { type: "integer" format: "int32" description: "Owner are users ids allowed to delete or change this chart. If left empty you will be one of the owners of the chart." } } params: { type: "string" description: "Parameters are generated dynamically when clicking the save or overwrite button in the explore view. This JSON object for power users who may want to alter specific parameters." } query_context: { type: "string" description: "The query context represents the queries that need to run in order to generate the data the visualization, and in what format the data should be returned." } slice_name: { type: "string" description: "The name of the chart." } viz_type: { type: "string" description: "The type of chart visualization used." } } } } } }