---
title: "v2_patch_brands_brand_id_drafts_draft_id | Python SDK | AEO API"
description: "Edit a draft or advance its review. To submit a draft, send the current revision with the submit transition."
url: "https://aeoapi.dev/docs/sdks/python/v2-patch-brands-brand-id-drafts-draft-id"
canonical: "https://aeoapi.dev/docs/sdks/python/v2-patch-brands-brand-id-drafts-draft-id"
last_updated: "2026-11-30"
---

# v2_patch_brands_brand_id_drafts_draft_id

Edit a draft or advance its review. To submit a draft, send the current revision with the submit transition.

See the REST reference for [`PATCH /v2/brands/{brand_id}/drafts/{draft_id}`](https://aeoapi.dev/docs/api-reference#patch-v2-brands-brand_id-drafts-draft_id).

## Signature

```
v2_patch_brands_brand_id_drafts_draft_id(
    brand_id: str,
    draft_id: str,
    body: Mapping[str, Any],
) -> Response[Any]
```

## Parameters

**`brand_id`**

Identifier for the brand.

**`draft_id`**

Identifier for the draft.

**`body`**

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

## Return value

For the submit transition, response.data includes the updated status and revision. Check both before the next review decision.

## 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.
- For a conflict, read the error message before repeating the write. Check the saved record for a competing edit or a repeated request.

## 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_brands_brand_id_drafts_draft_id(
        brand_id='00000000-0000-4000-8000-000000000001',
        draft_id='00000000-0000-4000-8000-000000000002',
        body={'expected_revision': 1, 'transition': 'submit'},
    )
    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_brands_brand_id_drafts_draft_id(
            brand_id='00000000-0000-4000-8000-000000000001',
            draft_id='00000000-0000-4000-8000-000000000002',
            body={'expected_revision': 1, 'transition': 'submit'},
        )
        print(response.body)

asyncio.run(main())
```

## Requests by feature

### Content drafts and editorial generation

- [Edit a draft](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-update)
- [Submit a draft for review](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-submit)
- [Request changes](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-request-changes)
- [Approve a draft](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-approve)
- [Hand off a draft](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-hand-off)
- [Claim a handoff](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-claim-delivery)
- [Record publication](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-report-publication)
- [Record a publishing failure](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-report-failure)
- [Claim a destination update](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-claim-artifact)
- [Record a destination update](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-record-artifact)
- [Pause destination updates](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-pause-artifacts)
- [Archive a draft](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/patch-brands-brand-id-drafts-draft-id-archive)

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