Upload resource file
lingohub_upload_resource_fileWRITE: upload one text resource file (JSON, properties, XLIFF, PO, ...) into a project. The language comes from the file name or from language. The import flags decide whether existing segments are changed or deactivated: with updating or deactivation on, translations already in Lingohub can be overwritten or switched off, so state the flags you want. Never retried. POST .../projects/{project_url}/resources.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder the file is uploaded to; set it when the file name collides with another file (HTTP 406). | |
| branch | No | Project branch name. Default: the project's default branch. An unknown branch is HTTP 422. | |
| content | Yes | The file text (UTF-8), up to 1000000 characters. | |
| language | No | Locale of this file (overrides the locale in the file name), e.g. de. | |
| file_name | Yes | File name with extension, e.g. en.json. | |
| project_url | Yes | Project URL slug (e.g. "feature-demo"); list_projects returns it as project_url. | |
| workspace_url | Yes | Workspace URL slug (e.g. "lingohub-demo"); list_projects returns it as workspace_url. | |
| source_create_new | No | If this is a source-language file: create new segments. | |
| target_create_new | No | If this is a target-language file: create new segments. | |
| source_update_existing | No | If this is a source-language file: update changed segments. | |
| target_update_existing | No | If this is a target-language file: update changed translations (overwrites existing ones). | |
| source_deactivate_missing | No | If this is a source-language file: deactivate segments missing from the file. | |
| target_deactivate_missing | No | If this is a target-language file: deactivate segments missing from the file. |