Change one part of the project's content
put/hosting/coder/projects/{id}/content/{key}
Change one part of the project's content: a single part's fields, or a collection's whole list of items. The values are checked against the content model, the content file is written and a checkpoint is saved; no model is asked and nothing else in the project changes.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Sdk
hosting.coderContent.update- Cli
hosting coder content update
Parameters
- idstring (uuid)requiredIn the path
- keystringrequiredIn the path
Request bodyapplication/json, required
- valueA single part: its fields by name. A collection: the whole list of items, in order
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