Layer7 API Management

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

    Posted May 09, 2018 07:25 AM

    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?



  • 2.  Re: Can we update the record in LAC without sending metadata{checksum}?
    Best Answer

    Broadcom Employee
    Posted Jun 12, 2018 09:54 AM

    This can be accomplished by adding checksum=override’ to the PUT request:

     

    PUT - CA Live API Creator - 3.1 - CA Technologies Documentation 

     


    Regards,

    Joe