Skip to content

Deploy a site

POST
/deploy
curl --request POST \
--url https://example.com/deploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file

Upload a ZIP archive to create or replace a site. A deployment token may deploy only to its assigned site and must send that name in X-Subdomain.

x-subdomain
Any of:
string

Site name to create or replace. Buzz generates a name when omitted.

Media typemultipart/form-data
object
file
required

A ZIP archive containing the site’s files.

string format: binary

Successful Response

Media typeapplication/json
DeploymentResponse
object
name
required
Name
string
url
required
Url
string
Examplegenerated
{
"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>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}