Query Upsert

Uses ALIAS name inside parsed query for ID, and either creates/updates a query.

CHANGE NOTIFICATION This api in the past has returned a single object
but is changing to return an array of query objects (because posted QL text
may contain more than one statement). To get the old behavior
of single object pass version=old.

# new version, will be default in Sept 2017.
curl -s -XPOST "https://api.lytics.io/api/query?version=new" \
   -H "Authorization: $LIOKEY" \
   --data-binary @your_file.lql

# old version, returns object
curl -s -XPOST "https://api.lytics.io/api/query?version=old" \
   -H "Authorization: $LIOKEY" \
   --data-binary @your_file.lql

Language
Credentials
Header
Click Try It! to start a request and see the response here!