Store Unit Of Measurement
Store Unit Of Measurement
application/json
Request Body required
The body to store Unit Of Measurement
name string required
Possible values: <= 255 characters
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 /unit-of-measurement
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
python / requests
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
go / native
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
nodejs / axios
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
php / cURL
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
java / OkHttp
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://api.mceasy.com/order/api/web/v1/unit-of-measurement' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'