Create an incident response

post

/services/rest/connect/v1.4/incidentResponse

Request

Body ()
The activity on an incident, including the original question, agent response and updates, customer updates, records of conversations, and internal notes about the incident.
Root Schema : incidentResponse
Type: object
The activity on an incident, including the original question, agent response and updates, customer updates, records of conversations, and internal notes about the incident.
Show Source
Nested Schema : incidentResponse-bcc
Type: object
The recipients of the mail message.
Show Source
Nested Schema : incidentResponse-cc
Type: object
The recipients of the mail message.
Show Source
Nested Schema : incidentResponse-fileAttachments
Type: object
The file attachment that includes fields specific to incidents.
Show Source
Nested Schema : incident
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. It is the reference to a resource in 'incidents' collection. Only ID or lookupName can be provided to specify the resource.
Nested Schema : emailAddresses
Type: array
The email addresses of the recipients to whom the email is sent.
Show Source
Nested Schema : emailAddresses
Type: array
The email addresses of the recipients to whom the email is sent.
Show Source
Back to Top

Response

Default Response

Body ()
Root Schema : incidentResponse
Type: object
The activity on an incident, including the original question, agent response and updates, customer updates, records of conversations, and internal notes about the incident.
Show Source
Nested Schema : incidentResponse-bcc
Type: object
The recipients of the mail message.
Show Source
Nested Schema : incidentResponse-cc
Type: object
The recipients of the mail message.
Show Source
Nested Schema : incidentResponse-fileAttachments
Type: object
The file attachment that includes fields specific to incidents.
Show Source
Nested Schema : incident
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. It is the reference to a resource in 'incidents' collection. Only ID or lookupName can be provided to specify the resource.
Nested Schema : emailAddresses
Type: array
The email addresses of the recipients to whom the email is sent.
Show Source
Nested Schema : emailAddresses
Type: array
The email addresses of the recipients to whom the email is sent.
Show Source
Back to Top

Examples

Use POST with the following syntax to create a new incident response object:

https://your_site_interface/services/rest/connect/version/incidentResponse

Request URI example

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

Request body example

{
    "incident": {
        "id": 152,
        "subject": "Sample incident",
        "threads": [
        {
            "text": "Sample thread",
            "channel": {
                "id": 9
            },
            "entryType": {
                "id": 2
            }
        }
        ]
    },
     "fileAttachments": [
        {

            "fileName":"myfile.txt",
                  "data":"d2FtcGxlIGNvbnRlbnQgZm9yIGZpbCUgYXR0YWNobWVudB=="
        }
        ],
     "useEmailSignature" : true
}

Note:

The Email channel (channel id = 9) is the only channel that supports file attachments.

If the thread and fileAttachment are in the request payload and the channel id on the thread is set to 9, then the fileAttachment is added to the record. If channel id is anything other than 9, then the fileAttachment is not added to the record.

Response body example

The status 200 OK is returned. A new incident is created and an email response is sent to the primary contact.

{
    "incident": {
        "id": 91,
        "lookupName": "180417-000000"
    },
    "links": [
        {
            "rel": "self",
            "href": "https://mysite.example.com/services/rest/connect/v1.4/incidentResponse"
        },
        {
            "rel": "canonical",
            "href": "https://mysite.example.com/services/rest/connect/v1.4/incidentResponse"
        },
        {
            "rel": "describedby",
            "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/incidentResponse",
            "mediaType": "application/schema+json"
        }
    ]
}
Back to Top