Upload the raw bytes for a reserved invoice document
PUT
/uploads/{uploadId}/content
const url = 'https://api.invogi.com/v1/uploads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'}, body: 'binary'};
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.invogi.com/v1/uploads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/octet-stream' \ --data binaryAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uploadId
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/octet-stream
string format: binary
Responses
Section titled “Responses”Content stored
Media typeapplication/json
object
upload_id
required
string format: uuid
sha256
required
string
byte_size
required
integer
Example generated
{ "upload_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "sha256": "example", "byte_size": 1}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
Resource not found
Media typeapplication/json
Conflicting idempotency key or resource processing state
Media typeapplication/json