AnsweredAssumed Answered

Update is not working in bulk rest api

Question asked by Sagar Patil on Aug 20, 2015
Latest reply on Apr 12, 2018 by Giovanni Marazzi
Hello Members,
    

I am using bulk method for insert and update records in one  shot.

   

URL:

   

http://192.168.56.69/rest/v10/bulk

   

when I use only insertion in bulk method is  working fine see below code:

   

{

   

   "requests": [

   

    {

   

      "url":  "/v10/Opportunities",

   

       "method": "POST",

   

       "data": "{\"description\":  \"test123\",\"hn_payback_bundle\":1}"

   

    },

   

    {

   

      "url":  "/v10/Opportunities",

   

       "method": "POST",

   

       "data": "{\"description\":  \"test123\",\"hn_payback_bundle\":1}"

   

    }     

   

  ]

   

}

   

Issue is when I trying to insert or update record in one  shot that time update is not working but insert is working properly

   

see below code which is having issue.

   

{

   

   "requests": [

   

    {

   

      "url":  "/v10/Opportunities",

   

       "method": "PUT",

   

      "data":  "{\"id\":  \"e37647c5-f1ac-4f0f-7746-55d5b3e9f250\",\"description\":  \"test123\",\"hn_payback_bundle\":1}"

   

    },

   

    {

   

      "url":  "/v10/Opportunities",

   

       "method": "POST",

   

       "data": "{\"description\":  \"test123\",\"hn_payback_bundle\":1}"

   

    }   

   

  ]

   

}


   

Can anyone please assist me? please see attached screenshot. Thanks in advance.

Regards,

Sagar 

Outcomes