[{"data":1,"prerenderedAt":134},["ShallowReactive",2],{"term-p\u002Fput":3,"related-p\u002Fput":115},{"id":4,"title":5,"acronym":6,"body":7,"category":95,"description":96,"difficulty":97,"extension":98,"letter":16,"meta":99,"navigation":100,"path":101,"related":102,"seo":109,"sitemap":110,"stem":113,"subcategory":6,"__hash__":114},"terms\u002Fterms\u002Fp\u002Fput.md","PUT",null,{"type":8,"value":9,"toc":89},"minimark",[10,15,19,23,26,30,78,82,85],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"PUT replaces an entire resource with new data. It's like taking a whole document, throwing it away, and replacing it with a new version. You're not just changing a few fields — you're replacing the whole thing.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"PUT is an HTTP method that replaces the entire representation of a resource with the request body. It's idempotent — calling it multiple times with the same data produces the same result. Used for full updates, contrast with PATCH for partial updates.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","PUT \u002Fapi\u002Fusers\u002F42\n{\n  \"name\": \"Alice Updated\",\n  \"email\": \"new@example.com\",\n  \"role\": \"admin\"\n}\n","http","",[38,39,40,48,54,60,66,72],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"PUT \u002Fapi\u002Fusers\u002F42\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"{\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"  \"name\": \"Alice Updated\",\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"  \"email\": \"new@example.com\",\n",[41,67,69],{"class":43,"line":68},5,[41,70,71],{},"  \"role\": \"admin\"\n",[41,73,75],{"class":43,"line":74},6,[41,76,77],{},"}\n",[11,79,81],{"id":80},"when-youll-hear-this","When You'll Hear This",[16,83,84],{},"\"Use PUT to fully replace the user's profile data.\" \u002F \"PUT vs PATCH: PUT sends all fields, PATCH sends only changed fields.\"",[86,87,88],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":90},[91,92,93,94],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":80,"depth":50,"text":81},"backend","PUT replaces an entire resource with new data. It's like taking a whole document, throwing it away, and replacing it with a new version.","beginner","md",{},true,"\u002Fterms\u002Fp\u002Fput",[103,104,105,106,107,108],"GET","POST","PATCH","DELETE","CRUD","REST",{"title":5,"description":96},{"changefreq":111,"priority":112},"weekly",0.7,"terms\u002Fp\u002Fput","t_gcKCbWchvinDtjRDC2HeT_r-1bEnsY2_lZaoCJ-xA",[116,121,124,127,130],{"title":107,"path":117,"acronym":118,"category":119,"difficulty":97,"description":120},"\u002Fterms\u002Fc\u002Fcrud","Create, Read, Update, Delete","database","CRUD is the four things you can do to data: Create it, Read it, Update it, Delete it. Literally every app ever made is just CRUD in a trenchcoat.",{"title":106,"path":122,"acronym":6,"category":119,"difficulty":97,"description":123},"\u002Fterms\u002Fd\u002Fdelete","DELETE removes rows from a table. It is the 'Delete' in CRUD. Like UPDATE, you MUST use a WHERE clause — without it, you delete everything in the table.",{"title":103,"path":125,"acronym":6,"category":95,"difficulty":97,"description":126},"\u002Fterms\u002Fg\u002Fget","GET is the HTTP method for reading data. You're just asking 'can I see that?' — no changes, no side effects.",{"title":104,"path":128,"acronym":6,"category":95,"difficulty":97,"description":129},"\u002Fterms\u002Fp\u002Fpost","POST is the HTTP method for creating new things. When you submit a form, sign up, or upload a file — that's a POST.",{"title":108,"path":131,"acronym":132,"category":95,"difficulty":97,"description":133},"\u002Fterms\u002Fr\u002Frest","Representational State Transfer","REST is a set of rules for how APIs should behave. Think of it as the etiquette guide for servers and clients talking to each other.",1776518300354]