setSituationServices

A MoogDb v2 method that applies a list of external services to a Situation. Any other services already associated with the Situation are removed.

Back to MoogDb V2 API Method Reference.

Request arguments

Method setSituationServices takes the following request arguments:

Name

Type

Required

Description

situationId

Number

Yes

Situation ID.

services

JSON Array

Yes

A Javascript array of service names as text strings. If any services supplied do not exist in the database, the request creates them and assigns them to the Situation.

Response

Method setSituationServices returns the following response:

API update behavior

The behavior of this method depends on whether the relevant alert or Situation is open, closed and still in the active database, or closed and archived to the historic database. This method updates or returns information about the alert or Situation as follows:

See API Update Behavior for more information on Situation statuses.