Upload File
POST/api/v1/parsing/upload
Upload a file to s3 and create a job. return a job id
Request
Query Parameters
Cookie Parameters
- multipart/form-data
Body
- MOD1
- MOD1
file
object
anyOf
string
false
false
false
false
false
false
false
false
false
false
false
false
false
false
false
false
false
true
Possible values: [af
, az
, bs
, cs
, cy
, da
, de
, en
, es
, et
, fr
, ga
, hr
, hu
, id
, is
, it
, ku
, la
, lt
, lv
, mi
, ms
, mt
, nl
, no
, oc
, pi
, pl
, pt
, ro
, rs_latin
, sk
, sl
, sq
, sv
, sw
, tl
, tr
, uz
, vi
, ar
, fa
, ug
, ur
, bn
, as
, mni
, ru
, rs_cyrillic
, be
, bg
, uk
, mn
, abq
, ady
, kbd
, ava
, dar
, inh
, che
, lbe
, lez
, tab
, tjk
, hi
, mr
, ne
, bh
, mai
, ang
, bho
, mah
, sck
, new
, gom
, sa
, bgc
, th
, ch_sim
, ch_tra
, ja
, ko
, ta
, te
, kn
]
["en"]
false
max_pages
object
anyOf
integer
false
false
false
false
false
false
false
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
Enum for representing the status of a job
Possible values: [PENDING
, SUCCESS
, ERROR
, PARTIAL_SUCCESS
]
error_code
object
anyOf
string
error_message
object
anyOf
string
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "PENDING",
"error_code": "string",
"error_message": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}