Skip to content

    v2_delete_brands_brand_id_evidence_kind_key

    Remove saved evidence. To revoke a keyword dataset, supply its UUID and source revision.

    See the REST reference for DELETE /v2/brands/{brand_id}/evidence/{kind}/{key}.

    Signature

    v2_delete_brands_brand_id_evidence_kind_key(
        brand_id: str,
        key: str,
        kind: str,
        *,
        expected_revision: str | None = None,
        source_revision: int | None = None,
    ) -> Response[Any]

    Parameters

    brand_id
    Identifier for the brand.
    key
    Evidence identifier. For a keyword dataset, pass its UUID.
    kind
    Selects the kind of record. The accepted values depend on the operation.
    expected_revision
    Revision to check before removing the evidence record.
    source_revision
    Source dataset revision. For revocation, provide the revision you intend to remove.

    Return value

    For a keyword dataset, response.data identifies the dataset, its revision and its resulting state.

    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_delete_brands_brand_id_evidence_kind_key(
            brand_id='00000000-0000-4000-8000-000000000001',
            key='00000000-0000-4000-8000-000000000002',
            kind='keyword_dataset',
            source_revision=1,
        )
        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_delete_brands_brand_id_evidence_kind_key(
                brand_id='00000000-0000-4000-8000-000000000001',
                key='00000000-0000-4000-8000-000000000002',
                kind='keyword_dataset',
                source_revision=1,
            )
            print(response.body)
    
    asyncio.run(main())

    Requests by feature

    Brand evidence

    See Python client setup for the environment variables, response properties and retry settings.