Store Product Category
Store Product Category
application/json
Request Body required
The body to store product category
name string required
Possible values: <= 255 characters
min_temperature number
max_temperature number
Responses
- 200
- 400
- 401
OK
application/json
Schema
Example (from schema)
Schema
data object
{
"data": {
"id": "string"
}
}
Bad Request
application/json
Schema
Example (from schema)
Schema
errors
errors_v2 object
message string
{
"errors": {},
"errors_v2": {
"formatted": {},
"issues": [
{
"code": "string",
"expected": {},
"message": "string",
"path": [
"string"
],
"received": {}
}
]
},
"message": "string"
}
Unauthorized
POST /product-category
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
python / requests
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
go / native
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
nodejs / axios
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
ruby / Net::HTTP
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
csharp / RestSharp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
php / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
java / OkHttp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'
powershell / RestMethod
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/product-category' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"min_temperature": 0,
"max_temperature": 0
}'