Uploads
Upload a new file
Upload a new language file. Creates necessary resources in your project.
Note: be aware of upload limits.
post/projects/{project_id}/uploads
Request
- Base URLhttps://eu.phrase.com/control-hub
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
project_idstring required
Project ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body multipart/form-data
Example request
{
"branch": "my-feature-branch",
"file": "/path/to/my/file.json",
"file_format": "json",
"locale_id": "abcd1234cdef1234abcd1234cdef1234",
"tags": "awesome-feature,needs-proofreading",
"update_translations": true,
"update_custom_metadata": true,
"update_translation_keys": true,
"update_translations_on_source_match": true,
"source_locale_id": "abcd1234cdef1234abcd1234cdef1234",
"update_descriptions": true,
"convert_emoji": true,
"skip_upload_tags": true,
"skip_unverification": true,
"file_encoding": "UTF-8",
"autotranslate": true,
"verify_mentioned_translations": true,
"mark_reviewed": true,
"tag_only_affected_keys": true,
"translation_key_prefix": "prefix_"
}Response
Created
Example response
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"filename": "example.json",
"format": "json",
"state": "success",
"tag": "tag",
"summary": {
"locales_created": 2,
"translation_keys_created": 162,
"translation_keys_updated": 10,
"translation_keys_unmentioned": 0,
"translations_created": 291,
"translations_updated": 3,
"tags_created": 2,
"translation_keys_ignored": 0
},
"user": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "johndoe",
"name": "John Doe",
"gravatar_uid": "205e460b479e2e5b48aec07710c08d50"
},
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.