To update a language variable, send a PUT request to the endpoint with the language ID and language variable name in the URL.
There are two ways to update a language variable:
PUT /api/languages/1/langvars/test_variable/
Or with language code instead of ID:
PUT /api/langvars/test_variable/?sl=en
Include the new value for the language variable in the HTTP request body according to the specified Content-Type.
{
"value": "This is the changed text of the language variable."
}
{
"name": "test_variable"
}
| Status Code | Description |
|---|---|
200 OK |
Language variable was updated (or created) successfully |
400 Bad Request |
Invalid request parameters |