Skip to main content
POST
Build a company site on Fluid

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

Body

application/json

The source of a build. Send exactly one of files and ref.

files
object

The project's source files by path inside the project, such as package.json or src/main.ts, at most 1,000 files and 10 MiB in all. Leave out node_modules and .git. The project needs a package.json with a build script, or an index.html, at its root.

ref
string

A branch, tag or commit of the site's own repo to build instead.

Required string length: 1 - 255

Response

The queued build.

One build of a site.

member_site_build
object
required

One build of a site on Fluid. It is queued, runs in an isolated box that installs and builds the project, and ends succeeded with the bundle it published or failed with why.

status
integer
required

The HTTP status.

meta
object
required

Response metadata included on every response body.