Files

Upload File (Multipart)

Upload a file using multipart/form-data with optional metadata and path. Supports images, videos, and audio. 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

Request

  • Base URL
    https://api.fivemanage.com/api
  • URL
    https://api.fivemanage.com/api/v3/file
  • Auth
    API key in header Authorization

Request body multipart/form-data

filestring binary required

File to upload

filenamestring

Custom filename

pathstring

Storage path (folder)

metadatastring

JSON metadata

retentionExemptboolean

Exempt 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.