Create item
POST
http://82.180.154.188:4352/items
Last modified:2025-04-10 12:16:17
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://82.180.154.188:4352/items' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Item name1",
"priceWashAndIron": 12.5,
"priceIronOnly": 4,
"priceDryClean": 0.5
}'
Response Response Example
{
"status": "success",
"message": "Item created successfully!",
"data": {
"item": {
"_id": "67f7b4c1de01e283008be2b6",
"name": "Item name1",
"priceWashAndIron": 12.5,
"priceIronOnly": 4,
"priceDryClean": 0.5
}
}
}
Request
Header Params
Authorization
string
optional
Example:
Bearer {{JWT}}
Body Params application/json