Uploads

Uploads a media file into the cloud storage (GCS, S3) directly by provided external URL. If file is an image then compressed copy of this image will be created. Returns storage_file_path and public_url and thumbnail_url if applicable

post/api/v1/uploads.insert

Request

  • Base URL: https://api.partly.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.partly.com/api/v1/uploads.insert
  • Auth: none declared. Required headers: authorization

Headers

authorizationstring required

UTF-8 encoded string

Request body

external_urlstring required

UTF-8 encoded string

Response

200 OK

content_hashstring required

UTF-8 encoded string

image_heightinteger required

32-bit unsigned integer

image_widthinteger required

32-bit unsigned integer

public_urlstring required

UTF-8 encoded string

storage_file_pathstring required

UTF-8 encoded string

thumbnail_public_urlstring required

UTF-8 encoded string

thumbnail_storage_file_pathstring required

UTF-8 encoded string

Changes

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