Rivier/ Reference/ hosting

Hosting coder content make type

post/hosting/coder/projects/{id}/content/{key}/type

Make the declared type for a part of the content kept in Rivier (store rivier:data in content/schema.json), from the part's own fields, and add the file the site reads it with (src/lib/rivier-content.ts and its snapshot) as a checkpoint. The published site reads the items with a key that can only read content, set in its environment after a release.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Sdk
hosting.coderContent.makeType
Cli
hosting coder content make type

Parameters

  • idstring (uuid)required
    In the path
  • keystringrequired
    In the path

Responses

  • 200application/json
    Success
    • checkpointobjectrequired
      • idstringrequired
      • projectIdstringrequired
      • seqnumberrequired
      • parentstring or nullrequired
      • messagestringrequired
      • restoresstring
      • bystringrequired
      • createdAtstringrequired
      • filesnumberrequired
    • addedlist of stringrequired
      Files Rivier added for the site to read the content: the reader and its snapshot
  • 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