Deploy a site
POST
/deploy
const url = 'https://example.com/deploy';const form = new FormData();form.append('file', 'file');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/deploy \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@fileUpload a ZIP archive as a new deployment. It becomes active immediately. Buzz creates the site if needed. A deployment token may deploy only to its assigned site and must send that name in X-Buzz-Site.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
object
file
required
A ZIP archive containing the site’s files.
string format: binary
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
DeploySiteResponse
object
deployment_number
required
Deployment Number
integer
name
required
Name
string
private
required
Private
boolean
site_name
required
Site Name
string
url
required
Url
string
Examplegenerated
{ "deployment_number": 1, "name": "example", "private": true, "site_name": "example", "url": "example"}The site name or archive is invalid.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}Authentication is required.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}The credential cannot deploy this site.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}A deployment limit was exceeded.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}