Skip to Content
Xeonr Developer Docs

Request Note Upload

POST
/xeonr.notes.v1.NoteUploadsService/RequestNoteUpload

Requests a presigned upload URL for uploading a file to a note's uploads folder.

Required scope: upl:notes:edit (or a stronger verb of the same family: admin ⊃ edit ⊃ read).

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
noteId?string
Length1 <= length
filesizeBytes?string
Formatint64
mimeType?string
Length1 <= length
extension?string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notes-api.xeonr.io/xeonr.notes.v1.NoteUploadsService/RequestNoteUpload" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "uploadRequestId": "0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b",
  "direct": "map[uploadUrl:https://b.upl.im/5d1c9a7e-3b2f-4e8a-9c61-2f0b7a4d8e13/0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-Signature=…]",
  "multipart": "map[parts:[map[partNumber:1 sizeBytes:8388608 uploadUrl:https://b.upl.im/5d1c9a7e-3b2f-4e8a-9c61-2f0b7a4d8e13/0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b?partNumber=1&uploadId=…&X-Amz-Signature=…]]]",
  "uploadsFolderPath": "@integration/projects/q3-planning/uploads"
}