rules

Apply a rule template to an agent

Backs up the agent's current rules, then replaces them with the named template.

post/v1/agents/{agent_id}/rules/template

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/template
  • Auth: none declared

Path parameters

agent_idstring uuid required

Request body

template_namestring required

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.