/records

POST
https://sample-api.d-velop.cloud
Stores multiple consumption records.
Parameters
Responses
202
Accepted the request to store records.
No content
400
Bad Request
Content
Media type: application/json
{
  "title": {
    "type": "string"
  }
}
401
Unauthorized
Content
Media type: application/json
{
  "title": {
    "type": "string"
  }
}
403
Forbidden
Content
Media type: application/json
{
  "title": {
    "type": "string"
  }
}
500
Internal Server Error
Content
Media type: application/json
{
  "title": {
    "type": "string"
  }
}
Show operation

Language

const options = {
  method: 'POST',
  headers: {accept: 'application/json', 'content-type': 'application/json'}
};

fetch('https://example.com/%7BbasePath%7D/records', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));