Storage

Connect the bucket to a project: new bucket-scoped key + S3_ENDPOINT, S3_REGION, S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_FORCE_PATH_STYLE in the project (needs env:write on the project)

post/storage/buckets/{bucketId}/connect

Request

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

Path parameters

bucketIdstring uuid required

Request body

projectIdstring uuid required
envPrefixstring
permission'read' | 'read_write'
overwriteboolean

replace existing variables with the same names

redeployboolean

redeploy the project so the variables take effect now

Response

Connected

variablesstring[] required

names of the environment variables written to the project

deploymentIdstring nullable required

Changes

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