Authorizations
Query Parameters
A file name.
A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided.
Flag indicating whether to perform language detection on the uploaded file. Default is false.
The project to associate the uploaded file with.
The category of the file. The options are REFERENCE
, or API
. The default is API. Files with the REFERENCE
category will be displayed as reference material.
Comma-separated list of labels to add to the uploaded document.
Specifies the job type when adding this file to a job.
TRANSLATION
, PROMPT_RESPONSE
Body
The file contents to be uploaded. The entire POST body will be treated as the file.
The body is of type file
.
Response
A SourceFile object.
A SourceFile is an unprocessed source file that can later be added to a project.
A unique number identifying the SourceFile.
46530
The file name.
"en_US.json"
A unique hash value associated with the file. An MD5 hash of the file content will be used by default.
"3858f62230ac3c915f300c664312c63f"
Language associated with the file.
"de"
Confidence score for the language associated with the file.
0.7
The category of the file. The options are REFERENCE
, or API
. The default is API. Files with the REFERENCE
category will be displayed as reference material.
"REFERENCE"
The list of labels associated with the file.
[]
Time at which the object was created.
"2019-10-16T22:12:34Z"
Time at which the object was created.
"2019-10-16T22:12:34Z"