Storage

Upload one file (raw body, up to 100 MiB; Content-Type becomes the file's type). Larger files: presign a PUT or use an S3 SDK

put/storage/buckets/{bucketId}/objects

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/storage/buckets/{bucketId}/objects
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

bucketIdstring uuid required

Query parameters

keystring required

Object key, e.g. images/logo.png

Response

Stored

keystring required
sizeinteger required
etagstring nullable required
publicUrlstring nullable required

Changes

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