Skip to main content
PUT
Set App Source

Authorizations

Authorization
string
header
required

A floo_ API key.

Headers

X-Floo-Org-Id
string<uuid>

Organization to act in; defaults to the one joined most recently.

Path Parameters

app_id
string<uuid>
required

Body

application/json

The code source a new app starts with.

github connects the caller's repository: repo is required and branch defaults to main. floo creates a private repository floo hosts. It starts empty and the first push to branch (default main) deploys it; starter seeds it with floo's starter app on the starter's branch and deploys that now, for callers with no git, such as a chat.

kind
enum<string>
required

Where an app's code lives.

Available options:
github,
floo
repo
string | null
Maximum string length: 200
Pattern: ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$
branch
string | null
Required string length: 1 - 255
starter
boolean
default:false

Response

Successful Response

What PUT /v1/apps/{app_id}/source changed.

previous is the source before the call, null for an app that had none. archived_repo is the repo floo hosted for the app, archived by a move to GitHub; it is null when nothing was archived.

app
string
required
source
AppSource · object
required

Where an app's code lives: a push to branch of repo deploys dev.

branch is null when floo cannot tell which branch deploys dev.

previous
AppSource · object | null
required

Where an app's code lives: a push to branch of repo deploys dev.

branch is null when floo cannot tell which branch deploys dev.

archived_repo
string | null
required
message
string
required