Rivier/ Reference/ hosting

Bring in a project that is already at Praecise Cloud, by its name there

post/hosting/coder/projects/import/cloud

Bring in a project that is already at Praecise Cloud, by its name there: the newest source Praecise Cloud keeps for it (uploaded, or imported from GitHub) becomes the project's first checkpoint, as with an upload. Asked in the signed-in person's name: they must be able to deploy to the project, and its owner must have opened it to Rivier in the Praecise Cloud console. A project that was placed without its source is refused in Praecise Cloud's own sentence. Publishing afterwards places a new release of that same project.

Before you call

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

Request bodyapplication/json, required

  • cloudstringrequired
    The project's name at Praecise Cloud Pattern: ^[a-z0-9][a-z0-9-]{0,62}$.
  • namestring
    What to call it in Rivier; the Praecise Cloud name when left out At most 80 characters.

Responses

  • 201application/json
    Success
    • projectobjectrequired
      • idstringrequired
      • namestringrequired
      • stackstringrequired
        One of: next, static, harness.
      • libraryobjectrequired
        • versionstringrequired
        • commitstringrequired
      • entriesobjectrequired
      • headstring or nullrequired
      • checkpointsnumberrequired
      • eventsnumberrequired
      • cloudobject
        • namestringrequired
        • urlstringrequired
        • deployobject
        • liveobject
        • previewobject
        • lockobject
      • carriedobject
        Set for a project that carries over a site made with the earlier designer
        • sitestringrequired
        • hoststring
      • originobject
        Set for a project that was brought in from outside
        • kindstringrequired
          One of: upload, cloud, github.
        • frameworkstringrequired
        • versionstringrequired
        • fromstring
      • createdAtstringrequired
      • updatedAtstringrequired
    • checkpointobjectrequired
      • idstringrequired
      • projectIdstringrequired
      • seqnumberrequired
      • parentstring or nullrequired
      • messagestringrequired
      • restoresstring
      • bystringrequired
      • createdAtstringrequired
      • filesnumberrequired
    • supportobjectrequired
      • frameworknextrequired
      • versionstringrequired
      • noteslist of stringrequired
    • leftlist of objectrequired
      Files that were not kept, and why
      • pathstringrequired
      • whystringrequired
        One of: secret, too_large, name, too_many.
    • keptnumberrequired
      Files kept beside the source: pictures, fonts, the lockfile
    • skippednumberrequired
      Installed packages, build output and version-control files that were passed over
  • 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