A developer is designing an API endpoint for updating user profiles where partial update is expected. Which HTTP method should be used?

  • PATCH
  • POST
  • PUT
  • UPDATE
When a partial update is expected in an API endpoint, the appropriate HTTP method to use is PATCH. PATCH is designed to apply partial modifications to a resource, making it suitable for updating specific fields in a user profile without affecting the entire resource.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *