Attachments:v1:Files

Generate upload url

Changed on

Generates a pre-signed URL that can be used to securely upload an attachment to the cloud. The pre-signed URL ensures temporary access for the upload (300 seconds), and it will be associated with a specific feature within the application.

post/attachments/v1/files/generate-upload-url

Request

  • Base URL
    https://api.connecteam.com
  • URL
    https://api.connecteam.com/attachments/v1/files/generate-upload-url
  • Auth
    • API key in header X-API-KEY
    • or OAuth 2
      Client credentials
      Token URL: /oauth/v1/token scopes: attachments.write

Request body

fileNamestring required

The name of the attachment you want to upload

fileTypeHintstring

The MIME type or format of the attachment (e.g. image/jpeg, application/pdf)

featureType'chat' | 'shiftscheduler' | 'users' | 'quicktasks' | 'documents' required

An enumeration.

Response

Successful Response

requestIdstring

Changes

    • info

      added the new documents enum value to the request property //