Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:36:58+00:00 2026-06-08T05:36:58+00:00

Possible Duplicate: PUT vs POST in REST I know this has been discussed a

  • 0

Possible Duplicate:
PUT vs POST in REST

I know this has been discussed a lot and although I kind of get it, I don’t completely get it. I think if someone could answer this in relation to the following example it would make it easy to understand.

Create new user – add a new user to a database sending Username, Password, Email. PUT or POST?

I think maybe PUT as I don’t want to have duplicate users and PUT is like deleting and replacing. However, I have checks that avoid a user being added twice so maybe I should use POST?

Update user – change email or password. PUT or POST?

I could use URI api/update/my_username and then send new email via the body so should this be PUT? I could also send it all in the URI e.g. api/update/my_username/email/new_email@email.com

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:37:00+00:00Added an answer on June 8, 2026 at 5:37 am

    Create – POST, update – PUT, delete – DELETE.

    For better understanding of HTTP Verbs usage look at RFC
    https://www.rfc-editor.org/rfc/rfc2616

    Also PUT request can create entities but then response code should be 201 created instead 200 OK and 204 No Content. But it’s up to you either allow/implement such behaviour or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP detecting request type (GET, POST, PUT or DELETE) This should be
Possible Duplicate: javascript WYSIWYG HTML editors? Im not quite sure how to put this
Possible Duplicate: setTimeout and “this” in JavaScript I am trying to put a timeout
Possible Duplicate: How to put labels over geom_bar in R with ggplot2 I've been
Possible Duplicate: How to put this code in v3 instead v2 map I have
Possible Duplicate: Can I write native iPhone apps using Python this post Can I
Possible Duplicate: How can I get device ID for Admob My activity has a
Possible Duplicate: Hide facebook app from search Okay, I know that this question was
Possible Duplicate: Where and why do I have to put the “template” and “typename”
Possible Duplicate: How many Python classes should I put in one file? Coming from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.