Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Muliple incidents in REST API request.

$
0
0

Topic by Sourabh Shende

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

Viewing all articles
Browse latest Browse all 2504

Trending Articles