title: How to update incident status in BMC Remedy via API?
body: <p>In my project we've integrated BMC Remedy API to create incident with comment and attachment, filter incidents, get incident. All these works fine.</p>
  
  <p>Now the requirement is to update status of an created incident to closed via API.
  I am using <code>nodejs</code> and <code>express</code>.</p>
  
  <p>Below is the snippet to test:</p>
  
  <pre><code>get('INC000000021072', true) // works fine
  .then(inc =&gt; update(inc, { Status: 'Closed'})) // getting an error - Field ID specified is not found on this form.
  .then(() =&gt; get('INC000000021072', true))
  .then((inc) =&gt; console.log(inc));
  </code></pre>
  
  <p>Update function:</p>
  
  <pre><code>async function update(incident, values) {
    console.log('update method #############',{ incident, values});
    try{
      const result = await query({
        uri: `HPD:IncidentInterface/${incident.id}`,
        method: 'PUT',
        json: { values },
      });
      console.log(result); // never gets here due to error
    } catch(error) { console.log(error) };
  }
  </code></pre>
  
  <p><strong>Update</strong>
  I am able to update fields like submitter and description with request id. But not able to update status. While updating status with all the assign related field I am getting below error:</p>
  
  <pre><code>[
      {
          "messageType": "ERROR",
          "messageText": null,
          "messageAppendedText": "The Assigned Group fields are invalid.  Use the menus for the Support Company, Support Organization, Assigned Group, and Assignee fields or the type ahead return function on the Assigned Group or Assignee fields to select this information.",
          "messageNumber": 1291053
      }
  ]
  </code></pre>
  
  <p><strong>Is there a specific interface to use to update incident status ? Are there any other fields required to send to update incident status ?</strong></p>