Rivier/ Reference/ hosting

Start a project at Praecise Cloud that is released from a GitHub branch

post/hosting/coder/projects/import/github

Start a project at Praecise Cloud that is released from a GitHub branch: a push to the branch releases it, other branches and pull requests make previews. Once its first build is done, bring it into Rivier by its Praecise Cloud name; Rivier then gives its changes as a patch for the branch.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Sdk
hosting.coderProject.importGithub
Cli
hosting coder project import github

Request bodyapplication/json, required

  • repoIdintegerrequired
    The repository's number, as the list of connected repositories gives it
  • branchstring
    The branch that is released; the repository's default branch when left out At most 200 characters.
  • directorystring
    The folder of the project inside the repository; its root when left out At most 200 characters.
  • cloudstringrequired
    The name the project gets at Praecise Cloud Pattern: ^[a-z0-9][a-z0-9-]{0,62}$.

Responses

  • 201application/json
    Success
    • cloudobjectrequired
      • namestringrequired
      • urlstringrequired
    • stackstringrequired
    • jobobject or nullrequired
    • deployRefusedstring or nullrequired
      Why the first deploy did not start, in Praecise Cloud's words
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown