Edit Incident’s properties

All Incidents take exactly two arguments on instantiation:

  • Attributes
  • Properties

while MotorCortex.Group and MotorCortex.Clip take only one argument, the properties.

At any time we can edit the properties of an Incident, Group or Clip by the editProperties method

  • Method: editProperties
  • Arguments (1):
    • newProperties: the new properties object
  • Returns: object with the following keys:
    • result: either true or false
    • errors: an array of errors in case the edit is not valid