Rivier/ Reference/ hosting

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)required
    In the path
  • keystringrequired
    In the path

Request bodyapplication/json, required

  • value
    A single part: its fields by name. A collection: the whole list of items, in order

Responses

  • 200application/json
    Success
    • checkpointobjectrequired
      • idstringrequired
      • projectIdstringrequired
      • seqnumberrequired
      • parentstring or nullrequired
      • messagestringrequired
      • restoresstring
      • bystringrequired
      • createdAtstringrequired
      • filesnumberrequired
    • previewobject
      Where the change is being shown, when Praecise Cloud is connected
      • labelstringrequired
      • urlstringrequired
      • checkpointstringrequired
      • bundlestringrequired
      • jobstring or nullrequired
      • statestringrequired
        One of: building, running, failed, archived.
    • previewRefusedstring
      Why the change could not be shown, in Praecise Cloud's own words
  • 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