Zum Hauptinhalt springen
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"
}

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

Unit identifier

Body

The updated Unit resource

translations
object

Antwort

Unit resource updated

id
object
name
string
Beispiel:

"Stück"

translations
object
createdAt
string<date-time>

The date and time when the resource was created.

Beispiel:

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

updatedAt
string<date-time>

The date and time when the resource was last updated.

Beispiel:

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