Send the file bytes for an upload
PUT
/v1/uploads/{upload_id}/content
const url = 'https://api.deskew.dev/v1/uploads/example/content?token=example';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url 'https://api.deskew.dev/v1/uploads/example/content?token=example' \ --header 'Authorization: Bearer <token>'Raw body, any content type. Authenticated by the signed token in the URL, so a shell command needs no API key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”upload_id
required
Upload Id
string
Query Parameters
Section titled “Query Parameters”token
required
Token
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Put Content V1 Uploads Upload Id Content Put
object
key
additional properties
any
Example generated
{}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
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}