Skip to main content
Question

Updating an existing employee

  • February 28, 2025
  • 3 replies
  • 37 views

Hi,

I was wondering if there was a way to update only specific data against an employee using the RestAPI.

I noticed that there is a PUT method on the Employee endpoint. The issue I have found is that if I do not pass all data in the PUT request, it clears the data out of Acumatica.

Ideally I would like it to only update the data I send in the PUT request and leave the rest alone.

 

Is this possible or am I doing something wrong?

3 replies

Nilkanth Dipak
Semi-Pro II
Forum|alt.badge.img+10

Hi ​@mattollie,

Could you please specify which fields you need to update? I have tried specifically for Notes for employees and looks it works by sending only notes value to Body.

Put - http://localhost/test/entity/Default/23.200.001/Employee

{
  "id": "610c3b2c-d87f-e411-beca-00b56d0561c2",

      "note": {
        "value": "Updated Note for EP00000001"
      }
}



Hope, it helps!


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 654 replies
  • February 28, 2025

@mattollie you should omit the fields you do not want to update. This way they’ll retain their values.


  • Author
  • Freshman I
  • 8 replies
  • March 3, 2025

Thanks for the replies, I will have another look at what I am posting. It is quite possible that I was sending null values for other fields. I remembered fields that weren’t even being included in my data being cleared, but I will double check.

 

If it happens in my test, I will provide the example I am using.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings