Create a build source

Create a build source that can be linked to one or more
services in the same workspace.

Exactly one of git or image must be set:

  • git: the build source is git-backed. The code is built in
    the requested region (defaults to oregon).
  • image: the build source is image-backed. It points at an
    existing image in an external registry; no build is performed.

envVars, secretFiles, and envGroupIds set the build-time
environment and are only valid for git sources; the request fails
if any are provided with image.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
required
string
git
object
image
object
serviceIds
array of strings
serviceIds
envVars
array of objects
envVars
secretFiles
array of objects

Secret files for the build source's build. Only valid for git sources.

secretFiles
envGroupIds
array of strings

IDs of env groups to link to the build source. Only valid for git sources; env groups must belong to the same workspace and must not be scoped to an environment.

envGroupIds
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json