---
title: "v2_patch_recommendations | Python SDK | AEO API"
description: "Apply board edits or send a decision about a recommendation. Board edits specify the item, status and expected revision."
url: "https://aeoapi.dev/docs/sdks/python/v2-patch-recommendations"
canonical: "https://aeoapi.dev/docs/sdks/python/v2-patch-recommendations"
last_updated: "2026-11-30"
---

# v2_patch_recommendations

Apply board edits or send a decision about a recommendation. Board edits specify the item, status and expected revision.

See the REST reference for [`PATCH /v2/recommendations`](https://aeoapi.dev/docs/api-reference#patch-v2-recommendations).

## Signature

```
v2_patch_recommendations(
    body: Mapping[str, Any],
    *,
    idempotency_key: str | None = None,
) -> Response[Any]
```

## Parameters

**`body`**

Dictionary for the selected operation. See the REST reference for its required fields.

**`idempotency_key`**

Value for Idempotency-Key. For requests that require this header, the SDK generates a UUID if you omit it. Send the original value if your application repeats the same write.

## Return value

For board edits, response.data includes an updated list with the item ID and revision for each saved item.

## Errors

- AeoApiError includes the HTTP status, error code and request ID. An invalid key raises UnauthenticatedError. Check the key’s scopes if you receive ForbiddenError.
- Invalid arguments can raise ValueError or TypeError before the SDK sends a request.
- AeoTransportError means the request could not reach the API after any allowed retries, or the response could not be read as JSON.

## Python example

```
import os
from aeo_sdk import AeoClient

with AeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_patch_recommendations(
        body={
            'brand_id': '00000000-0000-4000-8000-000000000001',
            'edits': [
                {
                    'expected_revision': 0,
                    'item_id': '00000000-0000-4000-8000-000000000001',
                    'status': 'in_progress',
                },
            ],
            'section': 'board',
        },
    )
    print(response.body)
```

## Async example

```
import asyncio
import os
from aeo_sdk import AsyncAeoClient

async def main():
    async with AsyncAeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"]) as client:
        response = await client.v2_patch_recommendations(
            body={
                'brand_id': '00000000-0000-4000-8000-000000000001',
                'edits': [
                    {
                        'expected_revision': 0,
                        'item_id': '00000000-0000-4000-8000-000000000001',
                        'status': 'in_progress',
                    },
                ],
                'section': 'board',
            },
        )
        print(response.body)

asyncio.run(main())
```

## Requests by feature

### Recommendations and visibility analyst

- [Update a board item](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-board)
- [Preview a recommended article](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-act-editorial-preview)
- [Start an optimization](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-act-optimization)
- [Decide an optimization](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-decide-optimization)
- [Propose a follow-up action](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-act-analyst-action)
- [Approve a follow-up action](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-decide-analyst-action)

See [Python client setup](https://aeoapi.dev/docs/sdks/python) for the environment variables, response properties and retry settings.
