storage
post/api/storage/presigned-upload

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

mimeTypestring required
uploadType'document' | 'image' | 'video' | 'encrypted-blob' required
purpose'profile-picture' | 'post-attachment' | 'chat-attachment' | 'group-picture' | 'board-attachment' | 'course-outline' required
roomSlugstring

Room slug — required when purpose is board-attachment, scopes the S3 folder

checksumSha256string

Base64-encoded SHA-256 of the file body, verified by storage on upload.

Example request

{
  "checksumSha256": "eWPfwx9oFQy+i82Q9/7n0jdzN2qLAM0XGuurO4CgUmk="
}

Response

urlstring required
keystring required
publicUrlstring required

Changes

    • info

      added the new course-outline enum value to the request property

    • info

      added the new optional request property

    • info

      added the new board-attachment enum value to the request property

    • info

      added the new encrypted-blob enum value to the request property