curl -X POST \
/units \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"translations": []
}'
{
"id": {},
"name": "Stück",
"translations": {},
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Create a unit. Units will be used to define the unit of measure for products or invoice positions.
Required permissions:unit:write
curl -X POST \
/units \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"translations": []
}'
{
"id": {},
"name": "Stück",
"translations": {},
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Value for the Authorization header parameter.
The new Unit resource
Unit resource created
Was this page helpful?