Volumes

Add a persistent volume: its files survive restarts, redeploys and rollbacks. A running app is restarted (no rebuild) to mount it unless restart is false

post/projects/{projectId}/volumes

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/volumes
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Request body

namestring required

Label, unique within the project: lower-case letters, digits and hyphens (e.g. data, uploads)

mountPathstring required

Absolute directory inside the app's container, e.g. /app/data. Not a system directory and not the app's code directory itself.

sizeGbinteger required

Size in GB; the sum over the organization counts against the plan's storage

restartboolean

Response

Created

applies'restarting' | 'next_restart' | 'next_start' | 'next_deploy' | 'restart_failed' required

Changes

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