insertMultiple Import Set REST API

dvb
Tera Contributor

api/now/import/{stagingTableName}/insertMultiple

 

I get an error when trying to post to insertMultiple with compression.  It works fine without compression but larger payloads are taking longer to send.  I set the header "Content-Encoding" to "gzip". with "Content-Type" to "application/json".  This is the error I received:

 

{
    "error": {
        "message": "Error in processing the message",
        "detail": "Unexpected char 65,533 at (line no=1, column no=1, offset=0)"
    },
    "status": "failure"
}
 
 
My request body before compression is in the correct format:
{
   "records":[
      { "<column_name1>":"<value>", "<column_name2>":"<value>" },
      { "<column_name1>":"<value>", "<column_name2>":"<value>" }
   ]
}
 
I was able to get compression working for single records on the import set API but not insertMultiple.  Is there something I am missing?  
0 REPLIES 0