Create a new item
POST/items
Creates a new item.
Request
- application/json
Bodyrequired
required
name string
Example:
New Item
description string
Example:
Description of the new item
Responses
- 201
- 400
Item created successfully.
- application/json
- Schema
- Example (from schema)
Schema
id integer
Example:
2
name string
Example:
New Item
description string
Example:
Description of the new item
{
"id": 2,
"name": "New Item",
"description": "Description of the new item"
}
Bad request. Missing required fields or invalid input.