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
- defaultstringOne of: welcome, read_only, refuse, accountable_only.
- agentsobject
Responses
- 200application/jsonSuccess
- 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