Module crowdin_api.api_resources.string_corrections.resource
Classes
class StringCorrectionsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)-
Resource for String Corrections.
Use API to add or remove strings translations, approvals, and votes.
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections
Ancestors
Methods
def add_correction(self, project_id: int, string_id: int, text: str, plural_category_name: Optional[PluralCategoryName] = None)-
Add Correction
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.post
def delete_correction(self, project_id: int, correction_id: int)-
Delete Correction
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.delete
def delete_corrections(self, project_id: int, string_id: int)-
Delete Corrections
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.deleteMany
def get_correction(self, project_id: int, correction_id: int, denormalize_placeholders: Optional[DenormalizePlaceholders] = None)-
Get Correction
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.get
def get_string_corrections_path(self, project_id: int, correction_id: Optional[int] = None)def list_corrections(self, project_id: int, string_id: int, limit: Optional[int] = None, offset: Optional[int] = None, order_by: Optional[Sorting] = None, denormalize_placeholders: Optional[DenormalizePlaceholders] = None)-
List Corrections
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.getMany
def restore_correction(self, project_id: int, correction_id: int)-
Restore Correction
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/String-Corrections/operation/api.projects.corrections.put