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)requiredIn the path
Responses
- 200application/jsonSuccess
- declaredbooleanrequiredfalse when the project has no content/schema.json yet
- languageslist of stringrequired
- partslist of objectrequired
- keystringrequired
- namestringrequired
- kindstringrequiredOne of: collection, single.
- storestringrequiredfile: 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.
- dataTypestringFor a part kept in Rivier: the declared type that holds it
- declaredbooleanFor a part kept in Rivier: whether its type has been made
- rowslist of objectFor a part kept in Rivier: its items
- idstringrequired
- fieldsobjectrequired
- modulestring
- notestring
- routestring
- filestringThe file a part edited here is kept in
- fieldsobject
- valueA collection's items or a single part's fields, as the content file holds them
- proposalobjectOnly when the project declares no content: what Rivier can offer for editing, read from its files as they are
- partslist of objectrequiredParts Rivier worked out from the project's data files, to confirm with the declare operation
- keystringrequired
- namestringrequired
- kindstringrequiredOne of: collection, single.
- storefilerequired
- filestringrequired
- fieldsobjectrequired
- value
- leftlist of objectrequiredWhat looks like content but cannot be edited here yet, and why
- pathstringrequired
- whystringrequired
- partslist of objectrequired
- declaredbooleanrequired
- 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