Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Haakon Lotveit
    Adding a message to incident threads using the REST API...Answered
    Topic posted August 3, 2018 by Haakon Lotveit, last edited August 3, 2018, tagged REST 
    261 Views, 2 Comments
    Title:
    Adding a message to incident threads using the REST API (v1.3)
    Content:

    I am talking to RightNow using REST. I have an incident, and I need to add a new message to the incident.

    While I have searched for answers I have not found anything.

    I have tried to post to {rightnow-base-url}/services/rest/connect/v1.3/incidents/{incident-id}/threads, put to the same, and a put {rightnow-base-url}/services/rest/connect/v1.3/incidents/{incident-id} but it didn't work.

    Does anyone have any tips? Or even better a link to some docs that describe it?

    Version:
    Using version 1.3 of the REST API of RightNow/Service Cloud

    Best Comment

    Geetha Amrutha

    Hi Haakon,

    Try this.

    Make a POST request at {rightnow-base-url}/services/rest/connect/v1.3/incidents/{incident-id}

    Use [{"key":"X-HTTP-Method-Override","value":"PATCH","description":""}] in the headers

    In the Body, include threads key and its values.

    {
    "threads": {
        "channel": {
            "id": 9
        },
        "contentType": {
            "id": 1
        },
        "entryType": {
            "id": 2
        },
        "text": "test from Postman"
    }
    }
     
    Hope this helps.
     
    Thanks,
    Geetha

    Comment

     

    • Geetha Amrutha

      Hi Haakon,

      Try this.

      Make a POST request at {rightnow-base-url}/services/rest/connect/v1.3/incidents/{incident-id}

      Use [{"key":"X-HTTP-Method-Override","value":"PATCH","description":""}] in the headers

      In the Body, include threads key and its values.

      {
      "threads": {
          "channel": {
              "id": 9
          },
          "contentType": {
              "id": 1
          },
          "entryType": {
              "id": 2
          },
          "text": "test from Postman"
      }
      }
       
      Hope this helps.
       
      Thanks,
      Geetha
    • Haakon Lotveit
      Geetha Amrutha said:

      Hi Haakon,

      Try this.

      Make a POST request at {rightnow-base-url}/services/rest/connect/v1.3/incidents/{incident-id}

      Use [{"key":"X-HTTP-Method-Override","value":"PATCH","description":""}] in the headers

      In the Body, include threads key and its values.

      {
      "threads": {
          "channel": {
              "id": 9
          },
          "contentType": {
              "id": 1
          },
          "entryType": {
              "id": 2
          },
          "text": "test from Postman"
      }
      }
       
      Hope this helps.
       
      Thanks,
      Geetha
      View original

      Thanks, this worked perfectly!