FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<wmservice-url>/publicQueries/query/<queryId>/update |
---|---|
Parent Resource | Public Query |
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.
Note: containerId cannot be updated. Syntax: { "name":"<queryName>", "fields":"<fieldList>", "aliases":"<aliasList>", "tables":"<tableList>", "where":"<whereclause>", "orderBy":"<orderByField>" } |
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{ "success": true }
{ "success": true }