Open Inventory / Docs
EndpunkteContent translationsLanguages

Add a content language

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.

POST
/languages

Requires an administrator browser session. The first language becomes the canonical default.

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

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
code*string
Länge2 <= length <= 35
label*string
Länge1 <= length <= 120
isDefault?boolean
Standardfalse
autoTranslate?boolean
Standardtrue
instructions?string
Längelength <= 5000
position?integer
Bereich0 <= value <= 100000

Antwortinhalt

Language added

Beispielanfrage
curl -X POST 'https://inventory.example.com/api/v1/languages' \  -H 'Content-Type: application/json' \  -d '{  "code": "de",  "label": "German"}'
Beispielantwort
Leer