Skip to content

    Brand evidence

    Revoke imported passages

    Revokes an imported document and its passages.

    DELETE /v2/brands/{brand_id}/evidence/{kind}/{key}

    • Path kind is passage_document.

    Authentication and access

    Authentication
    Bearer API key
    Scopes
    brands:write, analytics:read
    Roles
    editor, owner, service
    Plans
    Optimizer, Analyzer
    Credits
    No credit charge.

    Parameters

    Request parameters
    NameWhereTypeRequiredDescription
    brand_idpathstring (uuid)Yes
    keypathstring (uuid)Yes
    kindpath"passage_document"Yes
    expected_revisionquerystring (uuid)Yes

    Request body

    Send this request without a body.

    Request examples

    Set AEO_API_BASE_URL to https://api.aeoapi.dev and AEO_API_KEY to your server-side API key. Set the other environment variables to the values for your request.

    curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/passage_document/$KEY?expected_revision=$EXPECTED_REVISION" \
      -H "Authorization: Bearer $AEO_API_KEY"
    from os import environ
    from aeo_sdk import AeoClient
    
    with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
        response = client.v2_delete_brands_brand_id_evidence_kind_key(
            brand_id=environ["BRAND_ID"],
            key=environ["KEY"],
            kind="passage_document",
            expected_revision=environ["EXPECTED_REVISION"],
        )
        print(response.body)
    import { AeoClient } from "@aeoapi/aeo-sdk";
    
    const client = new AeoClient(process.env.AEO_API_KEY!, {
      baseUrl: process.env.AEO_API_BASE_URL!,
    });
    const response = await client.v2DeleteBrandsBrandIdEvidenceKindKey(
      process.env.BRAND_ID!,
      process.env.KEY!,
      "passage_document",
      {
        expected_revision: process.env.EXPECTED_REVISION!,
      },
    );
    console.log(response.body);

    Responses

    HTTP 200

    Successful Response

    application/json

    Response fields are listed below.

    HTTP 200 response fields 1
    NameTypeRequiredDescription
    dataobjectYesThe requested result. See the fields below for its contents.
    data.content_idstringYes
    data.status"revoked"Yes
    metaobjectYesInformation about this response, including any warnings or pagination details.

    Errors

    Read code and message in the error response. Keep request_id when you contact support.

    Brand evidence reference