v2_get_brands_brand_id_drafts
Find drafts for a brand. Filter by item or status, then use a draft ID to read the content.
See the REST reference for GET /v2/brands/{brand_id}/drafts.
Signature
v2_get_brands_brand_id_drafts(
brand_id: str,
*,
item_id: str | None = None,
limit: int | None = None,
offset: int | None = None,
status: Literal['draft', 'in_review', 'changes_requested', 'approved', 'handed_off', 'publication_failed', 'published', 'archived', 'rolled_back'] | None = None,
) -> Response[Any]Parameters
brand_id- Identifier for the brand.
item_id- Identifier for the item.
limit- Maximum number of records per page. Each view sets its own limit.
offset- Number of records to skip. For draft lists, send the returned next_offset.
status- Only return records with this status.
Return value
For content drafts, response.data contains items and next_offset. Pass next_offset as offset to get another page.
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_get_brands_brand_id_drafts(
brand_id='00000000-0000-4000-8000-000000000001',
limit=10,
)
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_get_brands_brand_id_drafts(
brand_id='00000000-0000-4000-8000-000000000001',
limit=10,
)
print(response.body)
asyncio.run(main())Requests by feature
Content drafts and editorial generation
See Python client setup for the environment variables, response properties and retry settings.