Source Strings
Add String
Required scopes: project.source.string (Read and Write).
post/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
Request body
Example request
{
"text": "Not all videos are shown to users. See more",
"identifier": "6a1821e6499ebae94de4b880fd93b985",
"fileId": 48,
"context": "shown on main page",
"maxLength": 35,
"labelIds": [
1
],
"fields": {
"some-field-1": "some value 1",
"some-field-2": 12,
"some-field-3": true,
"some-field-4": [
"en",
"ja"
]
}
}Response
String was successfully created
Example response
{
"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",
"fields": {
"some-field-1": "some value 1",
"some-field-2": 12,
"some-field-3": true,
"some-field-4": [
"en",
"ja"
]
},
"fileId": 48,
"directoryId": 13,
"revision": 1
}
}Changes
No recorded changes to this operation across all 1 revision of this API.