Skip to content
IT glossary
BackendUpdated December 3, 2026

CRUD

Most apps need four basic ways to work with stored data: create it, read it, update it, and delete it. Together, these operations are called CRUD.

Also known as: Create Read Update Delete

What CRUD means

In a notes app, saving a new note is Create, opening it or listing your notes is Read, editing its title is Update, and removing it is Delete. CRUD is shorthand for these four operations. It describes what you do with the data, not how the app stores it or what the interface looks like.

How it works on the backend

A relational database typically uses INSERT, SELECT, UPDATE, and DELETE for these operations. An HTTP API expresses them through methods and resource URLs instead. For example, when the client sends POST /notes, the backend checks that the caller is allowed to create a note, validates the input, and saves the record. The client doesn't need to know whether that record lives in PostgreSQL or somewhere else.

Example: a notes API

Operation Request Typical result
Create POST /notes Save a note and return 201 Created
Read GET /notes/42 Return note 42, or 404 Not Found if it doesn't exist
Update PATCH /notes/42 Change the supplied fields, such as the title, and leave the others alone
Delete DELETE /notes/42 Remove the note from the API; a successful response may be 204 No Content

Reading isn't limited to one record. GET /notes reads a collection, often with pagination so the server doesn't have to return every note at once.

Where CRUD fits—and where it doesn't

CRUD is a natural fit for admin tools and apps that mostly manage records. That doesn't mean every resource needs all four operations. An audit log might allow entries to be added and read but never edited. And deleting a record from the user's view doesn't always mean erasing it from storage: with a soft delete, the backend marks the record as deleted and filters it out of ordinary reads.

CRUD isn't the same thing as REST. CRUD names operations on data; REST is an architectural style. CRUD also doesn't capture every business action. Canceling an order, for instance, can involve checking whether it's eligible for cancellation, releasing inventory, and initiating a refund. Treating that action as an unrestricted edit to a status field would hide rules the server needs to enforce.

How it comes up in interviews

If an interviewer asks you to design a CRUD API, sketch the resource URLs and explain who can perform each operation, what input is valid, and how the API handles a missing record. Be ready to explain that PUT normally supplies a replacement representation, while PATCH describes a partial change. A useful follow-up is whether different responses make DELETE non-idempotent: the first request might return 204 and a retry might return 404, but the intended effect is the same—the resource is gone.