Open Inventory / Docs
EndpointsContent translationsLanguages

Add a content language

The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.

POST
/languages

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

Authorization

bearerAuth
headerAuthorizationBearer <inv_ token>

Header Parameters

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

Request Body

application/json
  1. body
code*string
Length2 <= length <= 35
label*string
Length1 <= length <= 120
isDefault?boolean
Defaultfalse
autoTranslate?boolean
Defaulttrue
instructions?string
Lengthlength <= 5000
position?integer
Range0 <= value <= 100000

Response Body

Language added

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