crowdin / crowdin/crowdin-api-client-python

Add support for updateOption parameter in string editing endpoints

Open
#253 1 comment 0 reactions 1 assignee Claimed by @innomaxx View on GitHub
enhancement good first issue
Dominant language
Python
Stars
69
Forks
39
Avg merge
23h 35m
Merged PRs (30d)
8

Description

The Crowdin API adds a new optional `updateOption` query parameter to the source string editing endpoints: **Edit String** (`PATCH /projects/{projectId}/strings/{stringId}`) and **String Batch Operations** (`PATCH /projects/{projectId}/strings`).

The parameter defines whether existing translations and approvals are kept when a string is updated, and is applied only when `text` or `identifier` is changed. Allowed values:

- `keep_translations_and_approvals` (default)
- `keep_translations`
- `clear_translations_and_approvals`

API client libraries should be updated to expose `updateOption` on these endpoints so consumers can control translation/approval retention when editing strings via the SDK.

**References:**
- [Edit String](https://support.crowdin.com/developer/api/v2/#operation/api.projects.strings.patch)
- [String Batch Operations](https://support.crowdin.com/developer/api/v2/#operation/api.projects.strings.batchPatch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.