Updates an existing language translation.
Accepted content-types: * multipart/form-data * application/octet-stream
Example multipart/form-data request:
{
"id" : 134,
"language_translation" : {
"description" : "custom description",
"file_input" : file attachment
}
}
NOTE: The filename will be extracted from the attached file and must be a valid .ini file.
Example application/octet-stream request:
{
"id" : 134,
"language_translation":{
"name" : "CustomLanguage.ini"
"description" : "custom description"
}
}
NOTE: The file to upload will be extracted from the raw POST request.
An example successful response:
{
"status": "success",
"message": "success",
"result": {
"id"=>134,
"name"=>"CustomLanguage.ini",
"description"=>"custom description",
"checksum"=>1583191961,
"created_at"=>Mon, 02 Mar 2020 23:32:41 UTC +00:00,
"updated_at"=>Mon, 02 Mar 2020 23:32:41 UTC +00:00
}
}
Param name | Description |
---|---|
id required |
The Language Translation ID Validations:
|
language_translation["description"] required |
The description of the language file Validations:
|
language_translation["file_input"] optional |
The file to upload when using multipart/form-data content type. Validations:
|