| Requires any of the roles: | Admin, ApiUser |
| POST | /contenuti/{ContenutoId}/traduzioni |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContenutoId | path | int | Yes | L'ID numerico del contenuto da tradurre |
| Traduzioni | body | List<TraduzioneEntry> | Yes | Elenco delle traduzioni da applicare (upsert) |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CodiceLingua | form | string | Yes | Codice ISO della lingua (es. IT, EN) |
| Tipo | form | string | Yes | Tipo di contenuto. Accetta il valore numerico o il nome (es: 1 o 'PlainText', 2 o 'HtmlText') |
| Testo | form | string | Yes | Il testo tradotto vero e proprio |
| IsVisibile | form | bool | No | Definisce se questa specifica traduzione รจ pubblicata o meno |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /contenuti/{ContenutoId}/traduzioni HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
contenutoId: 0,
traduzioni:
[
{
codiceLingua: String,
tipo: String,
testo: String,
isVisibile: False
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
testo: String,
isVisibile: False,
chiave: String,
contenutoId: 0,
linguaId: 0,
tipo: Unknown,
tipoId: 0,
codiceLingua: String
}
]