---
title: "v2PatchBrandsBrandIdDraftsDraftId | TypeScript SDK | AEO API"
description: "Edit a draft or move it through review. To submit it, send transition submit with the expected_revision from your last read."
url: "https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandIdDraftsDraftId"
canonical: "https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandIdDraftsDraftId"
last_updated: "2026-11-30"
---

# v2PatchBrandsBrandIdDraftsDraftId

Edit a draft or move it through review. To submit it, send transition submit with the expected_revision from your last read.

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

```
v2PatchBrandsBrandIdDraftsDraftId(
  brand_id: string,
  draft_id: string,
  body: Record<string, unknown>,
  options?: {
    signal?: AbortSignal;
  },
): Promise<ApiResponse<unknown>>
```

## Parameters

**`brand_id`**

ID of the brand that owns the record.

**`draft_id`**

ID of the draft under this brand.

**`body`**

JSON object for this action. The example includes the fields for submit.

**`options`**

Pass the named options in the signature. The selected action or view determines which fields are required.

**`options.signal`**

Optional AbortSignal to cancel the HTTP request.

## Return value

Promise\<ApiResponse\<unknown\>\>. The submit transition returns the draft in body.data. Read its status and revision before taking another review action.

## Errors

- The SDK throws AeoApiError if the API returns an error. Inspect status, code, fieldErrors and requestId.
- AeoTransportError means the request failed to connect or the client could not finish reading a successful response. Invalid JSON in a successful response throws SyntaxError. If you abort the request, the SDK throws the reason from the AbortSignal.
- For HTTP 422, check fieldErrors for the input field and validation message.

## TypeScript example

```
import { AeoClient } from "@aeoapi/aeo-sdk";

const apiKey = process.env.AEO_API_KEY;
if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });

// Substitute your own record IDs and values.
const body = {
  "expected_revision": 1,
  "transition": "submit"
};
const response = await client.v2PatchBrandsBrandIdDraftsDraftId("00000000-0000-4000-8000-000000000001", "00000000-0000-4000-8000-000000000002", body);
console.log(response.status, response.body);
```

## 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 [TypeScript client setup](https://aeoapi.dev/docs/sdks/typescript) for authentication, timeouts and retry settings.
