---
title: "Set the tracking schedule | Brands, locations and connections | AEO API"
description: "Choose the source, market, cadence and credit cap for each managed tracking run."
url: "https://aeoapi.dev/docs/features/brands-locations-and-connections/patch-brands-brand-id-schedule-managed"
canonical: "https://aeoapi.dev/docs/features/brands-locations-and-connections/patch-brands-brand-id-schedule-managed"
last_updated: "2026-11-30"
---

Brands, locations and connections

# Set the tracking schedule

Choose the source, market, cadence and credit cap for each managed tracking run.

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

- Body `section` is `schedule`.
- Body `kind` is `managed`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

collections:write

**Roles**

editor, owner, service

**Plans**

Optimizer, Analyzer

**Credits**

No credit charge.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `brand_id` | path | `string (uuid)` | Yes |  |
| `website` | query | `string \| null` | No |  |
| `Idempotency-Key` | header | `string` | Yes |  |

## Request body

```
{
  "enabled": false,
  "kind": "managed",
  "section": "schedule"
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `all_locations` | `boolean` | No |  |
| `allow_country_level` | `boolean` | No | Allow a country-level answer when the source cannot apply the requested location. |
| `cadence_days` | `1 \| 3 \| 7 \| 14 \| 30` | Yes |  |
| `enabled` | `boolean` | Yes |  |
| `kind` | `"managed"` | Yes |  |
| `location_ids` | `array of string (uuid)` | No |  |
| `market` | `object` | Yes | \`\`components.schemas.Market\`\`. |
| `market.city` | `string \| null` | No |  |
| `market.country` | `string` | Yes |  |
| `market.language` | `string` | Yes |  |
| `market.latitude` | `number \| null` | No |  |
| `market.location_id` | `string (uuid) \| null` | No |  |
| `market.longitude` | `number \| null` | No |  |
| `market.postal_code` | `string \| null` | No |  |
| `market.region` | `string \| null` | No |  |
| `max_credits_per_run` | `integer` | Yes |  |
| `section` | `"schedule"` | Yes |  |
| `source` | `object` | Yes | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
| `source.device` | `"desktop" \| "mobile" \| "unknown" \| null` | No |  |
| `source.mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Yes | The mode used to collect the answer. The unverified value appears only in evidence. |
| `source.platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes | The platform where the answer was observed. |
| `source.provider` | `string \| null` | No |  |

Request body fields 2

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `enabled` | `false` | Yes |  |
| `kind` | `"managed"` | Yes |  |
| `section` | `"schedule"` | Yes |  |

## 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 "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"],
    )
    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!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Successful Response

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The saved schedule. |
| `data.all_locations` | `boolean` | No |  |
| `data.allow_country_level` | `boolean` | No | Allow a country-level answer when the source cannot apply the requested location. |
| `data.brand_id` | `string (uuid)` | Yes | Identifies the brand this result belongs to. |
| `data.cadence_days` | `1 \| 3 \| 7 \| 14 \| 30` | Yes |  |
| `data.enabled` | `boolean` | Yes |  |
| `data.id` | `string (uuid)` | Yes |  |
| `data.location_ids` | `array of string (uuid)` | No |  |
| `data.market` | `object` | Yes |  |
| `data.market.city` | `string \| null \| null` | No |  |
| `data.market.country` | `string` | Yes |  |
| `data.market.language` | `string` | Yes |  |
| `data.market.latitude` | `number \| null` | No |  |
| `data.market.location_id` | `string (uuid) \| null` | No |  |
| `data.market.longitude` | `number \| null` | No |  |
| `data.market.postal_code` | `string \| null` | No |  |
| `data.market.region` | `string \| null \| null` | No |  |
| `data.max_units_per_run` | `integer` | Yes |  |
| `data.next_run_at` | `string (date-time) \| null` | Yes |  |
| `data.prompt_ids` | `array of string (uuid)` | Yes |  |
| `data.source` | `object` | Yes |  |
| `data.source.device` | `"desktop" \| "mobile" \| "unknown"` | No |  |
| `data.source.mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Yes |  |
| `data.source.platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes |  |
| `data.source.provider` | `string` | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
| `data.website` | `string \| null` | Yes |  |
| `data.prompt_set_revision` | `string` | Yes |  |
| `data.estimated_credits_per_run` | `integer \| null` | Yes |  |
| `data.maximum_recurring_credits_30_days` | `integer \| null` | 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. |

HTTP 200 response fields 2

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `null` | Yes | You paused a brand that had no schedule. |
| `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 402 [`quota_exceeded`](https://aeoapi.dev/docs/errors#quota_exceeded)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- 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)
