PUT - Update/Replace Resource in HTTP

From the HTTP Methods cheat sheet ยท CRUD Methods ยท verified Jul 2026

PUT - Update/Replace Resource

javascript
// PUT request
fetch('/api/users/123', {
  method: 'PUT',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify(completeData)
})

// Properties
- Safe: No
- Idempotent: Yes
- Cacheable: No
- Body: Yes
๐Ÿ”„ Replaces entire resource
โœ… Idempotent - same request produces same result
๐Ÿ“ Requires complete resource representation

More HTTP tasks

Back to the full HTTP Methods cheat sheet