Skip to main content
PUT
/
units
/
{id}
cURL
curl -X PUT \
 /units/{id} \
 --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.

Path Parameters

id
string
required

Unit identifier

Body

The updated Unit resource

translations
object

Response

Unit resource updated

id
object
name
string
Example:

"Stück"

translations
object
createdAt
string<date-time>

The date and time when the resource was created.

Example:

"2021-01-01T00:00:00+00:00"

updatedAt
string<date-time>

The date and time when the resource was last updated.

Example:

"2021-01-01T00:00:00+00:00"

I