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)requiredIn 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/jsonSuccess
- previewobjectrequired
- labelstringrequired
- urlstringrequired
- checkpointstringrequired
- bundlestringrequired
- jobstring or nullrequired
- statestringrequiredOne of: building, running, failed, archived.
- jobobject or nullrequired
- previewobjectrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring