Skip to content

Add Source Language

POST
/api/continuous/projects/{project_id}/sources
curl --request POST \
--url https://example.com/api/continuous/projects/example/sources \
--header 'Content-Type: application/json' \
--data '{ "source_lang": "en" }'

Add source language to continuous project.

Creates virtual source file for language. Language code is normalized to ISO 639-2 format (eng, fra, spa, etc).

Path Parameters: project_id: Project UUID

Request Body: { “source_lang”: “en” // or “eng” }

Response: { “id”: 123, “project_id”: 45, “name”: “eng_source”, “source_lang”: “eng”, “is_virtual”: true, “created_at”: “2025-01-15T10:30:00” }

Errors: 400: Invalid language code or non-continuous project 404: Project not found 403: Access denied 409: Source language already exists

project_id
required
Project Id
string
Media typeapplication/json
AddSourceRequest

Request to add source language.

object
source_lang
required
Source Lang

Source language code (e.g., en, eng, english)

string

Successful Response

Media typeapplication/json
SourceFileResponse

Response for source file operations.

object
id
required
Id

Source file ID

integer
project_id
required
Project Id

Project ID

integer
name
required
Name

File name

string
source_lang
required
Source Lang

Source language code (ISO 639-2)

string
is_virtual
required
Is Virtual

Whether file is virtual

boolean
create_time
required
Create Time

Creation timestamp (ISO format)

string
Example
{
"create_time": "2025-10-02T12:00:00",
"id": 123,
"is_virtual": true,
"name": "eng_source_1",
"project_id": 42,
"source_lang": "eng"
}

Validation error

Unauthorized

Forbidden

Not found

Conflict

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Internal server error