activity

Generate a presigned upload URL for an activity image

post/activity/{activityId}/images/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

Path parameters

activityIdstring required

Request body

file_namestring required

Original file name of the image

content_type'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp' required

MIME type of the image

Example request

{
  "content_type": "image/png"
}

Response

Presigned upload URL generated successfully

uploadUrlstring required

Presigned URL the client should PUT the image to

fileKeystring required

Storage key/path of the uploaded image

Changes

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