| FRAMES | NO FRAMES | Description | Parameters | Examples | Response | 
| URL | http://<spatial-notification-url>/runOnHistory | 
|---|---|
| Parent Resource | Spatial Notification | 
| Parameter | Details | 
|---|---|
| f | Description: The response format. The default response format is html. Values: html | json  | 
| user | Required Description: The username of the client.  | 
| dataWorkspaceId | Required Description: The unique ID of the data workspace to evaluate.  | 
| from | Description: The starting time to query for new changes. | 
| to | Description: The ending time to query for new changes. | 
| logMatches | Description: Whether you want to keep the matches found stored in the ArcGIS Workflow Manager (Classic) repository.
  The default is false.Values: true | false  | 
| send | Description: Whether you want to the send notifications at the time that matches are found.
  The default is false.Values: true | false  | 
Example 1: URL for running spatial notifications in the "Workflow" service on sampleserver.
http://sampleserver/arcgis/rest/services/Workflow/WMServer/spatialNotification/runOnHistory?user=cjones&dataWorkspaceId={39FD6B70-DA49-4F91-BD9D-0F2F0A8FEC26}&from=1230768000000&logMatches=false&send=true
{
  "sessionId": "<sessionId>"
}
{
  "sessionId": "{53C0E3AD-3513-4C55-AC2B-64BBAFF416AA}"
}