rules

Add a rule to an agent

post/v1/agents/{agent_id}/rules

Request

  • Base URL: https://api.spendnod.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.spendnod.com/v1/agents/{agent_id}/rules
  • Auth: none declared

Path parameters

agent_idstring uuid required

Request body

rule_type'max_per_transaction' | 'max_per_day' | 'max_per_month' | 'allowed_vendors' | 'blocked_vendors' | 'allowed_categories' | 'blocked_categories' | 'require_approval_above' | 'auto_approve_below' required
valueobject required

Rule value payload. Examples: {"amount": 50.0} for amount rules, {"vendors": ["AWS", "GCP"]} for vendor rules.

Response

Successful Response

idstring uuid required
agent_idstring uuid required
rule_type'max_per_transaction' | 'max_per_day' | 'max_per_month' | 'allowed_vendors' | 'blocked_vendors' | 'allowed_categories' | 'blocked_categories' | 'require_approval_above' | 'auto_approve_below' required
valueobject required
is_activeboolean required
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.