Files

Upload File via Presigned URL

Upload a file using a V3 presigned URL token. Supports all standard V3 upload fields in form-data. If a custom CDN domain is configured and enabled, the response url will use the custom domain and originalUrl will contain the default storage URL.

post/v3/file/presigned-url/{token}

Request

  • Base URL
    https://api.fivemanage.com/api
  • URL
    https://api.fivemanage.com/api/v3/file/presigned-url/{token}
  • Auth
    none declared

Path parameters

tokenstring required

Presigned URL token

Request body multipart/form-data

filestring binary required

File to upload

filenamestring

Custom filename

pathstring

Folder path

metadatastring

File metadata (JSON string)

retention_exemptboolean

Exclude from retention policy

Response

OK

statusstring

Example response

{
  "data": {
    "id": "7F9pGhN8qwErT1vx5aZk",
    "originalUrl": "https://r2.fivemanage.com/23492kdx23121/7F9pGhN8qwErT1vx5aZk.jpg",
    "url": "https://r2.fivemanage.com/23492kdx23121/7F9pGhN8qwErT1vx5aZk.jpg"
  },
  "status": "ok"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.