IRPCLanguagesAdmin.AddLanguage
Administration API / specialized admin session
Adds a language to the vault.
| Service | Language administration MFiles.IRPCLanguagesAdmin |
|---|---|
| gRPC method | /MFiles.IRPCLanguagesAdmin/AddLanguage |
| HTTP (mf-http-grpc) | POST /grpc/v1/add-language |
| Request | AddLanguageRequest |
| Response | AddLanguageResponse |
| Book and level | Administration API, specialized |
| Kind | admin |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | no |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- Requires the vault rights
change_metadata_structureandlicense_allows_modifications, and a server license that includes the languages feature. - The server assigns the ID; the value you send is ignored.
Request: AddLanguageRequest
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
lang | Language | The new language: name and language_code (for example fi). id is ignored. |
lang.id | int32 | Language ID. |
lang.name | string | The name of the language. |
lang.language_code | string | Language indentifier, e.g. the ISO 639-1 or ISO 639-2 language code such as "en" or "eng". |
Response: AddLanguageResponse
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
id | int32 | The ID of the new language. |