Module crowdin_api.api_resources
Sub-modules
crowdin_api.api_resources.abstract
crowdin_api.api_resources.ai
crowdin_api.api_resources.application
crowdin_api.api_resources.bundles
crowdin_api.api_resources.dictionaries
crowdin_api.api_resources.distributions
crowdin_api.api_resources.enums
crowdin_api.api_resources.fields
crowdin_api.api_resources.glossaries
crowdin_api.api_resources.groups
crowdin_api.api_resources.labels
crowdin_api.api_resources.languages
crowdin_api.api_resources.machine_translation_engines
crowdin_api.api_resources.notifications
crowdin_api.api_resources.projects
crowdin_api.api_resources.reports
crowdin_api.api_resources.screenshots
crowdin_api.api_resources.security_logs
crowdin_api.api_resources.source_files
crowdin_api.api_resources.source_strings
crowdin_api.api_resources.storages
crowdin_api.api_resources.string_comments
crowdin_api.api_resources.string_translations
crowdin_api.api_resources.tasks
crowdin_api.api_resources.teams
crowdin_api.api_resources.translation_memory
crowdin_api.api_resources.translation_status
crowdin_api.api_resources.translations
crowdin_api.api_resources.users
crowdin_api.api_resources.vendors
crowdin_api.api_resources.webhooks
crowdin_api.api_resources.workflows
Classes
class AIResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for AI.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/AI
Ancestors
Methods
def add_ai_prompt(self, userId: int, request_data: AddAIPromptRequestScheme)
-
Add AI Prompt
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.prompts.post
def add_ai_provider(self, userId: int, request_data: AddAIProviderReqeustScheme)
-
Add AI Provider
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.post
def create_ai_proxy_chat_completion(self, userId: int, aiProviderId: int, request_data: Union[GoogleGeminiChatProxy, OtherChatProxy])
-
Create AI Proxy Chat Completion
This API method serves as an intermediary, forwarding your requests directly to the selected provider. Please refer to the documentation for the specific provider you use to determine the required payload format.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.chat.completions.post
def delete_ai_prompt(self, userId: int, aiPromptId: int)
-
Delete AI Prompt
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.prompts.delete
def delete_ai_provider(self, userId: int, aiProviderId: int)
-
Delete AI Provider
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.delete
def edit_ai_prompt(self, userId: int, aiPromptId: int, request_data: Iterable[EditAIPromptScheme])
-
Edit AI Prompt
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.prompts.patch
def edit_ai_provider(self, userId: int, aiProviderId: int, request_data: EditAIProviderRequestScheme)
-
Edit AI Provider
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.patch
def get_ai_path(self, userId: int, aiPromptId: Optional[int] = None)
def get_ai_prompt(self, userId: int, aiPromptId: int)
-
Get AI Prompt
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.prompts.get
def get_ai_provider(self, userId: int, aiProviderId: int)
-
Get AI Provider
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.get
def get_ai_provider_path(self, userId: int, aiProviderId: Optional[int] = None)
def list_ai_prompts(self, userId: int, projectId: Optional[int] = None, action: Optional[AIPromptAction] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List AI Prompts
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.ai.prompts.getMany
def list_ai_provider_models(self, userId: int, aiProviderId: int)
-
List AI Provider Models
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.ai.providers.models.getMany
def list_ai_providers(self, userId: int, limit: Optional[int] = None, offset: Optional[int] = None)
-
List AI Providers
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.ai.providers.getMany
class ApplicationResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Crowdin Apps are web applications that can be integrated with Crowdin to extend its functionality.
Use the API to manage the necessary app data.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Applications
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#tag/Applications
Ancestors
Methods
def add_application_data(self, applicationIdentifier: str, path: str, data: dict)
-
Add Application Data.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.api.post
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.applications.api.post
def delete_application_data(self, applicationIdentifier: str, path: str)
-
Delete Application Data.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.api.delete
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.applications.api.delete
def delete_application_installation(self, identifier: str, force: Optional[bool] = None)
-
Delete Applcation Installation
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.installations.delete
def edit_application_data(self, applicationIdentifier: str, path: str, data: dict)
-
Edit Application Data.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.api.patch
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.applications.api.patch
def edit_applicatoin_installation(self, identifier: str, data: Iterable[ApplicationInstallationPatchRequest])
-
Edit Application Installation
def get_application_data(self, applicationIdentifier: str, path: str)
-
Get Application Data.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.api.get
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.applications.api.get
def get_application_installation(self, identifier: str)
-
Get Application Installation
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.installations.get
def get_application_installations_path(self, identifier: Optional[str] = None)
def get_application_path(self, applicationIdentifier: str, path: str)
def install_application(self, url: str, permissions: Optional[ApplicationPermissions] = None)
-
Install Application
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.installations.post
def list_application_installations(self, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Application Installations
Link to documentaion: https://developer.crowdin.com/api/v2/#operation/api.applications.installations.getMany
def update_application_data(self, applicationIdentifier: str, path: str, data: dict)
-
Update or Restore Application Data.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.applications.api.put
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.applications.api.put
class BundlesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Bundles.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Bundles
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#tag/Bundles
Ancestors
Methods
def add_bundle(self, name: str, format: str, sourcePatterns: Iterable[str], exportPattern: str, projectId: Optional[int] = None, ignorePatterns: Optional[Iterable[str]] = None, isMultilingual: Optional[bool] = None, includeProjectSourceLanguage: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None)
-
Add Bundles.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.post
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.post
def check_bundle_export_status(self, bundleId: int, exportId: str, projectId: Optional[int] = None)
-
Check Bundle Export Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.exports.get
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.exports.get
def delete_bundle(self, bundleId: int, projectId: Optional[int] = None)
-
Delete Bundle.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.delete
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.delete
def download_bundle(self, bundleId: int, exportId: str, projectId: Optional[int] = None)
-
Download bundle.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.exports.download.get
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.exports.download.get
def edit_bundle(self, bundleId: int, data: Iterable[BundlePatchRequest], projectId: Optional[int] = None)
-
Edit Bundle.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.patch
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.patch
def export_bundle(self, bundleId: int, projectId: Optional[int] = None)
-
Export bundle.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.exports.post
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.exports.post
def get_bundle(self, bundleId: int, projectId: Optional[int] = None)
-
Get Bundle.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.get
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.get
def get_bundle_list_files(self, bundleId: int, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get Bundle List Files.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.files.getMany
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.files.getMany
def get_bundles_exports_path(self, projectId: int, bundleId: int, exportId: Optional[str] = None)
def get_bundles_path(self, projectId: int, bundleId: Optional[int] = None)
def list_bundles(self, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Bundles.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.getMany
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.post
class DictionariesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Dictionaries.
Dictionaries allow you to create a storage of words that should be skipped by the spell checker.
Use API to get the list of organization dictionaries and to edit a specific dictionary.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Dictionaries
Ancestors
Methods
def edit_dictionary(self, languageId: str, data: Iterable[DictionaryPatchPath], projectId: Optional[int] = None)
-
Edit Dictionary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.dictionaries.patch
def list_dictionaries(self, projectId: Optional[int] = None, languageIds: Optional[Iterable[str]] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Dictionaries.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.dictionaries.getMany
class DistributionsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Distributions.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Distributions
Ancestors
Methods
def add_distribution(self, name: str, projectId: Optional[int] = None, fileIds: Optional[Iterable[int]] = None, bundleIds: Optional[Iterable[int]] = None, exportMode: Optional[ExportMode] = ExportMode.DEFAULT)
-
Add Distribution.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.post
def delete_distribution(self, hash: str, projectId: Optional[int] = None)
-
Delete Distribution.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.delete
def edit_distribution(self, hash: str, data: Iterable[DistributionPatchRequest], projectId: Optional[int] = None)
-
Edit Distribution.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.patch
def get_distribution(self, hash: str, projectId: Optional[int] = None)
-
Get Distribution.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.get
def get_distribution_release(self, hash: str, projectId: Optional[int] = None)
-
Get Distribution Release.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.release.get
def get_distributions_path(self, projectId: int, hash: Optional[str] = None)
def list_distributions(self, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Distributions.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.getMany
def release_distribution(self, hash: str, projectId: Optional[int] = None)
-
Release Distribution.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.release.post
class EnterpriseAIResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Enterprise Resource for AI.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/AI
Ancestors
Methods
def add_ai_prompt(self, request_data: AddAIPromptRequestScheme)
-
Add AI Prompt
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.prompts.post
def add_ai_provider(self, request_data: AddAIProviderReqeustScheme)
-
Add AI Provider
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.post
def create_ai_proxy_chat_completion(self, aiProviderId: int, request_data: Union[GoogleGeminiChatProxy, OtherChatProxy])
-
Create AI Proxy Chat Completion
This API method serves as an intermediary, forwarding your requests directly to the selected provider. Please refer to the documentation for the specific provider you use to determine the required payload format.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.chat.completions.post
def delete_ai_prompt(self, aiPromptId: int)
-
Delete AI Prompt
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.prompts.delete
def delete_ai_provider(self, aiProviderId: int)
-
Delete AI Provider
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.delete
def edit_ai_prompt(self, aiPromptId: int, request_data: Iterable[EditAIPromptScheme])
-
Edit AI Prompt
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.prompts.patch
def edit_ai_provider(self, aiProviderId: int, request_data: EditAIProviderRequestScheme)
-
Edit AI Provider
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.patch
def get_ai_path(self, aiPromptId: Optional[int] = None)
def get_ai_prompt(self, aiPromptId: int)
-
Get AI Prompt
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.prompts.get
def get_ai_provider(self, aiProviderId: int)
-
Get AI Provider
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.get
def get_ai_provider_path(self, aiProviderId: Optional[int] = None)
def list_ai_prompts(self, projectId: Optional[int] = None, action: Optional[AIPromptAction] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List AI Prompts
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.prompts.getMany
def list_ai_provider_models(self, aiProviderId: int)
-
List AI Provider Models
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.ai.providers.models.getMany
def list_ai_providers(self, limit: Optional[int] = None, offset: Optional[int] = None)
-
List AI Providers
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.getMany
class EnterpriseReportsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Enterprise Reports.
Reports help to estimate costs, calculate translation costs, and identify the top members.
Use API to generate Cost Estimate, Translation Cost, and Top Members reports. You can then export reports in .xlsx or .csv file formats. Report generation is an asynchronous operation and shall be completed with a sequence of API methods.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Reports
Ancestors
Static methods
def get_group_reports_path(group_id: int, report_id: Optional[str] = None)
def get_organization_reports_path(report_id: Optional[str] = None)
Methods
def check_report_archive_export_status(self, archiveId: int, exportId: str)
-
Check Report Archive Status
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.exports.get
def delete_report_archive(self, archiveId: int)
-
Delete Report Archive
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.delete
def download_report_archive(self, archiveId: int, exportId: str)
-
Download Report Archive
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.exports.download.get
def export_report_archive(self, archiveId: int, format: Optional[ExportFormat] = None)
-
Export Report Archive
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.exports.post
def generate_fuzzy_cost_estimate_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, languageId: Optional[str] = None, fileIds: Optional[Iterable[int]] = None, format: Optional[Format] = Format.XLSX, stepTypes: Optional[Iterable[StepTypes]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Cost Estimate Fuzzy Mode).
Links to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.reports.post
def generate_fuzzy_translation_cost_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = Format.XLSX, groupBy: Optional[GroupBy] = None, stepTypes: Optional[Iterable[StepTypes]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Translation Cost Fuzzy Mode).
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.reports.post
def generate_group_report(self, group_id: int, request_data: Dict[~KT, ~VT])
-
Generate Group Report.
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.reports.post
def generate_group_translation_costs_post_editing_general_report(self, group_id: int, base_rates: BaseRates, individual_rates: Iterable[IndividualRate], net_rate_schemes: NetRateSchemes, project_ids: Optional[Iterable[int]] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = None, group_by: Optional[GroupBy] = None, date_from: Optional[datetime.datetime] = None, date_to: Optional[datetime.datetime] = None, user_ids: Optional[Iterable[int]] = None)
-
Generate Group Report (General).
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.reports.post
def generate_organization_translation_costs_post_editing_general_report(self, base_rates: BaseRates, individual_rates: Iterable[IndividualRate], net_rate_schemes: NetRateSchemes, project_ids: Optional[Iterable[int]] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = None, group_by: Optional[GroupBy] = None, date_from: Optional[datetime.datetime] = None, date_to: Optional[datetime.datetime] = None, user_ids: Optional[Iterable[int]] = None)
-
Generate Organization Report (General).
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.post
def generate_simple_cost_estimate_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, languageId: Optional[str] = None, fileIds: Optional[Iterable[int]] = None, format: Optional[Format] = Format.XLSX, stepTypes: Optional[Iterable[StepTypes]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Cost Estimate schema).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.reports.post
def generate_simple_translation_cost_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = Format.XLSX, groupBy: Optional[GroupBy] = None, stepTypes: Optional[Iterable[StepTypes]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Translation Cost).
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.reports.post
def get_report_archive(self, archiveId: int)
-
Get Report Archive
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.get
def get_report_archive_export_path(self, archiveId: int, exportId: Optional[str] = None)
def get_report_archive_path(self, archiveId: Optional[int] = None)
def list_report_archives(self, scopeType: Optional[ScopeType] = None, scopeId: Optional[int] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Report Archives
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.reports.archives.getMany
Inherited members
BaseReportsResource
:check_report_generation_status
download_report
generate_contribution_raw_data_report
generate_costs_estimation_post_editing_by_task_report
generate_costs_estimation_post_editing_general_report
generate_pre_translate_accuracy_by_task_report
generate_pre_translate_accuracy_general_report
generate_report
generate_top_members_report
generate_translation_costs_post_editing_by_task_report
generate_translation_costs_post_editing_general_report
BaseReportSettingsTemplatesResource
:
class EnterpriseTasksResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Tasks.
Create and assign tasks to get files translated or proofread by specific people. You can set the due dates, split words between people, and receive notifications about the changes and updates on tasks. Tasks are project-specific, so you’ll have to create them within a project.
Use API to create, modify, and delete specific tasks.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Tasks
Ancestors
Methods
def add_general_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], type: Optional[CrowdinGeneralTaskType] = None, workflowStepId: Optional[int] = None, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, splitContent: Optional[bool] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, assignedTeams: Optional[Iterable[EnterpriseTaskAssignedTeams]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Enterprise Task Create Form).
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.post
def add_general_task(self, title: str, languageId: str, fileIds: Iterable[int], type: CrowdinGeneralTaskType, workflowStepId: Optional[int] = None, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, splitContent: Optional[bool] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, assignedTeams: Optional[Iterable[EnterpriseTaskAssignedTeams]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Enterprise Task Create Form).
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.post
def add_pending_task(self, title: str, precedingTaskId: int, projectId: Optional[int] = None, description: Optional[str] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, assignedTeams: Optional[Iterable[EnterpriseTaskAssignedTeams]] = None, deadline: Optional[datetime.datetime] = None)
-
Add Task(Enterprise Pending Task Create Form).
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.post
def add_task_settings_template(self, name: str, config: EnterpriseTaskSettingsTemplateLanguages, projectId: Optional[int] = None)
-
Add Task Settings Template.
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.settings-templates.post
def add_vendor_by_string_ids_task(self, title: str, languageId: str, workflowStepId: int, stringIds: Iterable[int], projectId: Optional[int] = None, description: Optional[str] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Enterprise Vendor Task Create Form).
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.post
def add_vendor_task(self, title: str, languageId: str, workflowStepId: int, fileIds: Iterable[int], projectId: Optional[int] = None, description: Optional[str] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Enterprise Vendor Task Create Form).
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.post
Inherited members
TasksResource
:add_language_service_by_string_ids_task
add_language_service_pending_task
add_language_service_task
add_task
add_vendor_gengo_by_string_ids_task
add_vendor_gengo_task
add_vendor_manual_by_string_ids_task
add_vendor_manual_pending_task
add_vendor_manual_task
add_vendor_oht_by_string_ids_task
add_vendor_oht_task
add_vendor_translated_by_string_ids_task
add_vendor_translated_task
delete_task
delete_task_settings_template
edit_task
edit_task_archived_status
edit_task_settings_template
export_task_strings
get_task
get_task_settings_template
list_task_settings_templates
list_tasks
list_user_tasks
class EnterpriseUsersResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Enterprise platform Users.
Users API gives you the possibility to get profile information about the currently authenticated user.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Users
Ancestors
Methods
def add_project_member(self, userIds: Iterable[int], projectId: Optional[int] = None, accessToAllWorkflowSteps: Optional[bool] = None, managerAccess: Optional[bool] = None, permissions: Optional[Dict[~KT, ~VT]] = None, roles: Optional[Iterable[ProjectMemberRole]] = None)
-
Add Project Member.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.members.post
def delete_member_from_project(self, memberId: int, projectId: Optional[int] = None)
-
Delete Member From Project.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.members.delete
def delete_user(self, userId: int)
-
Delete User.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.users.delete
def edit_user(self, userId: int, data: Iterable[UserPatchRequest])
-
Edit User.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.users.patch
def get_users_path(self, userId: Optional[int] = None)
def invite_user(self, email: str, firstName: Optional[str] = None, lastName: Optional[str] = None, timezone: Optional[str] = None)
-
Invite User.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.users.post
def list_project_members(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, search: Optional[str] = None, workflowStepId: Optional[int] = None, languageId: Optional[str] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Project Members.
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.members.getMany
def replace_project_member_permissions(self, memberId: int, projectId: Optional[int] = None, accessToAllWorkflowSteps: Optional[bool] = None, managerAccess: Optional[bool] = None, permissions: Optional[Dict[~KT, ~VT]] = None, roles: Optional[Iterable[ProjectMemberRole]] = None)
-
Replace Project Member Permissions.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.members.put
class FieldsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Fields.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Fields
Ancestors
Methods
def add_field(self, name: str, slug: str, type: FieldType, entities: Iterable[FieldEntity], description: Optional[str] = None, config: Union[ListFieldConfig, NumberFieldConfig, OtherFieldConfig, None] = None)
-
Add Field
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.fields.post
def delete_field(self, fieldId: int)
-
Delete Field
Link to documetation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.fields.delete
def edit_field(self, fieldId: int, data: Iterable[FieldPatchRequest])
-
Edit Field
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.fields.patch
def get_field(self, fieldId: int)
-
Get Field
Link to documentaion: https://developer.crowdin.com/enterprise/api/v2/#operation/api.fields.get
def get_fields_path(self, fieldId: Optional[int] = None)
def list_fields(self, search: Optional[str] = None, entity: Optional[FieldEntity] = None, type: Optional[FieldType] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Fields
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.fields.getMany
class GlossariesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Glossaries.
Glossaries help to explain some specific terms or the ones often used in the project so that they can be properly and consistently translated.
Use API to manage glossaries or specific terms. Glossary export and import are asynchronous operations and shall be completed with sequence of API methods.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Glossaries
Ancestors
Methods
def add_glossary(self, name: str, languageId: str)
-
Add Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.post
def add_term(self, glossaryId: int, languageId: str, text: str, description: Optional[str] = None, partOfSpeech: Optional[TermPartOfSpeech] = None, status: Optional[TermStatus] = None, type: Optional[TermType] = None, gender: Optional[TermGender] = None, note: Optional[str] = None, url: Optional[str] = None, conceptId: Optional[int] = None)
-
Add Term.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.post
def check_glossary_export_status(self, glossaryId: int, exportId: str)
-
Check Glossary Export Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.get
def check_glossary_import_status(self, glossaryId: int, importId: str)
-
Check Glossary Import Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.imports.get
def clear_glossary(self, glossaryId: int, languageId: Optional[str] = None, conceptId: Optional[int] = None)
-
Clear Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.deleteMany
def concordance_search_in_glossaries(self, sourceLanguageId: str, targetLanguageId: str, expressions: Iterable[str], projectId: Optional[int] = None)
-
Concordance search in Glossaries
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.glossaries.concordance.post
def delete_concept(self, glossaryId: int, conceptId: int)
-
Delete Concept.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.concepts.delete
def delete_glossary(self, glossaryId: int)
-
Delete Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.delete
def delete_term(self, glossaryId: int, termId: int)
-
Delete Term.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.delete
def download_glossary(self, glossaryId: int, exportId: str)
-
Download Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.download.download
def edit_glossary(self, glossaryId: int, data: Iterable[GlossaryPatchRequest])
-
Edit Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.patch
def edit_term(self, glossaryId: int, termId: int, data: Iterable[TermPatchRequest])
-
Edit Term.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.patch
def export_glossary(self, glossaryId: int, data: Optional[GlossarySchemaRequest] = None)
-
Export Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.post
def get_concept(self, glossaryId: int, conceptId: int)
-
Get Concept.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.concepts.get
def get_concepts_path(self, glossaryId: int, conceptId: Optional[int] = None)
def get_glossaries_path(self, glossaryId: Optional[int] = None)
def get_glossary(self, glossaryId: int)
-
Get Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.get
def get_glossary_export_path(self, glossaryId: int, exportId: Optional[str] = None)
def get_term(self, glossaryId: int, termId: int)
-
Get Term.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.get
def get_terms_path(self, glossaryId: int, termId: Optional[int] = None)
def import_glossary(self, glossaryId: int, storageId: int, scheme: Optional[Dict[~KT, ~VT]] = None, firstLineContainsHeader: Optional[bool] = None)
-
Import Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.imports.post
def list_concepts(self, glossaryId: int, orderBy: Optional[Sorting] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Concepts.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.concepts.getMany
def list_glossaries(self, orderBy: Optional[Sorting] = None, groupId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Glossaries.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.getMany
def list_terms(self, glossaryId: int, orderBy: Optional[Sorting] = None, userId: Optional[int] = None, languageId: Optional[str] = None, conceptId: Optional[int] = None, croql: Optional[str] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Terms.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.getMany
def update_concept(self, glossaryId: int, conceptId: int, languagesDetails: Iterable[LanguagesDetails], subject: Optional[str] = None, definition: Optional[str] = None, note: Optional[str] = None, url: Optional[str] = None, figure: Optional[str] = None)
-
Get Concept.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.glossaries.concepts.put
class GroupsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Groups.
Groups allow you to organize your projects based on specific characteristics. Using projects, you can keep your source files sorted.
Use API to manage projects and groups, change their settings, or remove them from organization if required.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Projects-and-Groups
Ancestors
Methods
def add_group(self, name: str, parentId: Optional[int] = None, description: Optional[str] = None)
-
Add Group.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.post
def delete_group(self, groupId: int)
-
Delete Group.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.delete
def edit_group(self, groupId: int, data: Iterable[GroupPatchRequest])
-
Edit Group.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.patch
def get_group(self, groupId: int)
-
Get Group.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.get
def get_groups_path(self, groupId: Optional[int] = None)
def list_groups(self, orderBy: Optional[Sorting] = None, parentId: Optional[int] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Groups.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.groups.getMany
class LabelsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Labels.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Labels
Ancestors
Methods
def add_label(self, title: str, projectId: Optional[int] = None)
-
Add Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.post
def assign_label_to_screenshots(self, label_id: int, screenshot_ids: Iterable[int], project_id: Optional[int] = None)
-
Assign Label to Screenshots
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.screenshots.post https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.labels.screenshots.post
def assign_label_to_strings(self, labelId: int, stringIds: Iterable[int], projectId: Optional[int] = None)
-
Assign Label to Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.post
def delete_label(self, labelId: int, projectId: Optional[int] = None)
-
Delete Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.delete
def edit_label(self, labelId: int, data: Iterable[LabelsPatchRequest], projectId: Optional[int] = None)
-
Edit Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.patch
def get_label(self, labelId: int, projectId: Optional[int] = None)
-
Get Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.get
def get_labels_path(self, projectId: int, labelId: Optional[int] = None)
def get_screenshots_path(self, project_id: int, label_id: int)
def list_labels(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Labels.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.getMany
def unassign_label_from_screenshots(self, label_id: int, screenshot_ids: Iterable[int], project_id: Optional[int] = None)
-
Unassign Label from Screenshots
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.screenshots.deleteMany https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.labels.screenshots.deleteMany
def unassign_label_from_strings(self, labelId: int, stringIds: Iterable[int], projectId: Optional[int] = None)
-
Unassign Label from Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.deleteMany
class LanguagesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Languages.
Crowdin supports more than 300 world languages and custom languages created in the system.
Use API to get the list of all supported languages and retrieve additional details (e.g. text direction, internal code) on specific language.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Languages
Ancestors
Methods
def add_custom_language(self, name: str, code: str, localeCode: str, textDirection: LanguageTextDirection, pluralCategoryNames: Iterable[str], threeLettersCode: str, twoLettersCode: Optional[str] = None, dialectOf: Optional[str] = None)
-
Add Custom Language.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.post
def delete_custom_language(self, languageId: str)
-
Delete Custom Language.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.delete
def edit_custom_language(self, languageId: str, data: Iterable[LanguagesPatchRequest])
-
Edit Custom Language.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.patch
def get_language(self, languageId: str)
-
Get Language.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.get
def get_languages_path(self, languageId: Optional[str] = None)
def list_supported_languages(self, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Supported Languages.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.getMany
class MachineTranslationEnginesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Machine Translation Engines.
Machine Translation Engines (MTE) are the sources for pre-translations.
Use API to add, update, and delete specific MTE.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Machine-Translation-Engines
Ancestors
Methods
def get_mt(self, mtId: int)
-
Get MT.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.get
def get_mts_path(self, mtId: Optional[int] = None)
def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None)
-
List MTs.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.getMany
def translate_via_mt(self, mtId: int, targetLanguageId: str = None, languageRecognitionProvider: Optional[LanguageRecognitionProvider] = None, sourceLanguageId: Optional[str] = None, strings: Optional[Iterable[str]] = None)
-
Create Translate via MT.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.translations.post
class ProjectsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Storages.
Using projects, you can keep your source files sorted. Use API to manage projects, change their settings, or remove them if required.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Projects
Ancestors
Methods
def add_file_based_project(self, name: str, sourceLanguageId: str, type: Optional[ProjectType] = None, normalizePlaceholder: Optional[bool] = None, saveMetaInfoInSource: Optional[bool] = None, notificationSettings: Optional[NotificationSettings] = None, identifier: Optional[str] = None, targetLanguageIds: Optional[Iterable[str]] = None, visibility: Optional[ProjectVisibility] = None, languageAccessPolicy: Optional[ProjectLanguageAccessPolicy] = None, cname: Optional[str] = None, description: Optional[str] = None, translateDuplicates: Optional[ProjectTranslateDuplicates] = None, isMtAllowed: Optional[bool] = None, autoSubstitution: Optional[bool] = None, autoTranslateDialects: Optional[bool] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None, defaultTmId: Optional[int] = None, defaultGlossaryId: None = None)
-
Add Project(Files Based Project Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.post
def add_project(self, request_data: Dict[~KT, ~VT])
-
Add Project.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.post
def add_project_file_format_settings(self, format: str, settings: Union[PropertyFileFormatSettings, XmlFileFormatSettings, SpecificFileFormatSettings, DocxFileFormatSettings, MediaWikiFileFormatSettings, TxtFileFormatSettings, OtherFileFormatSettings], projectId: Optional[int] = None)
-
Add Project File Format Settings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.post
def add_project_strings_exporter_settings(self, format: str, settings: Union[AndroidStringsExporterSettings, MacOSXStringsExporterSettings, XliffStringsExporterSettings], projectId: Optional[int] = None)
-
Add Project Strings Exporter Settings.
Link to documetation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings-exporter-settings.post
def add_strings_based_project(self, name: str, sourceLanguageId: str, identifier: Optional[str] = None, type: Optional[ProjectType] = None, targetLanguageIds: Optional[Iterable[str]] = None, visibility: Optional[ProjectVisibility] = None, languageAccessPolicy: Optional[ProjectLanguageAccessPolicy] = None, cname: Optional[str] = None, description: Optional[str] = None, translateDuplicates: Optional[ProjectTranslateDuplicates] = None, isMtAllowed: Optional[bool] = None, autoSubstitution: Optional[bool] = None, autoTranslateDialects: Optional[bool] = None, publicDownloads: Optional[bool] = None, hiddenStringsProofreadersAccess: Optional[bool] = None, useGlobalTm: Optional[bool] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None, inContextProcessHiddenStrings: Optional[bool] = None, inContextPseudoLanguageId: Optional[str] = None, qaCheckIsActive: Optional[bool] = None, qaCheckCategories: Optional[QACheckCategories] = None, qaChecksIgnorableCategories: Optional[QAChecksIgnorableCategories] = None, languageMapping: Optional[Dict[~KT, ~VT]] = None, glossaryAccess: Optional[bool] = None, notificationSettings: Optional[NotificationSettings] = None, defaultTmId: Optional[int] = None, defaultGlossaryId: None = None)
-
Add Project(Strings Based Project Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.post
def delete_project(self, projectId: Optional[int] = None)
-
Delete Project.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.delete
def delete_project_file_format_settings(self, fileFormatSettingsId: int, projectId: Optional[int] = None)
-
Delete Project File Format Settings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.delete
def delete_project_strings_exporter_settings(self, systemStringExporterSettingsId: int, projectId: Optional[int] = None)
-
Delete Project Strings Exporter Settings.
Link to documetation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings-exporter-settings.delete
def download_project_file_custom_segmentation(self, fileFormatSettingsId: int, projectId: Optional[int] = None)
-
Download Project File Format Settings Custom Segmentation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.custom-segmentations.get
def edit_project(self, data: Iterable[ProjectPatchRequest], projectId: Optional[int] = None)
-
Edit Project.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.patch
def edit_project_file_format_settings(self, fileFormatSettingsId: int, data: Iterable[ProjectFilePatchRequest], projectId: Optional[int] = None)
-
Edit Project File Format Settings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.patch
def edit_project_strings_exporter_settings(self, systemStringExporterSettingsId: int, format: str, settings: Union[AndroidStringsExporterSettings, MacOSXStringsExporterSettings, XliffStringsExporterSettings], projectId: Optional[int] = None)
-
Edit Project Strings Exporter Settings.
Link to documetation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings-exporter-settings.patch
def get_project(self, projectId: Optional[int] = None)
-
Get Project.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.get
def get_project_file_format_settings(self, fileFormatSettingsId: int, projectId: Optional[int] = None)
-
Get Project File Format Settings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.get
def get_project_file_format_settings_path(self, projectId: int, fileFormatSettingsId: Optional[int] = None)
def get_project_strings_exporter_settings(self, systemStringExporterSettingsId: int, projectId: Optional[int] = None)
-
Get Project Strings Exporter Settings
Link to documetation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings-exporter-settings.get
def get_projects_path(self, projectId: Optional[int] = None)
def get_strings_exporter_path(self, projectId: int, systemStringExporterSettingsId: Optional[int] = None)
def list_project_file_format_settings(self, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Project File Format Settings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.getMany
def list_project_strings_exporter_settings(self, projectId: Optional[int] = None)
-
List Project Strings Exporter Settings.
Link to documetation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings-exporter-settings.getMany
def list_projects(self, orderBy: Optional[Sorting] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None, groupId: Optional[int] = None, userId: Union[int, str, None] = None, hasManagerAccess: Optional[HasManagerAccess] = None)
-
List Projects.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.getMany
def reset_project_file_custom_segmentation(self, fileFormatSettingsId: int, projectId: Optional[int] = None)
-
Reset Project File Format Settings Custom Segmentation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.file-format-settings.custom-segmentations.delete
class ReportsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Reports.
Reports help to estimate costs, calculate translation costs, and identify the top members.
Use API to generate Cost Estimate, Translation Cost, and Top Members reports. You can then export reports in .xlsx or .csv file formats. Report generation is an asynchronous operation and shall be completed with a sequence of API methods.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Reports
Ancestors
Methods
def check_report_archive_export_status(self, userId: int, archiveId: int, exportId: str)
-
Check Report Archive Status
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.reports.archives.exports.get
def delete_report_archive(self, userId: int, archiveId: int)
-
Delete Report Archive
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.reports.archives.delete
def download_report_archive(self, userId: int, archiveId: int, exportId: str)
-
Download Report Archive
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.reports.archives.exports.download.get
def export_report_archive(self, userId: int, archiveId: int, format: Optional[ExportFormat] = None)
-
Export Report Archive
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.reports.archives.exports.post
def generate_fuzzy_cost_estimate_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, languageId: Optional[str] = None, fileIds: Optional[Iterable[int]] = None, format: Optional[Format] = Format.XLSX, calculateInternalFuzzyMatches: Optional[bool] = None, regularRates: Optional[Iterable[FuzzyRegularRate]] = None, individualRates: Optional[Iterable[FuzzyIndividualRate]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Cost Estimate Fuzzy Mode).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.reports.post
def generate_fuzzy_translation_cost_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = Format.XLSX, groupBy: Optional[GroupBy] = None, regularRates: Optional[Iterable[FuzzyRegularRate]] = None, individualRates: Optional[Iterable[FuzzyIndividualRate]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Translation Fuzzy Cost).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.reports.post
def generate_simple_cost_estimate_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, languageId: Optional[str] = None, fileIds: Optional[Iterable[int]] = None, format: Optional[Format] = Format.XLSX, regularRates: Optional[Iterable[SimpleRegularRate]] = None, individualRates: Optional[Iterable[SimpleIndividualRate]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Cost Estimate Schema).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.reports.post
def generate_simple_translation_cost_report(self, projectId: Optional[int] = None, unit: Optional[Unit] = None, currency: Optional[Currency] = None, format: Optional[Format] = Format.XLSX, groupBy: Optional[GroupBy] = None, regularRates: Optional[Iterable[SimpleRegularRate]] = None, individualRates: Optional[Iterable[SimpleIndividualRate]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Generate Report(Translation Cost).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.reports.post
def get_report_archive(self, userId: int, archiveId: int)
-
Get Report Archive
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.reports.archives.get
def get_report_archive_export_path(self, userId: int, archiveId: int, exportId: Optional[str] = None)
def get_report_archive_path(self, userId: int, archiveId: Optional[int] = None)
def list_report_archives(self, userId: int, scopeType: Optional[str] = None, scopeId: Optional[int] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Report Archives
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.reports.archives.getMany
Inherited members
BaseReportsResource
:check_report_generation_status
download_report
generate_contribution_raw_data_report
generate_costs_estimation_post_editing_by_task_report
generate_costs_estimation_post_editing_general_report
generate_pre_translate_accuracy_by_task_report
generate_pre_translate_accuracy_general_report
generate_report
generate_top_members_report
generate_translation_costs_post_editing_by_task_report
generate_translation_costs_post_editing_general_report
BaseReportSettingsTemplatesResource
:
class ScreenshotsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Screenshots.
Screenshots provide translators with additional context for the source strings. Screenshot tags allow specifying which source strings are displayed on each screenshot.
Use API to manage screenshots and their tags.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Screenshots
Ancestors
Methods
def add_screenshot(self, storageId: int, name: str, projectId: Optional[int] = None, autoTag: Optional[bool] = None, fileId: Optional[int] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, labelIds: Optional[Iterable[int]] = None)
-
Add Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.post
def add_tag(self, screenshotId: int, data: Iterable[AddTagRequest], projectId: Optional[int] = None)
-
Add Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.post
def auto_tag(self, screenshotId: int, autoTag: bool, projectId: Optional[int] = None)
-
Auto Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.putMany
-
Clear Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.deleteMany
def delete_screenshot(self, screenshotId: int, projectId: Optional[int] = None)
-
Delete Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.delete
def delete_tag(self, screenshotId: int, tagId: int, projectId: Optional[int] = None)
-
Delete Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.delete
def edit_screenshot(self, screenshotId: int, data: Iterable[ScreenshotPatchRequest], projectId: Optional[int] = None)
-
Edit Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.patch
def edit_tag(self, screenshotId: int, tagId: int, data: Iterable[TagPatchRequest], projectId: Optional[int] = None)
-
Edit Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.patch
def get_screenshot(self, screenshotId: int, projectId: Optional[int] = None)
-
Get Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.get
def get_screenshots_path(self, projectId: int, screenshotId: Optional[int] = None)
def get_tag(self, screenshotId: int, tagId: int, projectId: Optional[int] = None)
-
Get Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.get
def list_screenshots(self, orderBy: Optional[Sorting] = None, projectId: Optional[int] = None, stringId: Optional[int] = None, stringIds: Optional[Iterable[int]] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Screenshots.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.getMany
-
List Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.getMany
-
Replace Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.putMany
def update_screenshot(self, screenshotId: int, storageId: int, name: str, projectId: Optional[int] = None)
-
Update Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.put
class SecurityLogsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Security Logs
Link to documentaion: https://developer.crowdin.com/api/v2/#tag/Security-Logs
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#tag/Security-Logs
Ancestors
Methods
def get_organization_security_log(self, securityLogId: int)
-
Get Organization Security Log
Link to documentaion: https://developer.crowdin.com/enterprise/api/v2/#operation/api.security-logs.get
def get_organization_security_logs_path(self, securityLogId: Optional[int] = None)
def get_user_security_log(self, userId: int, securityLogId: int)
-
Get User Security Log
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.security-logs.get
def get_user_security_logs_path(self, userId: int, securityLogId: Optional[int] = None)
def list_organization_security_logs(self, event: Optional[SecurityLogEvent] = None, createdAfter: Optional[datetime.datetime] = None, createdBefore: Optional[datetime.datetime] = None, ipAddress: Optional[str] = None, userId: Optional[int] = None, limit: Optional[int] = None, offset: Optional[int] = None, page: Optional[int] = None)
-
List Organization Security Logs
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.security-logs.getMany
def list_user_security_logs(self, userId: int, event: Optional[SecurityLogEvent] = None, createdAfter: Optional[datetime.datetime] = None, createdBefore: Optional[datetime.datetime] = None, ipAddress: Optional[str] = None, limit: Optional[int] = None, offset: Optional[int] = None, page: Optional[int] = None)
-
List User Security Logs
Link to documentaion: https://developer.crowdin.com/api/v2/#operation/api.users.security-logs.getMany
class SourceFilesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Source Files.
Source files are resources for translation. You can keep files structure using folders or manage different versions of the content via branches.
Use API to keep the source files up to date, check on file revisions, and manage project branches. Before adding source files to the project, upload each file to the Storage first.
Note: If you use branches, make sure your master branch is the first one you integrate with Crowdin.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Source-Files
Ancestors
Methods
def add_branch(self, name: str, projectId: Optional[int] = None, title: Optional[str] = None, exportPattern: Optional[str] = None, priority: Optional[Priority] = None)
-
Add Branch.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.post
def add_directory(self, name: str, projectId: Optional[int] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, title: Optional[int] = None, exportPattern: Optional[str] = None, priority: Optional[Priority] = None)
-
Add Directory.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.post
def add_file(self, storageId: int, name: str, projectId: Optional[int] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, title: Optional[int] = None, context: Optional[str] = None, type: Optional[FileType] = FileType.AUTO, importOptions: Union[SpreadsheetImportOptions, XmlImportOptions, DocxFileImportOptions, OtherImportOptions, HtmlFileImportOptions, HtmlWithFrontMatterFileImportOptions, MdxV1FileImportOptions, MdxV2FileImportOptions, None] = None, exportOptions: Union[PropertyExportOptions, GeneralExportOptions, JavascriptExportOptions, None] = None, excludedTargetLanguages: Optional[Iterable[str]] = None, attachLabelIds: Optional[Iterable[int]] = None)
-
Add File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.post
def delete_branch(self, branchId: int, projectId: Optional[int] = None)
-
Delete Branch.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.delete
def delete_directory(self, directoryId: int, projectId: Optional[int] = None)
-
Delete Directory.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.delete
def delete_file(self, fileId: int, projectId: Optional[int] = None)
-
Delete File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.delete
def download_file(self, fileId: int, projectId: Optional[int] = None)
-
Download File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.download.get
def download_file_preview(self, fileId: int, projectId: Optional[int] = None)
-
Download File Preview.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.preview.get
def edit_branch(self, branchId: int, data: Iterable[BranchPatchRequest], projectId: Optional[int] = None)
-
Edit Branch.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.patch
def edit_directory(self, directoryId: int, data: Iterable[DirectoryPatchRequest], projectId: Optional[int] = None)
-
Edit Directory.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.patch
def edit_file(self, fileId: int, data: Iterable[FilePatchRequest], projectId: Optional[int] = None)
-
Edit File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.patch
def get_branch(self, branchId: int, projectId: Optional[int] = None)
-
Get Branch.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.get
def get_branch_path(self, projectId: int, branchId: Optional[int] = None)
def get_directory(self, directoryId: int, projectId: Optional[int] = None)
-
Get Directory.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.get
def get_directory_path(self, projectId: int, directoryId: Optional[int] = None)
def get_file(self, fileId: int, projectId: Optional[int] = None)
-
Get File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.get
def get_file_path(self, projectId: int, fileId: Optional[int] = None)
def get_file_revision(self, fileId: int, revisionId: int, projectId: Optional[int] = None)
-
Get File Revision.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.revisions.get
def get_file_revisions_path(self, projectId: int, fileId: int, revisionId: Optional[int] = None)
def list_directories(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, filter: Optional[str] = None, recursion=None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Directories.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.getMany
def list_file_revisions(self, fileId: int, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List File Revisions.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.revisions.getMany
def list_files(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, filter: Optional[str] = None, recursion: Any = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Files.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.getMany
def list_project_branches(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, name: Optional[str] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Branches.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.getMany
def restore_file(self, fileId: int, revisionId: int, projectId: Optional[int] = None)
-
Restore File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.put
def update_file(self, fileId: int, storageId: int, projectId: Optional[int] = None, updateOption: Optional[FileUpdateOption] = None, importOptions: Union[SpreadsheetImportOptions, XmlImportOptions, DocxFileImportOptions, OtherImportOptions, HtmlFileImportOptions, HtmlWithFrontMatterFileImportOptions, MdxV1FileImportOptions, MdxV2FileImportOptions, None] = None, exportOptions: Union[PropertyExportOptions, GeneralExportOptions, JavascriptExportOptions, None] = None, attachLabelIds: Optional[Iterable[int]] = None, detachLabelIds: Optional[Iterable[int]] = None)
-
Update File.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.put
class SourceStringsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Source Strings.
Source strings are the text units for translation. Instead of modifying source files, you can manage source strings one by one.
Use API to add, edit, or delete some specific strings in the source-based and files-based projects (available only for the following file formats: CSV, RESX, JSON, Android XML, iOS strings, PROPERTIES, XLIFF).
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Source-Strings
Ancestors
Methods
def add_string(self, text: str, projectId: Optional[int] = None, identifier: Optional[str] = None, fileId: Optional[int] = None, context: Optional[str] = None, isHidden: Optional[bool] = None, maxLength: Optional[int] = None, labelIds: Optional[Iterable[int]] = None, branchId: Optional[int] = None)
-
Add String.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.post
def delete_string(self, stringId: int, projectId: Optional[int] = None)
-
Delete String.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.delete
def edit_string(self, stringId: int, data: Iterable[SourceStringsPatchRequest], projectId: Optional[int] = None)
-
Edit String.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.patch
def get_source_strings_path(self, projectId: int, stringId: Optional[int] = None)
def get_string(self, stringId: int, projectId: Optional[int] = None)
-
Get String.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.get
def list_strings(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, fileId: Optional[int] = None, branchId: Optional[int] = None, denormalizePlaceholders: Optional[DenormalizePlaceholders] = None, labelIds: Optional[Iterable[int]] = None, taskId: Optional[int] = None, croql: Optional[str] = None, filter: Optional[str] = None, scope: Optional[ScopeFilter] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.getMany
def string_batch_operation(self, data: Iterable[StringBatchOperationPatchRequest], projectId: Optional[int] = None)
-
String Batch Operations.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.strings.batchPatch
class StoragesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Storages.
Storage is a separate container for each file. You need to use Add Storage method before adding files to your projects via API. Files that should be uploaded into storage include files for localization, screenshots, Glossaries, and Translation Memories.
Storage id is the identifier of the file uploaded to the Storage.
Note: Storage is periodically cleared. The files that were already uploaded to your account will be removed from storage and will remain in your account.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Storage
Ancestors
Methods
def add_storage(self, file:
) -
Add Storage.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.storages.post
def delete_storage(self, storageId: int)
-
Delete Storage.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.storages.delete
def get_storage(self, storageId: int)
-
Get Storage.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.storages.get
def get_storages_path(self, storageId: Optional[int] = None)
def list_storages(self, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Storages.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.storages.getMany
class StringCommentsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for String Comments.
Use API to add or remove strings translations, approvals, and votes.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/String-Comments
Ancestors
Methods
def add_string_comment(self, text: str, stringId: int, targetLanguageId: str, type: StringCommentType, projectId: Optional[int] = None, issueType: Optional[StringCommentIssueType] = None)
-
Add String Comment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.comments.post
def delete_string_comment(self, stringCommentId: int, projectId: Optional[int] = None)
-
Delete String Comment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.comments.delete
def edit_string_comment(self, stringCommentId: int, data: Iterable[StringCommentPatchRequest], projectId: Optional[int] = None)
-
Edit String Comment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.comments.patch
def get_string_comment(self, stringCommentId: int, projectId: Optional[int] = None)
-
Get String Comment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.comments.get
def get_string_comments_path(self, projectId: int, stringCommentId: Optional[int] = None)
def list_string_comments(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, stringId: Optional[int] = None, type: Optional[StringCommentType] = None, issueType: Optional[Iterable[StringCommentIssueType]] = None, issueStatus: Optional[StringCommentIssueStatus] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List String Comments.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.comments.getMany
class StringTranslationsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for String Translations.
Use API to add or remove strings translations, approvals, and votes.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/String-Translations
Ancestors
Methods
def add_approval(self, translationId: int, projectId: Optional[int] = None)
-
Add Approval.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.approvals.post
def add_translation(self, stringId: int, languageId: str, text: str, projectId: Optional[int] = None, pluralCategoryName: Optional[PluralCategoryName] = None, addToTm: Optional[bool] = None)
-
Add Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.post
def add_vote(self, mark: VoteMark, translationId: int, projectId: Optional[int] = None)
-
Add Vote.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.votes.pos
def cancel_vote(self, voteId: int, projectId: Optional[int] = None)
-
Cancel Vote.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.votes.delete
def delete_string_translations(self, stringId: int, languageId: Optional[str] = None, projectId: Optional[int] = None)
-
Delete String Translations.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.deleteMany
def delete_translation(self, translationId: int, projectId: Optional[int] = None)
-
Delete Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.delete
def get_approval(self, approvalId: int, projectId: Optional[int] = None)
-
Get Approval.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.approvals.get
def get_approvals_path(self, projectId: int, approvalId: Optional[int] = None)
def get_translation(self, translationId: int, projectId: Optional[int] = None)
-
Get Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.get
def get_translation_votes_path(self, projectId: int, voteId: Optional[int] = None)
def get_translations_path(self, projectId: int, translationId: Optional[int] = None)
def get_vote(self, voteId: int, projectId: Optional[int] = None)
-
Get Vote.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.votes.get
def list_language_translations(self, languageId: str, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, stringIds: Optional[Iterable[int]] = None, labelIds: Optional[Iterable[int]] = None, fileId: Optional[int] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, croql: Optional[str] = None, denormalizePlaceholders: Optional[DenormalizePlaceholders] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Language Translations
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.languages.translations.getMany
def list_string_translations(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, stringId: Optional[int] = None, languageId: Optional[str] = None, denormalizePlaceholders: Optional[DenormalizePlaceholders] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List String Translations
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.getMany
def list_translation_approvals(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, fileId: Optional[int] = None, labelIds: Optional[str] = None, excludeLabelIds: Optional[str] = None, stringId: Optional[int] = None, languageId: Optional[str] = None, translationId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Translation Approvals
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.approvals.getMany
def list_translation_votes(self, projectId: Optional[int] = None, stringId: Optional[int] = None, languageId: Optional[str] = None, translationId: Optional[int] = None, fileId: Optional[int] = None, labelIds: Optional[str] = None, excludeLabelIds: Optional[str] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Translation Votes
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.votes.getMany
def remove_approval(self, approvalId: int, projectId: Optional[int] = None)
-
Remove Approvall.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.approvals.delete
def remove_string_approvals(self, stringId: int, projectId: Optional[int] = None)
-
Remove String Approvals
Link to documentaion: https://support.crowdin.com/developer/api/v2/#tag/String-Translations/operation/api.projects.approvals.deleteMany
def restore_translation(self, translationId: int, projectId: Optional[int] = None)
-
Restore Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.put
def translation_alignment(self, sourceLanguageId: str, targetLanguageId: str, text: str, projectId: Optional[int] = None)
-
Translation Alignment
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.alignment.post
class TasksResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Tasks.
Create and assign tasks to get files translated or proofread by specific people. You can set the due dates, split words between people, and receive notifications about the changes and updates on tasks. Tasks are project-specific, so you’ll have to create them within a project.
Use API to create, modify, and delete specific tasks.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Tasks
Ancestors
Subclasses
Methods
def add_general_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], type: CrowdinGeneralTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, splitContent: Optional[bool] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_general_task(self, title: str, languageId: str, fileIds: Iterable[int], type: CrowdinGeneralTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, splitContent: Optional[bool] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_language_service_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], type: LanguageServiceTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, includePreTranslatedStringsOnly: Optional[bool] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Language Service Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_language_service_pending_task(self, title: str, precedingTaskId: int, projectId: Optional[int] = None, description: Optional[str] = None, deadline: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Language Service Pending Task Create Form).
def add_language_service_task(self, title: str, languageId: str, fileIds: Iterable[int], type: LanguageServiceTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, includePreTranslatedStringsOnly: Optional[bool] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Language Service Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_pending_task(self, title: str, precedingTaskId: int, projectId: Optional[int] = None, description: Optional[str] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Pending Task Create Form).
def add_task(self, request_data: Dict[~KT, ~VT], projectId: Optional[int] = None)
-
Add Task.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_task_settings_template(self, name: str, config: TaskSettingsTemplateLanguages, projectId: Optional[int] = None)
-
Add Task Settings Template.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.settings-templates.post
def add_vendor_gengo_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[GengoCrowdinTaskExpertise] = None, tone: Optional[GengoCrowdinTaskTone] = None, purpose: Optional[GengoCrowdinTaskPurpose] = None, customerMessage: Optional[str] = None, usePreferred: Optional[bool] = None, editService: Optional[bool] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Gengo Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_gengo_task(self, title: str, languageId: str, fileIds: Iterable[int], projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[GengoCrowdinTaskExpertise] = None, tone: Optional[GengoCrowdinTaskTone] = None, purpose: Optional[GengoCrowdinTaskPurpose] = None, customerMessage: Optional[str] = None, usePreferred: Optional[bool] = None, editService: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Gengo Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_manual_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], type: ManualCrowdinTaskType, vendor: ManualCrowdinVendors, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Manual Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_manual_pending_task(self, title: str, precedingTaskId: int, vendor: ManualCrowdinVendors, projectId: Optional[int] = None, description: Optional[str] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Manual Pending Task Create Form).
def add_vendor_manual_task(self, title: str, languageId: str, fileIds: Iterable[int], type: ManualCrowdinTaskType, vendor: ManualCrowdinVendors, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, skipAssignedStrings: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, assignees: Optional[Iterable[CrowdinTaskAssignee]] = None, deadline: Optional[datetime.datetime] = None, startedAt: Optional[datetime.datetime] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Manual Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_oht_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], type: OhtCrowdinTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[OhtCrowdinTaskExpertise] = None, editService: Optional[bool] = None, includePreTranslatedStringsOnly: Optional[bool] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Oht Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_oht_task(self, title: str, languageId: str, fileIds: Iterable[int], type: OhtCrowdinTaskType, projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[OhtCrowdinTaskExpertise] = None, editService: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, includePreTranslatedStringsOnly: Optional[bool] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Oht Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_translated_by_string_ids_task(self, title: str, languageId: str, stringIds: Iterable[int], projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[TranslatedCrowdinTaskExpertise] = None, subject: Optional[TranslatedCrowdinTaskSubjects] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Translated Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def add_vendor_translated_task(self, title: str, languageId: str, fileIds: Iterable[int], projectId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, description: Optional[str] = None, expertise: Optional[TranslatedCrowdinTaskExpertise] = None, subject: Optional[TranslatedCrowdinTaskSubjects] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, dateFrom: Optional[datetime.datetime] = None, dateTo: Optional[datetime.datetime] = None)
-
Add Task(Crowdin Vendor Translated Task Create Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.post
def delete_task(self, taskId: int, projectId: Optional[int] = None)
-
Delete Task.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.delete
def delete_task_settings_template(self, taskSettingsTemplateId: int, projectId: Optional[int] = None)
-
Delete Task Settings Template.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.settings-templates.delete
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.settings-templates.delete
def edit_task(self, taskId: int, data: Union[Iterable[VendorPatchRequest], Iterable[TaskPatchRequest]], projectId: Optional[int] = None)
-
Edit Task.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.patch
def edit_task_archived_status(self, taskId: int, isArchived: bool = True, projectId: Optional[int] = None)
-
Edit Task Archived Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.user.tasks.patch
def edit_task_settings_template(self, taskSettingsTemplateId: int, data: Iterable[ConfigPatchRequest], projectId: Optional[int] = None)
-
Edit Task Settings Template.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.settings-templates.patch
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.settings-templates.patch
def export_task_strings(self, taskId: int, projectId: Optional[int] = None)
-
Export Task Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.exports.post
def get_task(self, taskId: int, projectId: Optional[int] = None)
-
Get Task.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.get
def get_task_settings_template(self, taskSettingsTemplateId: int, projectId: Optional[int] = None)
-
Get Task Settings Template.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.settings-templates.get
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.settings-templates.get
def get_task_settings_templates_path(self, projectId: int, taskSettingsTemplateId: Optional[int] = None)
def get_tasks_path(self, projectId: int, taskId: Optional[int] = None)
def list_task_settings_templates(self, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Task Settings Templates.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.settings-templates.getMany
Link to documentation for enterprise: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.tasks.settings-templates.getMany
def list_tasks(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, assigneeId: Optional[int] = None, status: Optional[CrowdinTaskStatus] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Tasks.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.getMany
def list_user_tasks(self, orderBy: Optional[Sorting] = None, status: Optional[CrowdinTaskStatus] = None, isArchived: Optional[bool] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Tasks.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tasks.getMany
class TeamsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Teams.
Organization teams.
Use API to create, modify, and delete specific teams and members.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Teams
Ancestors
Methods
def add_team(self, name: str)
-
Add Team.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.post
def add_team_members(self, teamId: int, userIds: Iterable[int])
-
Add Team Members.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.members.post
def add_team_to_project(self, teamId: int, projectId: Optional[int] = None, accessToAllWorkflowSteps: bool = True, managerAccess: bool = False, permissions: Optional[Permissions] = None, roles: Optional[Iterable[TeamByProjectRole]] = None)
-
Add Team To Project.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.teams.post
def delete_all_team_members(self, teamId: int)
-
Delete All Team Members.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.members.deleteMany
def delete_team(self, teamId: int)
-
Delete Team.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.delete
def delete_team_member(self, teamId: int, memberId: int)
-
Delete Team Member.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.members.delete
def edit_team(self, teamId: int, data: Iterable[TeamPatchRequest])
-
Edit Team.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.patch
def get_members_path(self, teamId: int, memberId: Optional[int] = None)
def get_team(self, teamId: int)
-
Get Team.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.get
def get_teams_path(self, teamId: Optional[int] = None)
def list_teams(self, orderBy: Optional[Sorting] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Teams.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.getMany
def teams_member_list(self, teamId: int, offset: Optional[int] = None, limit: Optional[int] = None)
-
Team Members List.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.members.getMany
class TranslationMemoryResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Translation Memory.
Translation Memory (TM) is a vault of translations that were previously made in other projects. Those translations can be reused to speed up the translation process. Every translation made in the project is automatically added to the project Translation Memory.
Use API to create, upload, download, or remove specific TM. Translation Memory export and import are asynchronous operations and shall be completed with sequence of API methods.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Translation-Memory
Ancestors
Methods
def add_tm(self, name: str, languageId: str)
-
Add Glossary.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.post
def check_tm_export_status(self, tmId: int, exportId: str)
-
Check TM Export Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.exports.get
def check_tm_import_status(self, tmId: int, importId: str)
-
Check TM Import Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.imports.get
def clear_tm(self, tmId: int)
-
Clear TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.clear
def concordance_search_in_tms(self, sourceLanguageId: str, targetLanguageId: str, autoSubstitution: bool, minRelevant: int, expressions: Iterable[str], projectId: Optional[int] = None)
-
Concordance search in TMs
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.tms.concordance.post
def create_tm_segment(self, tmId: int, records: Iterable[TranslationMemorySegmentRecord])
-
Create TM Segment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.post
def delete_tm(self, tmId: int)
-
Delete TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.delete
def delete_tm_segment(self, tmId: int, segmentId: int)
-
Delete TM Segment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.delete
def download_tm(self, tmId: int, exportId: str)
-
Download TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.exports.download.download
def edit_tm(self, tmId: int, data: Iterable[TranslationMemoryPatchRequest])
-
Edit TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.patch
def edit_tm_segment(self, tmId: int, segmentId: int, data: Iterable[Union[TranslationMemorySegmentRecordOperationAdd, TranslationMemorySegmentRecordOperationReplace, TranslationMemorySegmentRecordOperationRemove]])
-
Edit TM Segment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.patch
def export_tm(self, tmId: int, sourceLanguageId: Optional[str] = None, targetLanguageId: Optional[str] = None, format: Optional[ExportFormat] = None)
-
Export TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.exports.post
def get_tm(self, tmId: int)
-
Get TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.get
def get_tm_export_path(self, tmId: int, exportId: Optional[str] = None)
def get_tm_segment(self, tmId: int, segmentId: int)
-
Get TM Segment.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.get
def get_tm_segments_path(self, tmId: int, segmentId: Optional[int] = None)
def get_tms_path(self, tmId: Optional[int] = None)
def import_tm(self, tmId: int, storageId: int, scheme: Optional[Dict[~KT, ~VT]] = None, firstLineContainsHeader: Optional[bool] = None)
-
Import TM.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.imports.post
def list_tm_segments(self, tmId: int, orderBy: Optional[Sorting] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List TM Segments.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.segments.getMany
def list_tms(self, orderBy: Optional[Sorting] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List TMs.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.tms.getMany
class TranslationStatusResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Translation Status.
Status represents the general localization progress on both translations and proofreading.
Use API to check translation and proofreading progress on different levels: file, language, branch, directory.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Translation-Status
Ancestors
Methods
def get_branch_progress(self, branchId: int, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get Branch Progress.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.branches.languages.progress.getMany
def get_directory_progress(self, directoryId: int, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get Directory Progress.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.directories.languages.progress.getMany
def get_file_progress(self, fileId: int, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get File Progress.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.files.languages.progress.getMany
def get_language_progress(self, languageId: str, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get Language Progress.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.languages.files.progress.getMany
def get_project_progress(self, projectId: Optional[int] = None, languageIds: Optional[Iterable[str]] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
Get Project Progress.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.languages.progress.getMany
def list_qa_check_issues(self, projectId: Optional[int] = None, category: Optional[Iterable[Category]] = None, validation: Optional[Iterable[Validation]] = None, languageIds: Optional[Iterable[str]] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List QA Check Issues.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.qa-checks.getMany
class TranslationsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Translations.
Translators can work with entirely untranslated project or you can pre-translate the files to ease the translations process.
Use API to pre-translate files via Machine Translation (MT) or Translation Memory (TM), upload your existing translations, and download translations correspondingly. Pre-translate and build are asynchronous operations and shall be completed with sequence of API methods.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Translations
Ancestors
Methods
def apply_pre_translation(self, languageIds: Iterable[str], fileIds: Iterable[int], projectId: Optional[int] = None, method: Optional[PreTranslationApplyMethod] = None, engineId: Optional[int] = None, aiPromptId: Optional[int] = None, autoApproveOption: Optional[PreTranslationAutoApproveOption] = None, duplicateTranslations: Optional[bool] = None, skipApprovedTranslations: Optional[bool] = None, translateUntranslatedOnly: Optional[bool] = None, translateWithPerfectMatchOnly: Optional[bool] = None, fallbackLanguages: Optional[Iterable[FallbackLanguages]] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None)
-
Apply Pre-Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.pre-translations.post
def build_crowdin_project_translation(self, projectId: Optional[int] = None, branchId: Optional[int] = None, targetLanguageIds: Optional[Iterable[str]] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None, exportWithMinApprovalsCount: Optional[int] = None)
-
Build Project Translation(Crowdin Translation Create Project Build Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.post
def build_project_directory_translation(self, directoryId: int, projectId: Optional[int] = None, targetLanguageIds: Optional[Iterable[str]] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None)
-
Build Project Directory Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.directories.post
def build_project_file_translation(self, fileId: int, targetLanguageId: str, projectId: Optional[int] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None, eTag: Optional[str] = None)
-
Build Project File Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.files.post
def build_project_translation(self, request_data: Dict[~KT, ~VT], projectId: Optional[int] = None)
-
Build Project Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.post
def build_pseudo_project_translation(self, pseudo: bool, projectId: Optional[int] = None, prefix: Optional[str] = None, suffix: Optional[str] = None, lengthTransformation: Optional[int] = None, charTransformation: Optional[CharTransformation] = None)
-
Build Project Translation(Translation Create Project Pseudo Build Form).
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.post
def cancel_build(self, buildId: int, projectId: Optional[int] = None)
-
Cancel Build.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.delete
def check_project_build_status(self, buildId: int, projectId: Optional[int] = None)
-
Check Project Build Status.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.get
def download_project_translations(self, buildId: int, projectId: Optional[int] = None)
-
Download Project Translations.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.download.download
def edit_pre_translation(self, preTranslationId: str, data: Iterable[EditPreTranslationScheme], projectId: Optional[int] = None)
-
Edit Pre-Translation
Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Translations/operation/api.projects.pre-translations.patch
def export_project_translation(self, targetLanguageId: str, projectId: Optional[int] = None, format: Optional[ExportProjectTranslationFormat] = None, labelIds: Optional[Iterable[int]] = None, branchIds: Optional[Iterable[int]] = None, directoryIds: Optional[Iterable[int]] = None, fileIds: Optional[Iterable[int]] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None)
-
Export Project Translation.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.exports.post
def get_builds_path(self, projectId: int, buildId: Optional[int] = None)
def list_pre_translations(self, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Pre-Translations
Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Translations/operation/api.projects.pre-translations.getMany
def list_project_builds(self, projectId: Optional[int] = None, branchId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Project Builds.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.builds.getMany
def pre_translation_status(self, preTranslationId: str, projectId: Optional[int] = None)
-
Pre-Translation Status.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Translations/paths/~1projects~1{projectId}~1pre-translations~1{preTranslationId}/get
def upload_translation(self, languageId: str, storageId: int, fileId: int, projectId: Optional[int] = None, importEqSuggestions: Optional[bool] = None, autoApproveImported: Optional[bool] = None, translateHidden: Optional[bool] = None, addToTm: Optional[bool] = None)
-
Upload Translations.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.postOnLanguage
class UsersResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Users.
Users API gives you the possibility to get profile information about the currently authenticated user.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Users
Ancestors
Methods
def get_member_info(self, memberId: int, projectId: Optional[int] = None)
-
Get Member Info.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.members.get
def list_project_members(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, search: Optional[str] = None, role: Optional[UserRole] = None, languageId: Optional[str] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Project Members.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.members.getMany
class VendorsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Vendors.
Vendors are the organizations that provide professional translation services. To assign a Vendor to a project workflow you should invite an existing Organization to be a Vendor for you.
Use API to get the list of the Vendors you already invited to your organization.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Vendors
Ancestors
Methods
def list_vendors(self, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Teams.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.teams.getMany
class WebhooksResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Webhooks.
Webhooks allow you to collect information about events that happen in your Crowdin projects. You can select the request type, content type, and add a custom payload, which allows you to create integrations with other systems on your own.
You can configure webhooks for the following events: -project file is fully translated -project file is fully reviewed -all strings in project are translated -all strings in project are reviewed -final translation of string is updated (using Replace in suggestions feature) -source string is added -source string is updated -source string is deleted -source string is translated -translation for source string is updated (using Replace in suggestions feature) -one of translations is deleted -translation for string is approved -approval for previously added translation is removed
Use API to create, modify, and delete specific webhooks.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Webhooks
Ancestors
Methods
def add_webhook(self, name: str, url: str, events: Iterable[WebhookEvents], requestType: WebhookRequestType, projectId: Optional[int] = None, isActive: Optional[bool] = None, batchingEnabled: Optional[bool] = None, contentType: Optional[WebhookContentType] = None, headers: Optional[Dict[~KT, ~VT]] = None, payload: Optional[Dict[~KT, ~VT]] = None)
-
Add Webhook.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.webhooks.post
def delete_webhook(self, webhookId: int, projectId: Optional[int] = None)
-
Delete Webhook.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.webhooks.delete
def edit_webhook(self, webhookId: int, data: Iterable[WebhookPatchRequest], projectId: Optional[int] = None)
-
Edit Custom Language.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.webhooks.patch
def get_webhook(self, webhookId: int, projectId: Optional[int] = None)
-
Get Webhook.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.webhooks.get
def get_webhooks_path(self, projectId: int, webhookId: Optional[int] = None)
def list_webhooks(self, projectId: Optional[int] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Webhooks.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Webhooks
class WorkflowsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Workflows.
Workflows are the sequences of steps that content in your project should go through (e.g. pre-translation, translation, proofreading). You can use a default template or create the one that works best for you and assign it to the needed projects.
Use API to get the list of workflow templates available in your organization and to check the details of a specific template.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/Workflows
Ancestors
Methods
def get_workflow_step(self, stepId: int, projectId: Optional[int] = None)
-
Get Workflow Step.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.workflow-steps.get
def get_workflow_step_strings_path(self, projectId: int, stepId: int)
def get_workflow_steps_path(self, projectId: int, stepId: Optional[int] = None)
def get_workflow_template(self, templateId: int)
-
Get Workflow Template.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.workflow-templates.get
def get_workflow_templates_path(self, templateId: Optional[int] = None)
def list_workflow_step_strings(self, projectId: Optional[int], stepId: int, languageIds: Optional[str] = None, orderBy: Optional[Sorting] = None, status: Optional[str] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Strings on the Workflow Step.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.workflow-steps.strings.getMany
def list_workflow_steps(self, projectId: Optional[int] = None)
-
List Workflow Steps.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.workflow-steps.getMany
def list_workflow_templates(self, groupId: Optional[int] = None, limit: Optional[int] = None, offset: Optional[int] = None)
-
List Workflow Templates.
Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.workflow-templates.getMany