Create Policy
ポリシー
ポリシーの作成
新しいポリシーを作成し、エージェントに関連付けます。
POST
Create Policy
ポリシーは、エージェントが実行できるトランザクションを制御します。すべてのトランザクションは、MPC 署名の前にエージェントのポリシーに対して評価されます。
リクエストボディ
このポリシーを関連付けるエージェント。
ポリシータイプ。値:
spending_limit、address_control、token_control、velocity_control、schedule、human_approval。ポリシールールオブジェクト。構造は
type によって異なります。例
承認
API key authentication. Keys are prefixed with awx_.
ボディ
application/json
レスポンス
Policy created successfully.
A policy that controls what transactions an agent is allowed to execute.
Unique policy identifier (e.g., pol_abc123).
Agent this policy is attached to.
Policy type.
利用可能なオプション:
spending_limit, address_control, token_control, velocity_control, schedule, human_approval Policy rules object. Structure depends on the policy type.
ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.