GET, POST, PUT, and DELETE are the four HTTP methods most often used to implement CRUD operations, read, create, update, and delete, in a REST API. RFC 9110, the current HTTP Semantics specification, formally defines eight standard request methods, and these four cover the basic operations a REST client performs against a resource.
What does each method do?
| Method | Purpose | Idempotent? |
|---|---|---|
| GET | Retrieve a representation of a resource without changing server state | Yes |
| POST | Create a new resource or trigger a server-side process | No |
| PUT | Replace a resource entirely with the payload sent in the request | Yes |
| DELETE | Remove the specified resource | Yes |
What does idempotency mean for how you use them?
Idempotent means sending the same request multiple times produces the same server state as sending it once. A client can safely retry a GET, PUT, or DELETE call after a network timeout without worrying about duplicate side effects. POST carries no such guarantee: resending a POST that creates an order or charges a card can create a second order or a second charge, which is why retry logic and idempotency keys are built specifically around POST endpoints.
Where does PATCH fit into this?
"Four main methods" is a simplification. HTTP also defines PATCH, specified separately in RFC 5789, for partial updates: a PATCH request sends only the fields that changed instead of the full resource representation that PUT requires. Unlike PUT, PATCH is not guaranteed idempotent, since a partial operation such as incrementing a counter produces a different result each time it repeats.
What status codes typically pair with each method?
A successful POST that creates a resource commonly returns 201 Created along with a Location header pointing to the new resource. GET, PUT, and DELETE typically return 200 OK or 204 No Content when there is no response body to send. A request that uses a method the server does not support on that route returns 405 Method Not Allowed, and GET is the only one of the four also classified as "safe" under the HTTP spec, meaning it is not expected to change server state at all.
Updated: 2026-07-20
Related REST API Questions And Answers
- What is a REST API used for?
- Will AI replace REST API developers?
- What is the best technology to build a REST API?
- Is a REST API considered front-end or back-end?
- REST vs GraphQL: which is better for frontend-driven apps?
- REST vs gRPC: which is better for microservices?
- REST vs SOAP: when does SOAP still win?
- REST API in Python web development: what it is and how it works
- Is a REST API a web development framework or an API design style?
- REST vs SOAP: differences in web services and integration
- What makes a REST API different from a standard API?
- Four core principles of REST API architecture explained
- Is REST API a front-end or back-end technology?
- What tech stack works best when building REST APIs for products?
- Will AI replace REST API developers in 2026?
Hire trusted REST API devs from Ukraine & Europe in 48h
Skip the hiring headaches and get trusted REST API developers who deliver results. Cortance has helped startups scale to million-dollar success stories.
Find your perfect REST API tech match
Yurii is a Frontend Developer specializing in React with 5 years of experience in building dynamic web applications. His expertise lies in JavaScript and React.js, complemented by a solid understanding of Next.js and Sass. He... Read More
Emily focuses on building secure Node.js server-side systems for payment and analytics-heavy products. A Middle NodeJS Backend Developer with about 3 years of commercial practice, she delivers typed code in TypeScript and kee... Read More
Serhii focuses on developing high-quality iOS applications, specializing in Swift and SwiftUI with over 12 years of experience in mobile development. His work emphasizes creating user-centric interfaces and crafting seamless ... Read More
Victoriia is a skilled Flutter Developer with 4 years of experience in mobile application development. She specializes in frameworks such as Flutter, leveraging JavaScript, DART, and utilizes databases like MySQL and Firebase... Read More
Cortance helped the end client's site see significant improvements in Core Web Vitals scores and page speed tests. The team was quick to respond to questions and requests and always checked in to ensure the work was progressing well. Their communication and pricing were transparent.
Cortance delivered a functional, stable system on time, receiving positive feedback from the end client. The team was responsive to feedback and quickly resolved issues, communicating via virtual meetings, emails, and messaging apps. Their proactive approach impressed the client.
Thinking about how to expand a tech team flexibly to adapt to different working paces?
Accelerate development, meet launch deadlines with flexible, much-needed capacity. Add new skills your team currently lacks.
Questions About Specialized Skills










