PUT/v2/projects/{projectId}/import/apply

Apply prepared import data

Applies data prepared in a previous import step to a project. Use forceMode to choose how to handle translations with unresolved conflicts, and optionally set branch to select the target branch. The default conflict mode is NO_FORCE.

3 parameters
projectIdintegerrequired
The integer identifier of the project to apply the prepared import to.
forceModestringoptional
How to handle translations with unresolved conflicts: `OVERRIDE`, `KEEP`, or `NO_FORCE`. Defaults to `NO_FORCE` when omitted.
Allowed:OVERRIDEKEEPNO_FORCEDefault:NO_FORCE
branchstringoptional
The branch to apply the prepared import to. Omit to use the default branch.

5 status codes
200Confirms that the prepared import data was applied.
400Returned when the request is invalid, including when `forceMode` is not an accepted value.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when authentication is missing or invalid.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user lacks permission to apply the import.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the project or prepared import data cannot be found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when the request is invalid. A 401 is returned when authentication is missing or invalid. A 403 is returned when the authenticated user lacks permission to apply the import, and a 404 is returned when the project or prepared import data cannot be found. forceMode must be OVERRIDE, KEEP, or NO_FORCE and defaults to NO_FORCE when omitted. The projectId path parameter must identify the project.