Version 4.0.24.14
Create a new task to render a dashboard to a document or image.
Returns a render task object. To check the status of a render task, pass the render_task.id to Get Render Task. Once the render task is complete, you can download the resulting document or image using Get Render Task Results.
Request
POST
/render_tasks/dashboards/{dashboard_id}/{result_format}
Datatype
Description
Request
path
Expand HTTP Path definition...
dashboard_id
Id of dashboard to render. The ID can be a LookML dashboard also.
result_format
Output type: pdf, png, or jpg
body
Expand HTTP Body definition...
body
Dashboard render task parameters
Expand CreateDashboardRenderTask definition...
dashboard_filters
Filter values to apply to the dashboard queries, in URL query format
dashboard_style
Dashboard layout style: single_column or tiled
query
Expand HTTP Query definition...
width
Output width in pixels
height
Output height in pixels
fields
Requested fields.
pdf_paper_size
Paper size for pdf. Value can be one of: ["letter","legal","tabloid","a0","a1","a2","a3","a4","a5"]
pdf_landscape
Whether to render pdf in landscape paper orientation
long_tables
Whether or not to expand table vis to full length
theme
Theme to apply. Will render embedded version of dashboard if valid
Response
200: Render Task
Datatype
Description
(object)
can
lock
Operations the current user is able to perform on this object
created_at
lock
Date/Time render task was created
dashboard_filters
lock
Filter values to apply to the dashboard queries, in URL query format
dashboard_id
lock
Id of dashboard to render
dashboard_style
lock
Dashboard layout style: single_column or tiled
finalized_at
lock
Date/Time render task was completed
height
lock
Output height in pixels. Flowed layouts may ignore this value.
id
lock
Id of this render task
look_id
lock
Id of look to render
lookml_dashboard_id
lock
Id of lookml dashboard to render
query_id
lock
Id of query to render
dashboard_element_id
lock
Id of dashboard element to render: UDD dashboard element would be numeric and LookML dashboard element would be model_name::dashboard_title::lookml_link_id
query_runtime
lock
Number of seconds elapsed running queries
render_runtime
lock
Number of seconds elapsed rendering data
result_format
lock
Output format: pdf, png, or jpg
runtime
lock
Total seconds elapsed for render task
status
lock
Render task status: enqueued_for_query, querying, enqueued_for_render, rendering, success, failure
status_detail
lock
Additional information about the current status
user_id
lock
The user account permissions in which the render task will execute
width
lock
Output width in pixels
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
409: Resource Already Exists
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Examples
Python
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/python/download_dashboard_pdf.py |
TypeScript
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/typescript/downloadDashboard.ts |