Hosting coder content declare
post/hosting/coder/projects/{id}/content/declare
Declare a project's content from what Rivier worked out of its own data files (the proposal in the content answer): the chosen parts are written to content/schema.json and a checkpoint is saved, so they can be edited from then on. Nothing else in the project changes and no model is asked.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Sdk
hosting.coderContent.declare- Cli
hosting coder content declare
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- keyslist of stringrequiredThe keys of the proposed parts to declare
Responses
- 200application/jsonSuccess
- checkpointobjectrequired
- idstringrequired
- projectIdstringrequired
- seqnumberrequired
- parentstring or nullrequired
- messagestringrequired
- restoresstring
- bystringrequired
- createdAtstringrequired
- filesnumberrequired
- previewobjectWhere the change is being shown, when Praecise Cloud is connected
- labelstringrequired
- urlstringrequired
- checkpointstringrequired
- bundlestringrequired
- jobstring or nullrequired
- statestringrequiredOne of: building, running, failed, archived.
- previewRefusedstringWhy the change could not be shown, in Praecise Cloud's own words
- checkpointobjectrequired
- 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