> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Incident

Update an existing incident.

<Note>
  External Documentation

  To learn more, visit the [Oracle Service Cloud documentation](https://docs.oracle.com/en/cloud/saas/b2c-service/cxsvc/op-services-rest-connect-v1.4-incidents-id-patch.html).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                     | Description                                                                                                                                                                                                                                                                                      |
  | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Account - Lookup Name         | The lookup name of the account to assign the incident to.                                                                                                                                                                                                                                        |
  | Application Context           | The application context information to attach as `OSvC-CREST-Application-Context` request header. For more information, please refer to [Oracle documentation](https://docs.oracle.com/en/cloud/saas/b2c-service/cxsvc/c_osvc_custom_headers.html#CustomHeaders-12F270BF__concept-102-2DB1C328). |
  | Assign Primary Account        | Select the attribute used to identify the primary contact.<br /><br />**Note:** A primary contact must be assigned to the created incident. This can be done using the contact's `ID` or `Lookup Name`.                                                                                          |
  | Assign To Account             | Select to fill account details to assign the incident to.<br /><br />**Note:** To represent an account - one of `ID` or `Lookup Name` is required.                                                                                                                                               |
  | Assign To Staff Group         | Select to fill staff group details to assign the incident to.<br /><br />**Note:** To represent a staff group - one of `ID` or `Lookup Name` is required.                                                                                                                                        |
  | Assignment - Account ID       | The ID of the account to assign the incident to.                                                                                                                                                                                                                                                 |
  | Incident ID                   | The ID of the incident to update.                                                                                                                                                                                                                                                                |
  | Lookup Name                   | The lookup name of the incident. Maximum length is `255`.                                                                                                                                                                                                                                        |
  | Primary Contact - ID          | The ID of the primary contact to assign the incident to.                                                                                                                                                                                                                                         |
  | Primary Contact - Lookup Name | The lookup name of the primary contact to assign the incident to.                                                                                                                                                                                                                                |
  | Staff Group - ID              | The ID of the staff group to assign the incident to.                                                                                                                                                                                                                                             |
  | Staff Group - Lookup Name     | The lookup name of the staff group to assign the incident to.                                                                                                                                                                                                                                    |
  | Subject                       | The subject of the incident. Maximum length is `240`.                                                                                                                                                                                                                                            |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | File Attachments       | A list of file objects to attach to the incident.<br /><br />For example:<br /><pre><code>\[<br />    \{<br />      "updatedTime": "2025-01-10T12:45:00Z",<br />      "contentType": "text/plain",<br />      "name": "Log File",<br />      "uRL": "[https://example.com/files/12345](https://example.com/files/12345)",<br />      "description": "System-generated log file attachment.",<br />      "private": false,<br />      "fileName": "system\_log.txt",<br />      "createdTime": "2025-01-10T12:30:00Z",<br />      "data": "VGhpcyBpcyBhIHNhbXBsZSBsb2cgZmlsZS4=", <br />      "id": 12345,<br />      "size": 2048<br />    }<br />  ]</code></pre> |
  | Language               | Select to fill language details.<br /><br />**Note:** To represent a language - one of `ID` or `Lookup Name` is required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Language - Lookup Name | The lookup name of the language. Maximum length is 255.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Language ID            | The ID of the language. Valid range is `1`-`9223372036854776000`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Next Request After     | The time (in milliseconds) that must elapse before subsequent API calls will be executed. This value will be attached as `osvc-crest-next-request-after` request header. For more information, please refer to [Oracle documentation](https://docs.oracle.com/en/cloud/saas/b2c-service/cxsvc/c_osvc_custom_headers.html#CustomHeaders-12F270BF__concept-136-12F2B577).                                                                                                                                                                                                                                                                                            |
</div>

## Example Output

```json theme={"dark"}
{
	"id": 67,
	"lookupName": "160128-000000",
	"statusWithType": {
		"status": {
			"id": 1,
			"lookupName": "Unresolved"
		},
		"statusType": {
			"id": 1,
			"lookupName": "Unresolved"
		}
	},
	"subject": "FishPhone STILL not working"
}
```

## Workflow Library Example

[Update Incident with Oracle Service Cloud and Send Results Via Email](https://library.blinkops.com/workflows/update-incident-with-oracle-service-cloud-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-incident-with-oracle-service-cloud-and-send-results-via-email/canvas" />
</div>
