---
title: "Update custom instruction by id"
method: PATCH
path: "/api/ai-customizations/v1/profiles/{profile_id}/instructions/{instruction_id}"
tags: ["AI Customization Instructions"]
---

# Update custom instruction by id

`PATCH /api/ai-customizations/v1/profiles/{profile_id}/instructions/{instruction_id}`

## Request

- Base URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com`
- URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com/api/ai-customizations/v1/profiles/{profile_id}/instructions/{instruction_id}`
- Auth: one of:
  - API key in header `api-key`
  - HTTP bearer

## Path parameters

- `profile_id` integer, required
- `instruction_id` integer, required

## Request body

- union: At least one of custom_instruction or is_enabled must be provided.
  - object
    - `custom_instruction` string, nullable, required: Custom instruction to be used for AI responses. It is validated to ensure it is safe for AI use.
    - `is_enabled` boolean, nullable
  - object
    - `custom_instruction` string, nullable: Custom instruction to be used for AI responses. It is validated to ensure it is safe for AI use.
    - `is_enabled` boolean, required
  - object
    - `custom_instruction` string, nullable, required: Custom instruction to be used for AI responses. It is validated to ensure it is safe for AI use.
    - `is_enabled` boolean, required

## Response `200`

Profile details

- CustomInstructionResponse
  - `id` integer, required
  - `profile_id` integer, required
  - `custom_instruction` string, required
  - `is_enabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `404`: Not Found
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/activecampaign/apis/partners-api.md) - [All operations](https://skmtc.dev/activecampaign/apis/partners-api/llms.txt) - [OpenAPI document](https://skmtc.dev/activecampaign/apis/partners-api/revisions/846abb7d30bd?raw)
