Version 4.0.24.20 (latest)
Get Cached Project Validation Results
Returns the cached results of a previous project validation calculation, if any.
Returns http status 204 No Content if no validation results exist.
Validating the content of all the files in a project can be computationally intensive
for large projects. Use this API to simply fetch the results of the most recent
project validation rather than revalidating the entire project from scratch.
A value of "stale": true
in the response indicates that the project has changed since
the cached validation results were computed. The cached validation results may no longer
reflect the current state of the project.
Request
GET
/projects/{project_id}/validate
Expand HTTP Path definition...
project_id
string
Project Id
Expand HTTP Query definition...
fields
string
Requested fields
Response
200: Project validation results
Expand ProjectError definition...
code
lock
string
A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language
severity
lock
string
Severity: fatal, error, warning, info, success
kind
lock
string
Error classification: syntax, deprecation, model_configuration, etc
message
lock
string
Error message which may contain information such as dashboard or model names that may be considered sensitive in some use cases. Avoid storing or sending this message outside of Looker
field_name
lock
string
The field associated with this error
file_path
lock
string
Name of the file containing this error
line_number
lock
integer
Line number in the file of this error
model_id
lock
string
The model associated with this error
explore
lock
string
The explore associated with this error
help_url
lock
string
A link to Looker documentation about this error
params
lock
object
Error parameters
sanitized_message
lock
string
A version of the error message that does not contain potentially sensitive information. Suitable for situations in which messages are stored or sent to consumers outside of Looker, such as external logs. Sanitized messages will display "(?)" where sensitive information would appear in the corresponding non-sanitized message
project_digest
lock
string
A hash value computed from the project's current state
Expand ModelsNotValidated definition...
name
lock
string
Model name
project_file_id
lock
string
Project file
computation_time
lock
number
Duration of project validation in seconds
stale
lock
boolean
If true, the cached project validation results are no longer accurate because the project has changed since the cached results were calculated
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link