---
title: "Edit profile assignments | Brands, locations and connections | AEO API"
description: "Updates profile details such as audiences, products, services, prompt groups and local prompt templates."
url: "https://aeoapi.dev/docs/features/brands-locations-and-connections/patch-brands-brand-id-profile"
canonical: "https://aeoapi.dev/docs/features/brands-locations-and-connections/patch-brands-brand-id-profile"
last_updated: "2026-11-30"
---

Brands, locations and connections

# Edit profile assignments

Updates profile details such as audiences, products, services, prompt groups and local prompt templates.

[`PATCH /v2/brands/{brand_id}`](https://aeoapi.dev/docs/api-reference#patch-v2-brands-brand_id)

- Body `section` is `profile`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

brands:write

**Roles**

approver, editor, owner, service

**Plans**

Optimizer, Analyzer

**Credits**

No credit charge.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `brand_id` | path | `string (uuid)` | Yes |  |
| `Idempotency-Key` | header | `string` | Yes |  |
| `If-Match` | header | `string` | Yes |  |

## Request body

```
{
  "name": "Example Company",
  "section": "profile"
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | `"update"` | No |  |
| `aliases` | `array of string \| null` | No |  |
| `audiences` | `array of object \| null` | No |  |
| `audiences.description` | `string \| null` | No |  |
| `audiences.id` | `string (uuid)` | Conditional |  |
| `audiences.markets` | `array of object` | No |  |
| `audiences.markets[].city` | `string \| null` | No |  |
| `audiences.markets[].country` | `string` | Conditional |  |
| `audiences.markets[].language` | `string` | Conditional |  |
| `audiences.markets[].region` | `string \| null` | No |  |
| `audiences.name` | `string` | Conditional |  |
| `business_type` | `"b2b" \| "b2c" \| "both" \| "nonprofit" \| "public_sector" \| "other" \| null` | No |  |
| `comparison_evidence` | `array of object \| null` | No |  |
| `comparison_evidence.id` | `string (uuid)` | Conditional |  |
| `comparison_evidence.permission` | `"customer_permitted"` | Conditional |  |
| `comparison_evidence.source_ref` | `string` | Conditional |  |
| `comparison_evidence.text` | `string` | Conditional |  |
| `competitors` | `array of object \| null` | No |  |
| `competitors.aliases` | `array of string` | Conditional |  |
| `competitors.domains` | `array of string` | Conditional |  |
| `competitors.id` | `string (uuid)` | Conditional |  |
| `competitors.name` | `string` | Conditional |  |
| `crm_questions` | `array of object \| null` | No |  |
| `crm_questions.duplicate_of` | `string (uuid)` | No | ID of your existing prompt. |
| `crm_questions.id` | `string (uuid)` | Conditional |  |
| `crm_questions.intent` | `"discovery" \| "recommendation" \| "evaluation" \| "pricing" \| "comparison" \| "alternatives" \| "use_case" \| "transaction" \| "local" \| "troubleshooting" \| "trust" \| "informational"` | No | The purpose of the prompt. |
| `crm_questions.market` | `object \| null` | No |  |
| `crm_questions.market.city` | `string \| null` | No |  |
| `crm_questions.market.country` | `string` | Conditional |  |
| `crm_questions.market.language` | `string` | Conditional |  |
| `crm_questions.market.region` | `string \| null` | No |  |
| `crm_questions.metadata` | `object` | No |  |
| `crm_questions.metadata.audience_ids` | `array of string (uuid)` | No |  |
| `crm_questions.metadata.group_ids` | `array of string (uuid)` | No |  |
| `crm_questions.metadata.product_ids` | `array of string (uuid)` | No |  |
| `crm_questions.metadata.service_ids` | `array of string (uuid)` | No |  |
| `crm_questions.metadata.stage` | `"awareness" \| "consideration" \| "evaluation" \| "decision" \| "retention" \| null` | No |  |
| `crm_questions.similar_prompts` | `array of object` | No | Other matching prompts in your library. |
| `crm_questions.similar_prompts[].prompt_id` | `string (uuid)` | Conditional |  |
| `crm_questions.source_ref` | `string` | Conditional |  |
| `crm_questions.text` | `string` | Conditional |  |
| `domains` | `array of string \| null` | No |  |
| `groups` | `array of object \| null` | No |  |
| `groups.description` | `string \| null` | No |  |
| `groups.id` | `string (uuid)` | Conditional |  |
| `groups.name` | `string` | Conditional |  |
| `localized_templates` | `array of object \| null` | No |  |
| `localized_templates.id` | `string (uuid)` | Conditional |  |
| `localized_templates.intent` | `"discovery" \| "recommendation" \| "evaluation" \| "pricing" \| "comparison" \| "alternatives" \| "use_case" \| "transaction" \| "local" \| "troubleshooting" \| "trust" \| "informational"` | Conditional | The purpose of the prompt. |
| `localized_templates.language` | `string` | Conditional |  |
| `localized_templates.text` | `string` | Conditional |  |
| `markets` | `array of object \| null` | No |  |
| `markets.city` | `string \| null` | No |  |
| `markets.country` | `string` | Conditional |  |
| `markets.language` | `string` | Conditional |  |
| `markets.region` | `string \| null` | No |  |
| `name` | `string \| null` | No |  |
| `products` | `array of object \| null` | No |  |
| `products.description` | `string \| null` | No |  |
| `products.id` | `string (uuid)` | Conditional |  |
| `products.name` | `string` | Conditional |  |
| `section` | `"profile"` | Yes |  |
| `services` | `array of object \| null` | No |  |
| `services.description` | `string \| null` | No |  |
| `services.id` | `string (uuid)` | Conditional |  |
| `services.name` | `string` | Conditional |  |

## Request examples

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev` and `AEO_API_KEY` to your server-side API key. Set the other environment variables to the values for your request.

Save the JSON request body as `request.json`. Replace sample IDs, revisions and other values with your own.

```bash
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "If-Match: $IF_MATCH" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

```python
import json
from pathlib import Path
from os import environ
from aeo_sdk import AeoClient

body = json.loads(Path("request.json").read_text())

with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_patch_brands_brand_id(
        brand_id=environ["BRAND_ID"],
        body=body,
        idempotency_key=environ["IDEMPOTENCY_KEY"],
        if_match=environ["IF_MATCH"],
    )
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";
import { readFile } from "node:fs/promises";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const body = JSON.parse(await readFile("request.json", "utf8"));
const response = await client.v2PatchBrandsBrandId(
  process.env.BRAND_ID!,
  body,
  {
    idempotencyKey: process.env.IDEMPOTENCY_KEY!,
    ifMatch: process.env.IF_MATCH!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Successful Response

HTTP 200 headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ETag` | `string` | No | Current quoted resource revision |

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.id` | `string (uuid)` | Yes |  |
| `data.name` | `string` | Yes |  |
| `data.domains` | `array of string` | Yes |  |
| `data.aliases` | `array of string` | Yes |  |
| `data.category_ids` | `array of string` | Yes |  |
| `data.markets` | `array of object` | Yes |  |
| `data.markets[].city` | `string \| null \| null` | No |  |
| `data.markets[].country` | `string` | Yes |  |
| `data.markets[].language` | `string` | Yes |  |
| `data.markets[].region` | `string \| null \| null` | No |  |
| `data.competitors` | `array of object` | Yes |  |
| `data.competitors[].id` | `string (uuid)` | Yes |  |
| `data.competitors[].name` | `string` | Yes |  |
| `data.competitors[].aliases` | `array of string` | Yes |  |
| `data.competitors[].domains` | `array of string` | Yes |  |
| `data.revision` | `integer` | Yes | Current revision. Use it when you edit this record. |
| `data.status` | `string` | Yes |  |
| `data.created_at` | `string (date-time)` | Yes |  |
| `data.updated_at` | `string (date-time)` | Yes |  |
| `data.business_profile` | `object` | No |  |
| `data.business_type` | `string \| null` | Yes |  |
| `data.products` | `array of object` | Yes |  |
| `data.products[].description` | `string \| null` | Yes |  |
| `data.products[].id` | `string (uuid)` | Yes |  |
| `data.products[].name` | `string` | Yes |  |
| `data.services` | `array of object` | Yes |  |
| `data.services[].description` | `string \| null` | Yes |  |
| `data.services[].id` | `string (uuid)` | Yes |  |
| `data.services[].name` | `string` | Yes |  |
| `data.groups` | `array of object` | Yes |  |
| `data.groups[].description` | `string \| null` | Yes |  |
| `data.groups[].id` | `string (uuid)` | Yes |  |
| `data.groups[].name` | `string` | Yes |  |
| `data.audiences` | `array of object` | Yes |  |
| `data.audiences[].description` | `string \| null` | Yes |  |
| `data.audiences[].id` | `string (uuid)` | Yes |  |
| `data.audiences[].markets` | `array of object` | Yes |  |
| `data.audiences[].markets[].city` | `string \| null` | No |  |
| `data.audiences[].markets[].country` | `string` | Yes |  |
| `data.audiences[].markets[].language` | `string` | Yes |  |
| `data.audiences[].markets[].region` | `string \| null` | No |  |
| `data.audiences[].name` | `string` | Yes |  |
| `data.crm_questions` | `array of object` | Yes |  |
| `data.crm_questions[].duplicate_of` | `string (uuid)` | No | ID of your existing prompt. |
| `data.crm_questions[].id` | `string (uuid)` | Yes |  |
| `data.crm_questions[].intent` | `"discovery" \| "recommendation" \| "evaluation" \| "pricing" \| "comparison" \| "alternatives" \| "use_case" \| "transaction" \| "local" \| "troubleshooting" \| "trust" \| "informational"` | Yes | The purpose of the prompt. |
| `data.crm_questions[].market` | `object \| null` | Yes |  |
| `data.crm_questions[].market.city` | `string \| null` | No |  |
| `data.crm_questions[].market.country` | `string` | Conditional |  |
| `data.crm_questions[].market.language` | `string` | Conditional |  |
| `data.crm_questions[].market.region` | `string \| null` | No |  |
| `data.crm_questions[].metadata` | `object` | Yes |  |
| `data.crm_questions[].metadata.audience_ids` | `array of string (uuid)` | Yes |  |
| `data.crm_questions[].metadata.group_ids` | `array of string (uuid)` | Yes |  |
| `data.crm_questions[].metadata.product_ids` | `array of string (uuid)` | Yes |  |
| `data.crm_questions[].metadata.service_ids` | `array of string (uuid)` | Yes |  |
| `data.crm_questions[].metadata.stage` | `"awareness" \| "consideration" \| "evaluation" \| "decision" \| "retention" \| null` | Yes |  |
| `data.crm_questions[].similar_prompts` | `array of object` | No | Other matching prompts in your library. |
| `data.crm_questions[].similar_prompts[].prompt_id` | `string (uuid)` | Conditional |  |
| `data.crm_questions[].source_ref` | `string` | Yes |  |
| `data.crm_questions[].text` | `string` | Yes |  |
| `data.localized_templates` | `array of object` | Yes |  |
| `data.localized_templates[].id` | `string (uuid)` | Yes |  |
| `data.localized_templates[].intent` | `"discovery" \| "recommendation" \| "evaluation" \| "pricing" \| "comparison" \| "alternatives" \| "use_case" \| "transaction" \| "local" \| "troubleshooting" \| "trust" \| "informational"` | Yes | The purpose of the prompt. |
| `data.localized_templates[].language` | `string` | Yes |  |
| `data.localized_templates[].text` | `string` | Yes |  |
| `data.comparison_evidence` | `array of object` | Yes |  |
| `data.comparison_evidence[].id` | `string (uuid)` | Yes |  |
| `data.comparison_evidence[].permission` | `"customer_permitted"` | Yes |  |
| `data.comparison_evidence[].source_ref` | `string` | Yes |  |
| `data.comparison_evidence[].text` | `string` | Yes |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |
| `meta.as_of` | `string (date-time)` | Yes | The point in time that the response represents. |
| `meta.cohort_version` | `string \| null` | No | Identifies the version of the group used to calculate the results. |
| `meta.collected_at` | `string (date-time) \| null` | Yes | When the data was collected, if available. |
| `meta.metric_version` | `string \| null` | No | The version of the metric definition used for these results. |
| `meta.next_cursor` | `string \| null` | Yes | When present, pass this value as cursor to request the next page with the same filters. |
| `meta.next_refresh_at` | `string (date-time) \| null` | Yes |  |
| `meta.request_id` | `string (uuid)` | Yes | Keep this ID when reporting a problem with the request. |
| `meta.restricted_fields` | `array of string` | No | Fields that your current access does not allow the API to return. |
| `meta.rights_filtered` | `boolean` | Yes | Indicates whether access rights affected the returned data. |
| `meta.schema_version` | `"1.0"` | Yes | The version of the response format. |
| `meta.stale` | `boolean` | Yes |  |
| `meta.warnings` | `array of string` | Yes | Read these notes for limitations that affect the results. |

## Errors

Read `code` and `message` in the error response. Keep `request_id` when you contact support.

- HTTP 400 [`invalid_request`](https://aeoapi.dev/docs/errors#invalid_request)
- HTTP 401 [`unauthenticated`](https://aeoapi.dev/docs/errors#unauthenticated)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- HTTP 409 [`conflict`](https://aeoapi.dev/docs/errors#conflict)
- HTTP 412 [`precondition_failed`](https://aeoapi.dev/docs/errors#precondition_failed)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)

[Brands, locations and connections reference](https://aeoapi.dev/docs/features/brands-locations-and-connections)
