day-plan

Generate a presigned URL for uploading a transient calendar image, PDF or DOCX file

post/day-plan/import/file/generate-upload-url

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

content_type'image/jpeg' | 'image/png' | 'image/webp' | 'application/pdf' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' required

MIME type of the calendar image or document to upload

Example request

{
  "content_type": "application/pdf"
}

Response

uploadUrlstring required

Presigned URL the client should PUT the calendar file to

fileKeystring required

Transient R2 object key of the uploaded file (pass back to POST /day-plan/import/file)

Changes

No recorded changes to this operation across all 1 revision of this API.