POST - Create Resource in HTTP

From the HTTP Methods cheat sheet · CRUD Methods · verified Jul 2026

POST - Create Resource

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

// Properties
- Safe: No
- Idempotent: No
- Cacheable: No*
- Body: Yes
🆕 Creates new resources
⚠️ Not idempotent - multiple calls create multiple resources
📍 Should return 201 with Location header

More HTTP tasks

Back to the full HTTP Methods cheat sheet