Rest API - HTTP Methods
Identify the error in this POST request code snippet:
fetch('https://api.example.com/data', {
method: 'POST',
body: { name: 'test' }
})