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)requiredIn the path
- keystringrequiredIn the path
Responses
- 200application/jsonSuccess
- checkpointobjectrequired
- idstringrequired
- projectIdstringrequired
- seqnumberrequired
- parentstring or nullrequired
- messagestringrequired
- restoresstring
- bystringrequired
- createdAtstringrequired
- filesnumberrequired
- addedlist of stringrequiredFiles Rivier added for the site to read the content: the reader and its snapshot
- 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