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)requiredIn the path
Request bodyapplication/json, required
- approvebooleantrue once a person has read the checklist and said go
Responses
- 202application/jsonSuccess
- projectobjectrequired
- idstringrequired
- namestringrequired
- stackstringrequiredOne of: next, static, harness.
- libraryobjectrequired
- versionstringrequired
- commitstringrequired
- entriesobjectrequired
- headstring or nullrequired
- checkpointsnumberrequired
- eventsnumberrequired
- cloudobject
- namestringrequired
- urlstringrequired
- deployobject
- liveobject
- previewobject
- lockobject
- carriedobjectSet for a project that carries over a site made with the earlier designer
- sitestringrequired
- hoststring
- originobjectSet for a project that was brought in from outside
- kindstringrequiredOne of: upload, cloud, github.
- frameworkstringrequired
- versionstringrequired
- fromstring
- kindstringrequired
- createdAtstringrequired
- updatedAtstringrequired
- jobobjectrequired
- idstringrequired
- projectstringrequired
- statusstringrequiredOne of: running, succeeded, failed.
- bundlestring or nullrequired
- releasestring or nullrequired
- errorstring or nullrequired
- started_atnumberrequired
- finished_atnumber or nullrequired
- urlstringrequired
- projectobjectrequired
- 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