upsertUnitOfMeasure
WRITEUpsert unit of measure.
POST /api/v1/items/upsertUnitOfMeasure
curl -X POST '<your-host>/api/v1/items/upsertUnitOfMeasure' \
-H 'Authorization: Bearer <api-key>' \
-H 'Content-Type: application/json' \
-d '{
"code": "string",
"name": "string"
}'Response
{
"id": "string"
}Parameters
ParameterType
min length 1max length 10
min length 1max length 50
Input schema
schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 10
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"customFields": {},
"id": {
"type": "string"
}
},
"required": [
"code",
"name"
]
}