# fastapi.exceptions.RequestValidationError: [{'type': 'missing', 'loc': ['body'], 'msg': 'Field required', 'input': None}]

- **ID:** `python/fastapi-missing-body`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The request body is required but was not sent. This often happens when a POST request is sent without a body or with wrong Content-Type.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Send a valid JSON body with required fields** (95% success)
   ```
   curl -X POST http://localhost:8000/items -H 'Content-Type: application/json' -d '{"name": "item"}'
   ```
2. **Make the body optional in the endpoint** (90% success)
   ```
   from fastapi import Body
@app.post('/items')
def create_item(data: dict = Body(None)):
    return data
   ```

## Dead Ends

- **Setting Content-Type to text/plain** — FastAPI expects JSON by default. (80% fail)
- **Sending an empty body** — Empty body is still missing required fields. (90% fail)
