Version 4.0.24.18
Search Scheduled Plans
Returns all scheduled plans which matches the given search criteria.
If no user_id is provided, this function returns the scheduled plans owned by the caller.
To list all schedules for all users, pass all_users=true
.
The caller must have see_schedules
permission to see other users' scheduled plans.
Request
GET
/scheduled_plans/search
Datatype
Description
Request
query
Expand HTTP Query definition...
user_id
Return scheduled plans belonging to this user_id. If not provided, returns scheduled plans owned by the caller.
fields
Comma delimited list of field names. If provided, only the fields specified will be included in the response
all_users
Return scheduled plans belonging to all users (caller needs see_schedules permission)
limit
Number of results to return. (used with offset and takes priority over page and per_page)
offset
Number of results to skip before returning any. (used with limit and takes priority over page and per_page)
sorts
Fields to sort by.
name
Match Scheduled plan's name.
user_first_name
Returns scheduled plans belonging to user with this first name.
user_last_name
Returns scheduled plans belonging to user with this last name.
dashboard_id
Returns scheduled plans created on this Dashboard.
look_id
Returns scheduled plans created on this Look.
lookml_dashboard_id
Returns scheduled plans created on this LookML Dashboard.
recipient
Match recipient address.
destination_type
Match scheduled plan's destination type.
delivery_format
Match scheduled plan's delivery format.
filter_or
Combine given search criteria in a boolean OR expression
Response
200: Scheduled Plan
Datatype
Description
(array)
name
Name of this scheduled plan
user_id
User Id which owns this scheduled plan
run_as_recipient
Whether schedule is run as recipient (only applicable for email recipients)
enabled
Whether the ScheduledPlan is enabled
look_id
Id of a look
dashboard_id
Id of a dashboard
lookml_dashboard_id
Id of a LookML dashboard
filters_string
Query string to run look or dashboard with
dashboard_filters
(DEPRECATED) Alias for filters_string field
require_results
Delivery should occur if running the dashboard or look returns results
require_no_results
Delivery should occur if the dashboard look does not return results
require_change
Delivery should occur if data have changed since the last run
send_all_results
Will run an unlimited query and send all results.
crontab
Vixie-Style crontab specification when to run
datagroup
Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)
timezone
Timezone for interpreting the specified crontab (default is Looker instance timezone)
scheduled_plan_destination
Expand ScheduledPlanDestination definition...
id
lock
Unique Id
scheduled_plan_id
Id of a scheduled plan you own
format
The data format to send to the given destination. Supported formats vary by destination, but include: "txt", "csv", "inline_json", "json", "json_detail", "xlsx", "html", "wysiwyg_pdf", "assembled_pdf", "wysiwyg_png"
apply_formatting
Are values formatted? (containing currency symbols, digit separators, etc.
apply_vis
Whether visualization options are applied to the results.
address
Address for recipient. For email e.g. 'user@example.com'. For webhooks e.g. 'https://example.domain/path'. For Amazon S3 e.g. 's3://bucket-name/path/'. For SFTP e.g. 'sftp://host-name/path/'.
looker_recipient
lock
Whether the recipient is a Looker user on the current instance (only applicable for email recipients)
type
Type of the address ('email', 'webhook', 's3', or 'sftp')
parameters
JSON object containing parameters for external scheduling. For Amazon S3, this requires keys and values for access_key_id and region. For SFTP, this requires a key and value for username.
secret_parameters
(Write-Only) JSON object containing secret parameters for external scheduling. For Amazon S3, this requires a key and value for secret_access_key. For SFTP, this requires a key and value for password.
message
Optional message to be included in scheduled emails
run_once
Whether the plan in question should only be run once (usually for testing)
include_links
Whether links back to Looker should be included in this ScheduledPlan
custom_url_base
Custom url domain for the scheduled entity
custom_url_params
Custom url path and parameters for the scheduled entity
custom_url_label
Custom url label for the scheduled entity
show_custom_url
Whether to show custom link back instead of standard looker link
pdf_paper_size
The size of paper the PDF should be formatted to fit. Valid values are: "letter", "legal", "tabloid", "a0", "a1", "a2", "a3", "a4", "a5".
pdf_landscape
Whether the PDF should be formatted for landscape orientation
embed
Whether this schedule is in an embed context or not
color_theme
Color scheme of the dashboard if applicable
long_tables
Whether or not to expand table vis to full length
inline_table_width
The pixel width at which we render the inline table visualizations
query_id
Query id
id
lock
Unique Id
created_at
lock
Date and time when ScheduledPlan was created
updated_at
lock
Date and time when ScheduledPlan was last updated
title
lock
Title
user
lock
User who owns this ScheduledPlan
Expand UserPublic definition...
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
first_name
lock
First Name
last_name
lock
Last Name
display_name
lock
Full name for display (available only if both first_name and last_name are set)
avatar_url
lock
URL for the avatar image (may be generic)
url
lock
Link to get this item
next_run_at
lock
When the ScheduledPlan will next run (null if running once)
last_run_at
lock
When the ScheduledPlan was last run
can
lock
Operations the current user is able to perform on this object
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
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