---
title: "Replace your agent policy"
method: PUT
path: "/v1/agent/policy"
tags: ["AI agents"]
---

# Replace your agent policy

`PUT /v1/agent/policy`

## Request

- Base URL: `https://www.layercall.com`
- URL: `https://www.layercall.com/v1/agent/policy`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Request body

- object
  - `rules` object[], required

## Response `200`

Success

- object
  - `note` string
  - `rules` object[]
    - `action` string
    - `methods` string[]
    - `reason` string
    - `trigger` string
  - `saved` integer

---

[API](https://skmtc.dev/layercall/apis/layercall-api.md) · [All operations](https://skmtc.dev/layercall/apis/layercall-api/llms.txt) · [OpenAPI document](https://skmtc.dev/layercall/apis/layercall-api/revisions/b1258307dc91?raw)
