Hello! I'm Ankit Verma, tech enthusiast, currently, I am working as a Software Engineer at Upstox. I love coding and have a great interest in application development.
You should use PUT if you wish to update a resource entirely, like a User. I.e.: Update the whole user object. If you just want to update the username or the password you should use PATH.
Is this clear?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you explain the difference between PUT and PATCH! As both modify the resource, what's the exact difference?
Sure!
You should use PUT if you wish to update a resource entirely, like a User. I.e.: Update the whole user object. If you just want to update the username or the password you should use PATH.
Is this clear?