Projects

Upload a ZIP (max 100 MB) to the project repository and deploy it

post/projects/{projectId}/upload

Request

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

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Query parameters

messagestring
deploy'true' | 'false'

Response

Committed (and deploying)

commitShastring required
filesinteger required
bytesinteger required
ignoredinteger required

ignored files: dependencies, VCS data and build caches

strippedEnvFilesstring[] required

.env files removed from the upload; set values as environment variables instead

Changes

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