Query
Query Validation
Upload a query for syntax validation only.
Optionally, a segments=true parameter can be passed that will validate this query both for syntax, as well as checking that it doesn't invalidate existing segments. If a segment uses a field that this query is about to remove/alter such that the segment is no longer valid, this will warn.
# validate query syntax
curl -s -XPOST "https://api.lytics.io/api/query/_validate" \
-H "Authorization: $LIOKEY" \
-H "Content-Type: text/plain" \
--data-binary @your_file.lql
# validate query syntax AND segments still valid
curl -s -XPOST "https://api.lytics.io/api/query/_validate?segments=true" \
-H "Authorization: $LIOKEY" \
-H "Content-Type: text/plain" \
--data-binary @your_file.lql
post/api/query/_validate
Request
- Base URLhttps://api.lytics.io
- URLhttps://api.lytics.io/api/query/_validate
- AuthAPI key in header Authorization
Query parameters
account_idstring
Your Lytics account ID.
versionstring
Use the "new" array based response or "old" object.
Response
OK
Example response
{
"status": "success",
"data": {
"id": "abcdef123",
"updated": "2014-10-30T21:01:06.493Z",
"created": "2014-10-30T21:01:06.493Z",
"text": "SELECT ..."
}
}Changes
No recorded changes to this operation across all 1 revision of this API.