POST
/
units
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"
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Body

The new Unit resource
translations
object

Response

201
application/json
Unit resource created
id
object
name
string
translations
object
createdAt
string

The date and time when the resource was created.

updatedAt
string

The date and time when the resource was last updated.