Source Strings
String Batch Operations
Required scopes: project.source.string (Read and Write).
patch/projects/{projectId}/strings
Request
- Base URLhttps://api.crowdin.com/api/v2
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Project Identifier. Get via List Projects
Query parameters
updateOption'keep_translations_and_approvals' | 'keep_translations' | 'clear_translations_and_approvals'
Defines whether to keep existing translations and approvals for updated strings.
NOTE: Applied only when text or identifier is changed.
Request body
Example request
[
{
"op": "replace",
"path": "/2814/isHidden",
"value": true
},
{
"op": "replace",
"path": "/2814/context",
"value": "some context"
},
{
"op": "add",
"path": "/-",
"value": {
"text": "new added string",
"identifier": "a.b.c",
"context": "context for new string",
"branchId": 5,
"isHidden": false
}
},
{
"op": "remove",
"path": "/2815"
}
]Response
Strings were successfully updated
Example response
{
"data": [
{
"data": {
"id": 2814,
"projectId": 2,
"branchId": 12,
"identifier": "name",
"text": "Not all videos are shown to users. See more",
"type": "text",
"context": "shown on main page",
"maxLength": 35,
"isDuplicate": true,
"masterStringId": 1,
"labelIds": [
3
],
"webUrl": "https://example.crowdin.com/editor/1/all/en-pl?filter=basic&value=0&view=comfortable#2",
"createdAt": "2019-09-20T12:43:57+00:00",
"updatedAt": "2019-09-20T13:24:01+00:00"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.