Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Sourabh Shende
    Muliple incidents in REST API request.
    Topic posted September 27, 2016 by Sourabh Shende, tagged REST 
    127 Views
    Title:
    Muliple incidents in REST API request.
    Content:

    Hii,

    I am trying to creates more than one Incidents records in service cloud using REST API. I have formed the JSON structure as follows.

    [
        {
        "primaryContact":
            {
            "id": 1201
            },
        "subject": "FishPhone not working 10"
        },
        
        {
        "primaryContact":
            {
            "id": 1201
            },
        "subject": "FishPhone not working 11"
        }
    ]

     

    But it is not allowing me and throwing the following error.

    {
      "type": "https:/xxxxxxxx.com/services/rest/connect/exceptions/OSC-CREST-00013",
      "title": "Unrecognized resource",
      "status": 400,
      "detail": "Invalid property specified: incident",
      "instance": "https://xxxxxxxxxx.com/services/rest/connect/v1.3/incidents",
      "o:errorCode": "OSC-CREST-00013"
    }

    Please let me know if there is any way to create multiple objects using json in REST services.

    Help will be much appreciated. 

    Thanks,

    Sourabh 

     

    Version:
    Nov-2015