Projects
Create a project
Create a new project in the given account.
When source_project_id is supplied, the new project is created as a clone of that project. All locales, keys, and translations are copied asynchronously after the response is returned, so they may not be available immediately. Settings from the source project are inherited unless explicitly overridden in the request; in clone mode, the shares_translation_memory field is ignored and inherited from the source.
shares_translation_memory defaults to true when omitted on a non-clone create.
post/projects
Request
- Base URLhttps://eu.phrase.com/control-hub
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"name": "My Android Project",
"main_format": "yml",
"media": "Python",
"shares_translation_memory": true,
"project_image": "/path/to/my/project-screenshot.png",
"account_id": "abcd1234",
"point_of_contact": "abcd1234",
"source_project_id": "abcd1234",
"workflow": "review",
"machine_translation_enabled": true,
"enable_branching": true,
"protect_master_branch": true,
"enable_all_data_type_translation_keys_for_translators": true,
"enable_icu_message_format": true,
"zero_plural_form_enabled": true,
"autotranslate_enabled": true,
"autotranslate_check_new_translation_keys": true,
"autotranslate_check_new_uploads": true,
"autotranslate_check_new_locales": true,
"autotranslate_mark_as_unverified": true,
"autotranslate_use_machine_translation": true,
"autotranslate_use_translation_memory": true,
"autotranslate_overwrite_unverified_translations": true,
"smart_suggest_enabled": true,
"smart_suggest_use_glossary": true,
"smart_suggest_use_machine_translation": true,
"translation_keys_sort_collation": "unicode_ci",
"default_encoding": "UTF-8",
"cldr_version": "cldr48",
"placeholder_styles": [
"angular",
"iOS"
]
}Response
Created
Example response
{
"slug": "my-android-project",
"shares_translation_memory": true,
"machine_translation_enabled": true,
"zero_plural_form_enabled": true,
"enable_all_data_type_translation_keys_for_translators": false,
"enable_icu_message_format": false,
"enable_branching": false,
"protect_master_branch": false,
"autotranslate_enabled": false,
"autotranslate_check_new_translation_keys": false,
"autotranslate_check_new_uploads": false,
"autotranslate_check_new_locales": false,
"autotranslate_mark_as_unverified": false,
"autotranslate_use_machine_translation": false,
"autotranslate_use_translation_memory": true,
"autotranslate_overwrite_unverified_translations": false,
"autocomplete_job_enabled": false,
"default_encoding": "UTF-8",
"cldr_version": "legacy",
"job_locking_enabled": false,
"placeholder_styles": [
"angular",
"iOS"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.