I am sending a Patch API Request to Salesforce to update one of the accounts in the Org, through postman. the endpoint to which I am sending the request looks like below.


And the request looks like below.

    "Website" : "www.testcodeinc.com"

The website value is getting updated to the value that I am sending in the request, but I am not receiving any response from Salesforce at all. Instead, I am receiving the response code of 204.

To cross verify, I even checked in another API platform named Insomnia by sending the same request, but I am receiving the same response code even there without any response body.

Can someone please let me know if I Should be doing any changes at the salesforce end to receive the response after the update was successful? Thanks in advance.

1 Answer 1


A successful update is a 204 response. That status code means "your operation was successful, and there is no response body." If there were an error, you'd get a 4xx or 5xx status code with a response describing the error. If you want a fresh copy of the data, you will need to retrieve it somehow, such as using a GET call, or using a composite REST resource to patch and retrieve in one call.

  • Thank you for your response. Is this normal behavior? Does the Patch API call will never return any response body back to the endpoint, and it's always 204? Commented Sep 17, 2021 at 12:55
  • @AkshayVasu Yes, feel free to read the documentation. Example response body for updating fields in an Account object / none returned
    – sfdcfox
    Commented Sep 17, 2021 at 13:22
  • Sure, Thank you. Commented Sep 21, 2021 at 7:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .