List Files

Resource:
/api/files
Method:
GET

Returns a list of all files submitted by user.

Return Codes

Status Code Comments
Success 200 Successful request
Bad Request 400  
Unauthorized 401

The request did not

pass authentication or

the customer is not a

member of an enterprise

site.

Response Body

The response body includes a list of file assets.

Property Type Comments
File
Container

Container of File

information

File

.AssetID
Integer

Internal onDemand ID

for the file asset.

File

.Status
String

The current state in the

onDemand File Lifecycle

See Add File.

File

.ProjectID
Integer

Internal onDemand ID

of the project that this

asset has been associated

with. If no project has

been associated, this

element will be empty.

File

.Name
String Original name of the file.

File

.URL
String

URL to download the

file.

File

.SourceLanguage

.LanguageCode

String

See Language Code

in the glossary.

File

.UploadDate
Integer

String representing the

date/time in the ISO

8601 format. that the

project was created in

UTC.

File

.TargetLanguages
Container

Container containing

target languages that

the file was set to be

translated into. If the

file has not been

associated with a project

yet, this element will be

empty.

File

.TargetLanguages

.TargetLanguage

.LanguageCode

String

See LanguageCode in

glossary

File

.TargetLanguages

.TargetLanguage

.Status

String

The status of the

translation

File

.TargetLanguages

.TargetLanguage

.ProjectURL

String

URL to retrieve the

project information.

File

.TargetLanguages

.TargetLanguage

.DownloadURL

String

URL to download the

translated file.  See

Get File Translation

Response Example

The below example shows files in different states.

<Files>
    <File>
        <AssetID>9000</AssetID>
        <Status>New</Status>
        <URL>http://</URL>
        <Name>1.txt</Name>
        <SourceLanguage>
            <LanguageCode>en-gb</LanguageCode>
        </SourceLanguage>
        <UploadDate>2014-01-25T10:32:02Z</UploadDate>
    </File>
    <File>
        <AssetID>9900</AssetID>
        <Status>Analyzed</Status>
        <URL>http://</URL>
        <Name>1.txt</Name>
        <SourceLanguage>
            <LanguageCode>en-gb</LanguageCode>
        </SourceLanguage>
        <UploadDate>2014-01-25T10:32:02Z</UploadDate>
    </File>
    <File>
        <AssetID>9901</AssetID>
        <Status>Analysis Failed</Status>
        <URL>http://</URL>
        <Name>1.txt</Name>
        <SourceLanguage>
            <LanguageCode>en-gb</LanguageCode>
        </SourceLanguage>
        <UploadDate>2014-01-25T10:32:02Z</UploadDate>
    </File>
    <File>
        <AssetID>9910</AssetID>
        <Status>In Translation</Status>
        <ProjectID>1234</ProjectID>
        <URL>http://</URL>
        <Name>foo.txt</Name>
        <SourceLanguage>
            <LanguageCode>en-gb</LanguageCode>
        </SourceLanguage>
        <UploadDate>2014-01-25T10:32:02Z</UploadDate>
        <TargetLanguages>
            <TargetLanguage>
                <LanguageCode>de-de</LanguageCode>
                <Status>Started</Status>
                <ProjectURL>https://</ProjectURL>
            </TargetLanguage>
            <TargetLanguage>
                <LanguageCode>fr-fr</LanguageCode>
                <Status>Started</Status>
                <ProjectURL>https://</ProjectURL>
            </TargetLanguage>
        </TargetLanguages>
    </File>
    <File>
        <AssetID>9999</AssetID>
        <Status>Translated</Status>
        <ProjectID>1234</ProjectID>
        <URL>http://</URL>
        <Name>foo.txt</Name>
        <SourceLanguage>
            <LanguageCode>en-gb</LanguageCode>
        </SourceLanguage>
        <UploadDate>2014-01-25T10:32:02Z</UploadDate>
        <TargetLanguages>
            <TargetLanguage>
                <LanguageCode>de-de</LanguageCode>
                <Status>Complete</Status>
                <ProjectURL>https://</ProjectURL>
                <DownloadURL>https://ondemand…</DownloadURL>
            </TargetLanguage>
            <TargetLanguage>
                <LanguageCode>fr-fr</LanguageCode>
                <Status>Complete</Status>
                <ProjectURL>https://</ProjectURL>
                <DownloadURL>https://liondemand.com<DownloadURL>
            </TargetLanguage>
        </TargetLanguages>
    </File>
<Files>