Build a static site from source sent as a gzip tar in the request body
post/hosting/sites/{id}/builds/upload
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Sdk
hosting.build.upload- Cli
hosting build upload- Events
hosting.build.started
Parameters
- idstring (uuid)requiredIn the path
- outDirstringIn the query
- installstringIn the query
- buildstringIn the query
- previewstringIn the query
Request bodyapplication/octet-stream, required
string (binary)
Responses
- 201application/jsonSuccess
- idstring (uuid)required
- projectIdstringrequired
- sourceobjectrequired
- typestringrequiredOne of: upload, repo.
- urlstring
- refstring
- bundleShastring
- typestringrequired
- outDirstringrequired
- installbooleanrequired
- buildbooleanrequired
- previewbooleanrequired
- statestringrequiredOne of: queued, running, succeeded, failed, timeout, cancelled.
- logstringrequired
- errorstring or nullrequired
- deploymentIdstring or nullrequired
- secondsnumberrequired
- createdAtstringrequired
- startedAtstring or nullrequired
- finishedAtstring or nullrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring