Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    keerthi P
    No JSON response sent back when performing an update methodAnswered
    Topic posted October 4, 2017 by keerthi PSilver Medal: 2,000+ Points 
    90 Views, 3 Comments
    Title:
    No JSON response sent back when performing an update method
    Content:

    Hi ALL,

    I'm trying to update a TASK object record using REST API. For updating the record I got around this by using a POST request and then adding the following header: X-HTTP-Method-Override: PATCH.

    After this above process able to update the record and getting response code as 200 but response payload is getting blank.

    Regards,

    shiva

    Version:
    v1.3
    Image:

    Best Comment

    Suresh Thirukoti

    I have seen this behavior in SOAP API as well....maybe its designed that way....We consider HTTP 200 status as successfully updated and sometimes use ROQL to show before and after scenarios.....Maybe Prod Dev team can throw some light on this behaviour

    ~Suresh

    Comment

     

    • Suresh Thirukoti

      I have seen this behavior in SOAP API as well....maybe its designed that way....We consider HTTP 200 status as successfully updated and sometimes use ROQL to show before and after scenarios.....Maybe Prod Dev team can throw some light on this behaviour

      ~Suresh

    • Peeyush Sharma

      As you are getting 200 OK status from API while using PATCH method that means it should have been updated the value . Now you could try using GET method and see if the updated field is actually updated or not.

      Regards,

      Peeyush

    • keerthi P

      Thanks Suresh for the answer. and Its a limitation.