Rivier/ Reference/ hosting

Show the project at a preview address without touching what is live

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

Show the project at a preview address without touching what is live: the project as it stands goes to the one preview that moves with the conversation, an earlier checkpoint to an address of its own. Built by Praecise Cloud away from any live machine; answers the preview and the build job to follow, or the preview alone when that source is already built there. Needs a signed-in person.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Graphql
Mutation.hostingCoderPreviewCreate
Sdk
hosting.coderPreview.create
Cli
hosting coder preview create

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • checkpointstring (uuid)
    An earlier checkpoint to show at an address of its own; the project as it stands when left out

Responses

  • 202application/json
    Success
    • previewobjectrequired
      • labelstringrequired
      • urlstringrequired
      • checkpointstringrequired
      • bundlestringrequired
      • jobstring or nullrequired
      • statestringrequired
        One of: building, running, failed, archived.
    • jobobject or nullrequired
  • 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