cURL
curl --request PUT \ --url https://api.sandbox.trycollate.ai/v1/files/{fileId}/content \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/octet-stream' \ --data '"<string>"'
204
Uploads raw file bytes to the previously created file resource. The Content-Type header must exactly match the file session’s contentType.
Content-Type
contentType
Bearer token for WorkOS session JWTs and organization API keys.
"file_123"
The body is of type file.
file
File content uploaded.