Geovisualization Developer's Guide

Publish Queries

The publish queries response body is a JSON object returned by the Geovisualization REST API in response to a request to publish one or more queries.

Table 1. Publish Query Response Elements
Element Data Type Description
queries Object A list of Objects containing the following fields:
  • visibility – the level of visibility of the query, which can be one of:
    • public - everyone can view and run the specified queries
    • private - only the query creator has access to the specified queries
  • ids – a list of query IDs whose publication status changed

The code example below illustrates a typical response to a successful publishing request.

{
  "queries": {
    "ids": [
      "0ba17e521ea1472db51a8cfc09fc1155"
    ],
    "visibility": "private"
  }
}