Rivier/ Reference/ hosting

Set the rule for declared agents

put/protection/agents

Set the rule for declared agents: default and/or agents (host of the agent's key directory to { mode, perMinute (only with ceiling), note }). A field sent replaces that field whole, so send the full list of rules; a field left out is kept. Needs a person who may configure (an agent needs approval); audited. Protection must be on.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Mcp
rivier_protection_set_agents
Graphql
Mutation.hostingProtectionSetagents
Sdk
hosting.protection.setagents
Cli
hosting protection setagents

Request bodyapplication/json, required

  • defaultstring
    One of: welcome, read_only, refuse, accountable_only.
  • agentsobject

Responses

  • 200application/json
    Success
    • 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