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

Value for the Authorization header parameter.

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"