---
title: "Update sub-persona override."
method: PATCH
path: "/api/v1/projects/{projectId}/settings/persona/{version}/sub-personas/{slug}"
tags: ["Agent Settings"]
---

# Update sub-persona override.

`PATCH /api/v1/projects/{projectId}/settings/persona/{version}/sub-personas/{slug}`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/settings/persona/{version}/sub-personas/{slug}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/settings/persona/:version/sub-personas/:slug/patch.ts> (a function with typed inputs; its response is checked against the schema)

Creates or updates the project-level override for one sub-persona slug. Generated persona-version rows are not modified.

## Path parameters

- `projectId` integer, required
- `version` integer, required
- `slug` string, required

## Request body

- object
  - `instructions` string, nullable: Override instructions. Empty strings are saved as blank overrides. Use DELETE to clear the project override.

## Response `200`

Sub-personas for a persona version, returned as generated rows and project override rows.

- object
  - `status` 'error' | 'success': The status of the response
  - `data` object
    - `is_generating` boolean: Whether generated sub-personas are being regenerated for this persona version.
    - `generated` SubPersona[]: Generated sub-personas owned by the requested persona version. Empty while generation is active.
      - `slug` 'persona-summary' | 'task-planner': Sub-persona identifier.
      - `instructions` string: Sub-persona instructions.
      - `created_at` string, date-time, nullable: Date and time when this sub-persona row was created.
    - `project_overrides` SubPersona[]: Project-level sub-persona overrides. These are the only rows changed by PATCH and DELETE.
      - `slug` 'persona-summary' | 'task-planner': Sub-persona identifier.
      - `instructions` string: Sub-persona instructions.
      - `created_at` string, date-time, nullable: Date and time when this sub-persona row was created.

## Other responses

- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `422`: Unsupported Argument
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/settings/persona/:version/sub-personas/:slug/patch.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
