Mautic rest APIs

i am using mautic apis but the one to edit the contact does not work, and when sending PUT request it erase all data .if anyone could help, would be happy thx

I’m using the REST API to edit contacts using the PATCH /api/contacts/{mauticId}/edit endpoint. PUT is used in HTTP to send a full object, if you want to edit only some fields (usually is what we want since there are so many fields) use PATCH instead