Rivier/ Reference/ hosting

The project's content as it declares it itself in content/schema.json

get/hosting/coder/projects/{id}/content

The project's content as it declares it itself in content/schema.json: single pages and collections, their fields, and what each holds now. Parts kept in a Rivier module (rooms, products) are listed as linked and edited in that module.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:read
Graphql
Query.hostingCoderContentGet
Sdk
hosting.coderContent.get
Cli
hosting coder content get

Parameters

  • idstring (uuid)required
    In the path

Responses

  • 200application/json
    Success
    • declaredbooleanrequired
      false when the project has no content/schema.json yet
    • languageslist of stringrequired
    • partslist of objectrequired
      • keystringrequired
      • namestringrequired
      • kindstringrequired
        One of: collection, single.
      • storestringrequired
        file: edited here. data: kept in Rivier as a declared type, edited here one item at a time. linked: kept in a Rivier module and edited there One of: file, data, linked.
      • dataTypestring
        For a part kept in Rivier: the declared type that holds it
      • declaredboolean
        For a part kept in Rivier: whether its type has been made
      • rowslist of object
        For a part kept in Rivier: its items
        • idstringrequired
        • fieldsobjectrequired
      • modulestring
      • notestring
      • routestring
      • filestring
        The file a part edited here is kept in
      • fieldsobject
      • value
        A collection's items or a single part's fields, as the content file holds them
    • proposalobject
      Only when the project declares no content: what Rivier can offer for editing, read from its files as they are
      • partslist of objectrequired
        Parts Rivier worked out from the project's data files, to confirm with the declare operation
        • keystringrequired
        • namestringrequired
        • kindstringrequired
          One of: collection, single.
        • storefilerequired
        • filestringrequired
        • fieldsobjectrequired
        • value
      • leftlist of objectrequired
        What looks like content but cannot be edited here yet, and why
        • pathstringrequired
        • whystringrequired
  • 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