AnsweredAssumed Answered

Can we update the record in LAC without sending metadata{checksum}?

Question asked by rhythmarora on May 9, 2018
Latest reply on Jun 12, 2018 by dasjo02

I am trying to update a record in LAC using SYSFILTER. But whenever I send the request it throws me an error saying "checksum is required for all updates".

 

REQ 1: FAILED

PUT

https://hostname/main:table_name?sysfilter=equal(Field1:'value',Field2:'value')&auth=xyz:01

 

{

"xyz":"abc"

}

 

error: Checksum is required for all the updates

 

REQ 2: SUCCESS

GET

https://hostname/main:table_name?sysfilter=equal(Field1:'value',Field2:'value')&auth=xyz:01

 

PUT

https://hostname/main:table_name?auth=xyz:01

{

"xyz":"abc",

"@metadata":{

               "checksum":"A:6577765765756ffdf",

                 "links":[],

                  "href":"https://********************"

}

 

So does that mean if I have to update any record from the gateway, first I have to GET that record then send the metadata along with it to update the record?

Outcomes