Remove Target Language
DELETE
/api/continuous/projects/{project_id}/targets
const url = 'https://example.com/api/continuous/projects/example/targets';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"source_lang":"en","target_lang":"fr"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/continuous/projects/example/targets \ --header 'Content-Type: application/json' \ --data '{ "source_lang": "en", "target_lang": "fr" }'Remove target language from source file.
Marks target as removed (soft delete).
Path Parameters: project_id: Project UUID
Request Body: { “source_lang”: “eng”, “target_lang”: “fra” }
Response: { “id”: 456, “file_id”: 123, “target_lang”: “fra”, “word_count”: 0, “created_at”: “2025-01-15T10:30:00” }
Errors: 400: Invalid language codes 404: Project, source, or target not found 403: Access denied
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
RemoveTargetRequest
Request to remove target language.
object
source_lang
required
Source Lang
Source language code (identifies which source file)
string
target_lang
required
Target Lang
Target language code to remove
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TargetFileResponse
Response for target file operations.
object
id
required
Id
Target file ID
integer
file_id
required
File Id
Source file ID
integer
target_lang
required
Target Lang
Target language code (ISO 639-2)
string
create_time
required
Create Time
Creation timestamp (ISO format)
string
Example
{ "create_time": "2025-10-02T12:00:00", "file_id": 123, "id": 456, "target_lang": "fra"}Validation error
Unauthorized
Forbidden
Not found
Conflict
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}Internal server error