Rivier/ Reference/ hosting

Publish the project as it stands

post/hosting/coder/projects/{id}/publish

Publish the project as it stands. Its source goes to Praecise Cloud, which builds it away from any live machine and places it at the project's address. Needs a signed-in person (Praecise Cloud is asked in their name), passing checks and approve: true; answers the build job to follow. A refusal from Praecise Cloud is passed on in its own words.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Sdk
hosting.coderPublish.create
Cli
hosting coder publish create

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • approveboolean
    true once a person has read the checklist and said go

Responses

  • 202application/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
    • jobobjectrequired
      • idstringrequired
      • projectstringrequired
      • statusstringrequired
        One of: running, succeeded, failed.
      • bundlestring or nullrequired
      • releasestring or nullrequired
      • errorstring or nullrequired
      • started_atnumberrequired
      • finished_atnumber or nullrequired
    • urlstringrequired
  • 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