Open Inventory / Docs
EndpunkteContent translationsResourcesIdTranslationsLanguagecode

Edit, approve, or unlock translated fields

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

PATCH
/resources/{id}/translations/{languageCode}

Requires write scope and the current locale-document revision. Human edits are protected from AI overwrite; accepting a suggestion keeps the field human-managed.

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

id*string
Formatuuid
languageCode*string
Längelength <= 35

Header-Parameter

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Anfrageinhalt

application/json
  1. body
expectedRevision*integer
Bereich0 <= value
operations*array<>
Einträge1 <= items <= 100

Antwortinhalt

Translation document updated

Beispielanfrage
curl -X PATCH 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/translations/string' \  -H 'Content-Type: application/json' \  -d '{  "expectedRevision": 0,  "operations": [    {      "action": "set",      "fieldKey": "string"    }  ]}'
Beispielantwort
Leer