Hosting coder nlweb add
post/hosting/coder/projects/{id}/nlweb
Make the site answer a question about its own content at /ask and over MCP at /mcp (the NLWeb convention), with a link that says so, as a checkpoint. The site answers only while the content setting nlweb is on, which Rivier applies to its environment after a release.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Sdk
hosting.coderNlweb.add- Cli
hosting coder nlweb add
Parameters
- idstring (uuid)requiredIn the path
Responses
- 200application/jsonSuccess
- checkpointobjectrequired
- idstringrequired
- projectIdstringrequired
- seqnumberrequired
- parentstring or nullrequired
- messagestringrequired
- restoresstring
- bystringrequired
- createdAtstringrequired
- filesnumberrequired
- addedlist of stringrequiredFiles Rivier added: the lib that answers, the /ask and /mcp routes and the link component
- layoutbooleanrequiredWhether the link was placed in the site's root layout; false means the layout is for the person to edit
- 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