---
title: "Update an AI Sales Agent guidance rule"
method: PATCH
path: "/api/v2/ai-agents/sales/{id}/guidance-rules/{rule_id}"
tags: ["AISalesAgent"]
---

# Update an AI Sales Agent guidance rule

`PATCH /api/v2/ai-agents/sales/{id}/guidance-rules/{rule_id}`

## Request

- Base URL: `https://api.instantly.ai`
- URL: `https://api.instantly.ai/api/v2/ai-agents/sales/{id}/guidance-rules/{rule_id}`
- Auth: HTTP bearer

Update the title or content of a guidance rule. Rules are stored as a single list, so concurrent writes to the same agent are last-write-wins — serialize them client-side.


Requires one of the following scopes: `ai_sdr:update`, `ai_sdr:all`, `all:update`, `all:all`

## Path parameters

- `id` string, uuid, required
- `rule_id` string, required

## Request body

- object
  - `title` string: Short title of the rule
  - `content` string: The rule text the agent must follow

## Response `200`

The updated guidance rule

- object: A guidance rule the AI Sales Agent must follow when writing outreach. An agent can have at most 10 rules. Rule ids are positional (`rule-0`, `rule-1`, …) and re-index after a deletion.
  - `id` string, required: Positional rule id. Re-indexed after a deletion, so re-fetch the list after deleting a rule.
  - `title` string, required: Short title of the rule
  - `content` string, required: The rule text the agent must follow

## Other responses

- `400`: The request is invalid (e.g. missing required fields, invalid field values, or an invalid state for the operation)
- `401`: This request is unauthorized (either the Authorization header is missing or invalid, or the API key has been revoked)
- `402`: This request cannot be fulfilled because the workspace does not have an active paid plan
- `404`: The requested resource was not found
- `429`: You have exceeded the rate limit. Please check the rate limit docs for more information.

## Changes

- **2026-11-03** `c781051105a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/instantly/apis/api-explorer/changes/api/v2/ai-agents/sales/:id/guidance-rules/:rule_id/patch.md)

---

[API](https://skmtc.dev/instantly/apis/api-explorer.md) - [All operations](https://skmtc.dev/instantly/apis/api-explorer/llms.txt) - [OpenAPI document](https://skmtc.dev/instantly/apis/api-explorer/revisions/8c38e6eb755c?raw)
