Skip to content

Notify:UpdateScan

Updates an existing persistent Scan.

Controller: Notify
Topic: UpdateScan
Action: Publish
Permissions: None

NameTypeExpectDescription
ScanIDStringAlwaysThe unique identifier of the existing Scan.
DetailsObjectAlwaysA Scan Details object for identification.
ParametersObjectAlwaysA Scan Parameters object for describing the scan rules.
IsActiveBooleanSometimesAn optional flag setting whether the Scan should be Active after updating. If omitted, defaults to true.

All fields must be specified, even if they are not changing.

NameTypeExpectDescription
NameStringAlwaysThe user-defined name for the Scan.
DescriptionStringSometimesAn optional description providing further details of the Scan.
MetadataObjectAlwaysAn user-defined object with string values.
NameTypeExpectDescription
TypeStringAlwaysThe scanner type.
CriteriaAnyAlwaysThe parameters of the Scan. Format depends on the type.
TargetAnyAlwaysThe targeting information for the Scan. Format depends on the type.
NotificationsArraySometimesAn array of Notification Parameters objects that describe how this Scan should notify of changes.

See Appendix J1 - Scanners for more information on scanner criteria and targets.

NameTypeExpectDescription
ChannelIDStringAlwaysThe identifier of a Notification Channel.
CultureCodeStringSometimesAn optional culture identification code. If omitted, notifications will be sent in English.
MinimumStableTimeSometimesThe minimum amount of time a Scan must match before a notification can be sent.
MinimumElapsedTimeSometimesThe minimum amount of time since the last notification before a new one can be sent.
SettingsAnySometimesAny channel-specific settings for this notification source.

See Appendix K - Distribution Channels for more information on channel settings.

No Response Body.

Send:

{"Controller":"Notify","Topic":"UpdateScan","TransactionID":1,"Data":{
"ScanID":"Umk8R2",
"Parameters":{
"Type":"Market.Scan",
"Criteria":["And","IsIndex","LastPrice"],
"Target":["ASX[Demo]"]
},
"Details":{
"Name":"Indexes",
"Description":"Scan that matches all indexes with a value",
"Category":"User"
}
}}

Receive:

{"Controller":"Notify","Topic":"UpdateScan","TransactionID":1}