Skip to main content

Edit Incident’s attributes

All Incidents take exactly two arguments on instantiation:

  • Attributes
  • Properties

At any time we can edit the attributes of an Incident by the editAttributes method

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