Version 4.0.24.20 (latest)
Create a new task to render an existing query to an 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/queries/{query_id}/{result_format}
Datatype
Description
Request
path
Expand HTTP Path definition...
query_id
Id of the query to render
result_format
Output type: png or jpg
query
Expand HTTP Query definition...
width
Output width in pixels
height
Output height in pixels
fields
Requested fields.
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_tile.py |
TypeScript
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/typescript/downloadTile.ts |
Kotlin
https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/KotlinExample.kt |