Skip to content

    v2_get_brands_brand_id_drafts_draft_id

    Read a draft before submitting an edit or a review decision. Use include_citation_benchmark when the reviewer needs that comparison.

    See the REST reference for GET /v2/brands/{brand_id}/drafts/{draft_id}.

    Signature

    v2_get_brands_brand_id_drafts_draft_id(
        brand_id: str,
        draft_id: str,
        *,
        include_citation_benchmark: bool | None = None,
    ) -> Response[Any]

    Parameters

    brand_id
    Identifier for the brand.
    draft_id
    Identifier for the draft.
    include_citation_benchmark
    Include the citation comparison for the selected record.

    Return value

    For a content draft, response.data contains its content, status and revision. Send that revision with your next change.

    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_draft_id(
            brand_id='00000000-0000-4000-8000-000000000001',
            draft_id='00000000-0000-4000-8000-000000000002',
        )
        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_draft_id(
                brand_id='00000000-0000-4000-8000-000000000001',
                draft_id='00000000-0000-4000-8000-000000000002',
            )
            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.