Rivier/ Reference/ hosting

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)required
    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: the lib that answers, the /ask and /mcp routes and the link component
    • layoutbooleanrequired
      Whether the link was placed in the site's root layout; false means the layout is for the person to edit
  • 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