Get File Details

Resource:
/api/files/<<asset id>>/details
Method:
GET

Returns details about a file

Arguments

  • Asset ID: The onDemand Asset ID. You will receive this ID from Add File

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.

Not Found 404

The URL does not relate

to a product that the

user owns.

Response Body

The response body shows information about the file.

Property Type Comments
AssetID
String

The onDemand ID of the

asset

Name
String The name of the file

SourceLanguage

.LanguageCode
String The language of the file
ProjectID
Integer

If the file is

associated with a

project, this element

contains the ID.

AcceptedBy
 

If the file is a target

file and has been

accepted, the user who

accepted it.

AcceptedDate
 

If the file is a target

file and has been

accepted, the date it

was accepted.

AcceptedMethod
 

If the file is a target

file and has been

accepted, the method of

acceptance (implicit or

explicit).

Response Example

<File>
    <AssetID>123456</AssetID>
    <Name>Foo.txt</Name>
    <Status>Complete</Status>
    <AcceptedBy> Example &lt;user@example.com&gt; </AcceptedBy>
    <AcceptedDate>2016-03-15T04:00:00Z</AcceptedDate>
    <AcceptedMethod>implicit</AcceptedMethod>
    <SourceLanguage>
        <LanguageCode>en-gb</LanguageCode>
    </SourceLanguage>
    <ProjectID>10001</ProjectID>
</File>