FRAMES | NO FRAMES Description | Parameters | Examples | Response
Update Query (Operation)
URL http://<wmservice-url>/publicQueries/query/<queryId>/update
Parent Resource Public Query

Description

This operation is supported from 10.3.1 onwards.

Updates a public query.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json
user Required
Description: The username of the person who makes the update query request. The person must have AdministratorAccess Privilege to update public queries.
properties Required
Description: A JSON object containing the public query property values to update. At least one parameter from the list in below needs to be specified to update.

  • name: The name of the query.
  • fields: The names of the fields that participate in the query. This list is a comma delimited list of field names.
  • aliases: The descriptions of the fields that participate in the query. This list is a comma delimited list of field aliases.
  • tables: The names of the tables that participate in the query. This list is a comma delimited list of table names.
  • where: where clause for the query.
  • orderBy: The name of the field by which to order the results. Only a single field name may be specified.

Note: containerId cannot be updated.

Syntax:

{
  "name":"<queryName>",
  "fields":"<fieldList>",
  "aliases":"<aliasList>",
  "tables":"<tableList>",
  "where":"<whereclause>",
  "orderBy":"<orderByField>"
}

Example Usage

Example: URL for updating the public query which has query ID "802" in the "Workflow" service on sampleserver. The person who makes the request is "admin0000". The query properties to be updated are query name and orderBy.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/publicQueries/query/802/update?user=admin0000&properties={"name":"New%20Query","orderBy":"Job_ID"}&f=pjson

JSON Response Syntax

{ "success": true }

JSON Response Example

{ "success": true }