Update an incident

patch

/services/rest/connect/v1.4/incidents/{id}

Request

Path Parameters
Body ()
The question or the request for help submitted by a customer through the Ask a Question page, email, a chat session, site or answer feedback, or from an external source using the API. Incidents can also be added by agents when they work with customers by phone, fax, or mail.
Root Schema : incidents
Type: object
The question or the request for help submitted by a customer through the Ask a Question page, email, a chat session, site or answer feedback, or from an external source using the API. Incidents can also be added by agents when they work with customers by phone, fax, or mail.
Show Source
Nested Schema : incidents-assignedTo
Type: object
The collection of staff account and staff group.
Show Source
  • The account represents a staff member in Oracle B2C Service. Examples of staff members are customer sales representatives, sales agents, site administrators, and so on. It is the reference to a resource in 'accounts' collection. Only ID or lookupName can be provided to specify the resource.
  • namedIDs-incidents-assignedTo-staffGroup
    An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Nested Schema : incidents-banner
Type: object
The display flags of a banner.
Show Source
Nested Schema : incidents-billedMinutes
Type: object
The work time applied to incidents through the Time Billed feature.
Show Source
Nested Schema : namedIDs-incidents-channel
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-chatQueue
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : incidents-fileAttachments
Type: object
The file attachment that includes fields specific to incidents.
Show Source
Nested Schema : interface
Type: object
The console, windows, and pages used by staff members and customers to access the application and interact with a single knowledge base. The interface name determines the URL for the web site, the name of the system executables, and the .cfg directory name. It is the reference to a resource in 'siteInterfaces' collection. Only ID or lookupName can be provided to specify the resource.
Nested Schema : namedIDs-incidents-language
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-mailing
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : incidents-milestoneInstances
Type: object
The milestone instances associated with incidents.
Show Source
Nested Schema : otherContacts
Type: array
The customers or end users of Oracle B2C Service site. A contact contains basic information such as a customer's name, email address, and phone number. It also contains information about customer service issues, opportunities, and marketing mailings subscription status. It is the reference to a resource in 'contacts' collection. Only ID or lookupName can be provided to specify the resources.
Show Source
Nested Schema : primaryContact
Type: object
The customers or end users of Oracle B2C Service site. A contact contains basic information such as a customer's name, email address, and phone number. It also contains information about customer service issues, opportunities, and marketing mailings subscription status. It is the reference to a resource in 'contacts' collection. Only ID or lookupName can be provided to specify the resource.
Nested Schema : namedIDs-incidents-queue
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-responseEmailAddressType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-severity
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : incidents-sLAInstance
Type: object
The instance of a Service Level Agreement (SLA) as applied to an incident.
Show Source
Nested Schema : namedIDHierarchies-incidents-source
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : incidents-statusWithType
Type: object
The status of an object with its associated status type.
Show Source
Nested Schema : incidents-threads
Type: object
The incident discussion thread entry.
Show Source
Nested Schema : namedIDs-incidents-assignedTo-staffGroup
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-banner-importanceFlag
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-billedMinutes-billableTask
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-milestoneInstances-milestone
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : items
Type: object
Nested Schema : namedIDs-incidents-sLAInstance-nameOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-sLAInstance-stateOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDHierarchies-incidents-source-parents
Type: object
NamedID in which the ID is read-only. Used for hierarchies, where caller can specify the parents by name, but cannot specify the parent IDs.
Show Source
Nested Schema : namedIDs-incidents-statusWithType-status
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-statusWithType-statusType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-threads-channel
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-threads-contentType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-incidents-threads-entryType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Back to Top

Response

Default Response

Back to Top

Examples

Use the PATCH operation with the following syntax to partially update an incident object:

https://your_site_interface/services/rest/connect/version/incidents/incident_id

Include the data to be updated in the request body. Only the fields present in the request JSON data are updated. All other fields remain the same.

Example 1: Update the subject of an incident

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/incidents/67

Request body example

{
"subject": "FishPhone STILL not working"
}

Response example

The status 200 OK is returned. A subsequent GET request for that incident:

https://mysite.example.com/services/rest/connect/v1.4/incidents/67

returns the following:

{
  "id": 67,
  "lookupName": "160128-000000",

  ...

  "statusWithType": {
    "status": {
      "id": 1,
      "lookupName": "Unresolved"
    },
    "statusType": {
      "id": 1,
      "lookupName": "Unresolved"
    }
  },
  "subject": "FishPhone STILL not working",

  ...

}

Note:

The subject for incident 67 used to be "FishPhone not working."

Example 2: Update an incident thread and change it to a private note

Request URI Example

Use PATCH with the following URI to update an incident thread:

https://mysite.example.com/services/rest/connect/v1.4/incidents/2/threads/3

Request body example

{
   "entryType": 
        {
         "id": 1
        },
   "text": "Updated thread"
 }

Response Example

The status 200 OK is returned. This updates the content of thread 3 and changes its entry type from response to a private note.

Example 3: Update multiple threads of an incident via incident update

Request URI Example

Use PATCH with the following URI to update multiple incident threads:

https://mysite.example.com/services/rest/connect/v1.4/incidents/1

Request body example

{
"threads":
   [
      {
       "id": 2,
       "text": "Updated thread content"
      },
      {
       "id": 4,
       "entryType": 
          {
           "id": 1
          } 
      }
   ]
}

Response Example

The status 200 OK is returned. This updates the content of thread 2 and converts the entry type of thread 4 from response to a private note.

Example 4: Appending a thread to an incident via incident update

Request URI Example

Use PATCH with the following URI to append a thread to an incident:

https://mysite.example.com/services/rest/connect/v1.4/incidents/771

Request body example

{
"threads":
        {
         "entryType":{"id":1},
         "text":"This is append"
        }
}

Response Example

The status 200 OK is returned. This appends a thread to the incident.

Back to Top