Create a new item
POST http://localhost:3002/items
A POST
to the /items
endpoint allows your application to create a new item. A successful response will return an item_id
, which can be saved as an environment variable to be used in subsequent requests.
Look under Examples to view an example response.
Request Body
[{"name"=>"name", "value"=>"kabocha", "datatype"=>"string"}, {"name"=>"price", "value"=>"0.89", "datatype"=>"string"}, {"name"=>"unit", "value"=>"lb", "datatype"=>"string"}, {"name"=>"currency", "value"=>"USD", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-type | string |
RESPONSES
status: Created
{"item_id":"304832","name":"kabocha","price":"0.89","unit":"lb","currency":"USD"}